-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy paththemes.ts
More file actions
44 lines (39 loc) · 901 Bytes
/
themes.ts
File metadata and controls
44 lines (39 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {
DarkTheme as NavigationDarkTheme,
DefaultTheme as NavigationDefaultTheme,
} from '@react-navigation/native';
import {
adaptNavigationTheme,
MD3DarkTheme,
MD3LightTheme,
configureFonts,
} from 'react-native-paper';
const { LightTheme, DarkTheme } = adaptNavigationTheme({
reactNavigationLight: NavigationDefaultTheme,
reactNavigationDark: NavigationDarkTheme,
});
export const CombinedDefaultTheme = {
...MD3LightTheme,
...LightTheme,
colors: {
...MD3LightTheme.colors,
...LightTheme.colors,
},
};
export const CombinedDarkTheme = {
...MD3DarkTheme,
...DarkTheme,
colors: {
...MD3DarkTheme.colors,
...DarkTheme.colors,
},
};
type CombinedTheme = typeof CombinedDefaultTheme;
export const createConfiguredFontTheme = (theme: CombinedTheme) => ({
...theme,
fonts: configureFonts({
config: {
fontFamily: 'Abel',
},
}),
});