-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
49 lines (46 loc) · 1.13 KB
/
theme.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
import { config } from "@tamagui/config/v3";
import { createTamagui, createTokens } from "tamagui";
export const Colors = {
dark: "#1C1C1E",
darkLight: "#28282A",
purpleLight: "#5C3A65",
purpleDark: "#0E1020",
purple: "#30213E",
accent: "#5E5CE5",
accentLight: "#B794F4",
white: "#FFFFFF",
greyPurple: "#473D51",
greyLight: "#D4D4D4",
red: "#F00",
};
const tokens = createTokens({
...config.tokens,
color: {
...config.tokens.color,
...Colors,
},
});
export const theme = createTamagui({
...config,
tokens,
themes: {
dark: {
// Background colors
background: Colors.dark,
darkLightBackground: Colors.darkLight,
greyPurpleBackground: Colors.greyPurple,
purpleBackground: Colors.purple,
accentBackground: Colors.accent,
// Text colors
color: Colors.white, // default text color
darkText: Colors.dark,
greyText: Colors.greyLight,
// Other colors
danger: Colors.red,
colorTransparent: "transparent",
borderColorFocus: "transparent",
placeholderColor: Colors.greyLight,
},
light: config.themes.light, // not used
},
});