-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunistyles.ts
More file actions
48 lines (41 loc) · 919 Bytes
/
unistyles.ts
File metadata and controls
48 lines (41 loc) · 919 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
45
46
47
48
/* eslint-disable @typescript-eslint/no-empty-object-type */
/**
* This file is used to setup the unistyles default themes, settings etc.
*/
import { StyleSheet } from 'react-native-unistyles';
const lightTheme = {
colors: {
primary: '#4A90E2',
secondary: '#50E3C2',
background: '#FFFFFF',
surface: '#F7F7F7',
text: '#222222',
mutedText: '#666666',
border: '#E2E2E2',
},
};
const darkTheme = {
colors: {
primary: '#6FA8DC',
secondary: '#7AD1C2',
background: '#1C1C1C',
surface: '#2A2A2A',
text: '#EAEAEA',
mutedText: '#dadadaff',
border: '#3A3A3A',
},
};
const appThemes = {
light: lightTheme,
dark: darkTheme,
};
type AppThemes = typeof appThemes;
declare module 'react-native-unistyles' {
export interface UnistylesThemes extends AppThemes {}
}
StyleSheet.configure({
settings: {
initialTheme: 'dark',
},
themes: appThemes,
});