-
Notifications
You must be signed in to change notification settings - Fork 3k
/
dark.ts
153 lines (148 loc) · 5.84 KB
/
dark.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import colors from '@styles/theme/colors';
import type {ThemeColors} from '@styles/theme/types';
import CONST from '@src/CONST';
import SCREENS from '@src/SCREENS';
const darkTheme = {
// Figma keys
appBG: colors.productDark100,
splashBG: colors.green400,
highlightBG: colors.productDark200,
border: colors.productDark400,
borderLighter: colors.productDark400,
borderFocus: colors.green400,
icon: colors.productDark700,
iconMenu: colors.green400,
iconHovered: colors.productDark900,
iconMenuHovered: colors.green400,
iconSuccessFill: colors.green400,
iconReversed: colors.productDark100,
iconColorfulBackground: `${colors.ivory}cc`,
textSupporting: colors.productDark800,
text: colors.productDark900,
textColorfulBackground: colors.ivory,
syntax: colors.productDark600,
link: colors.blue300,
linkHover: colors.blue100,
buttonDefaultBG: colors.productDark400,
buttonHoveredBG: colors.productDark500,
buttonPressedBG: colors.productDark600,
danger: colors.red,
dangerHover: colors.redHover,
dangerPressed: colors.redHover,
warning: colors.yellow400,
success: colors.green400,
successHover: colors.greenHover,
successPressed: colors.greenPressed,
transparent: colors.transparent,
signInPage: colors.green800,
darkSupportingText: colors.productDark800,
// Additional keys
overlay: colors.productDark400,
inverse: colors.productDark900,
shadow: colors.black,
componentBG: colors.productDark100,
hoverComponentBG: colors.productDark300,
activeComponentBG: colors.productDark400,
signInSidebar: colors.green800,
sidebar: colors.productDark100,
sidebarHover: colors.productDark300,
heading: colors.productDark900,
textLight: colors.productDark900,
textDark: colors.productDark100,
textReversed: colors.productLight900,
textBackground: colors.productDark200,
textMutedReversed: colors.productDark700,
textError: colors.red,
offline: colors.productDark700,
modalBackground: colors.productDark100,
cardBG: colors.productDark200,
cardBorder: colors.productDark200,
spinner: colors.productDark800,
unreadIndicator: colors.green400,
placeholderText: colors.productDark700,
heroCard: colors.blue400,
uploadPreviewActivityIndicator: colors.productDark200,
dropUIBG: 'rgba(6,27,9,0.92)',
receiptDropUIBG: 'rgba(3, 212, 124, 0.84)',
checkBox: colors.green400,
imageCropBackgroundColor: colors.productDark700,
fallbackIconColor: colors.green700,
reactionActiveBackground: colors.green600,
reactionActiveText: colors.green100,
badgeAdHoc: colors.pink600,
badgeAdHocHover: colors.pink700,
mentionText: colors.blue100,
mentionBG: colors.blue600,
ourMentionText: colors.green100,
ourMentionBG: colors.green600,
tooltipSupportingText: colors.productLight800,
tooltipPrimaryText: colors.productLight900,
skeletonLHNIn: colors.productDark400,
skeletonLHNOut: colors.productDark600,
QRLogo: colors.green400,
starDefaultBG: 'rgb(254, 228, 94)',
loungeAccessOverlay: colors.blue800,
mapAttributionText: colors.black,
white: colors.white,
// Adding a color here will animate the status bar to the right color when the screen is opened.
// Note that it needs to be a screen name, not a route url.
// The route urls from ROUTES.ts are only used for deep linking and configuring URLs on web.
// The screen name (see SCREENS.ts) is the name of the screen as far as react-navigation is concerned, and the linkingConfig maps screen names to URLs
PAGE_THEMES: {
[SCREENS.HOME]: {
backgroundColor: colors.productDark200,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.REPORT]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SAVE_THE_WORLD.ROOT]: {
backgroundColor: colors.tangerine800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.PREFERENCES.ROOT]: {
backgroundColor: colors.blue500,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.WORKSPACES]: {
backgroundColor: colors.pink800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.WALLET.ROOT]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.SECURITY]: {
backgroundColor: colors.ice500,
statusBarStyle: CONST.STATUS_BAR_STYLE.DARK_CONTENT,
},
[SCREENS.SETTINGS.PROFILE.STATUS]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.ROOT]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.WORKSPACE_SWITCHER.ROOT]: {
backgroundColor: colors.productDark100,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.SETTINGS.ABOUT]: {
backgroundColor: colors.yellow600,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.REFERRAL_DETAILS]: {
backgroundColor: colors.pink800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.RIGHT_MODAL.SIGN_IN]: {
backgroundColor: colors.productDark200,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
},
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
colorScheme: CONST.COLOR_SCHEME.DARK,
} satisfies ThemeColors;
export default darkTheme;