-
Notifications
You must be signed in to change notification settings - Fork 1
/
themes.ts
50 lines (40 loc) · 1.15 KB
/
themes.ts
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
49
50
import {vars, cssInterop} from 'nativewind'
import Feather from '@expo/vector-icons/Feather'
import MaterialCommunityIcons from '@expo/vector-icons/MaterialCommunityIcons'
cssInterop(Feather, {
className: {
target: 'style',
},
})
cssInterop(MaterialCommunityIcons, {
className: {
target: 'style',
},
})
export type ThemeName = 'twitter'
export type ColorScheme = 'light' | 'dark'
export const themes: Record<
ThemeName,
Record<ColorScheme, Record<string, string>>
> = {
twitter: {
light: vars({
'--color-primary': '#1d9bf0',
'--color-primary-contrast': '#FFF',
'--color-background': '#FFF',
'--color-background-contrast': '#000',
'--color-divider': 'rgba(0, 0, 0, 0.1)',
'--color-text-primary': '#000',
'--color-text-secondary': 'rgba(0, 0, 0, 0.6)',
}),
dark: vars({
'--color-primary': '#1d9bf0',
'--color-primary-contrast': '#000',
'--color-background': '#000',
'--color-background-contrast': '#FFF',
'--color-divider': 'rgba(255, 255, 255, 0.2)',
'--color-text-primary': '#FFF',
'--color-text-secondary': 'rgba(255, 255, 255, 0.6)',
}),
},
}