-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththemes.ts
54 lines (50 loc) · 1.47 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
51
52
53
54
import { tailwindColors } from "@/constants/tailwind-colors";
// here replace any primary colorname from tailwind-color
const themePrimaryColor = "violet";
const themeSecondaryColor = "gray";
const themeErrorColor = "red";
export const lightTheme = {
colors: {
white: "white",
black: "black",
typography: "#000000",
background: "#ffffff",
primary: tailwindColors[themePrimaryColor][700],
secondary: tailwindColors[themeSecondaryColor][300],
accent: tailwindColors[themePrimaryColor][700],
error: tailwindColors[themeErrorColor][500],
mutedPrimary: tailwindColors[themePrimaryColor][600],
mutedSecondary: tailwindColors[themeSecondaryColor][400],
mutedError: tailwindColors[themeErrorColor][600],
mutedTransparent: tailwindColors[themeSecondaryColor][100],
},
margins: {
sm: 2,
md: 4,
lg: 8,
xl: 12,
},
} as const;
export const darkTheme = {
colors: {
white: "white",
black: "black",
typography: "#ffffff",
background: "#0C0A09",
primary: tailwindColors[themePrimaryColor][600],
secondary: tailwindColors[themeSecondaryColor][700],
accent: tailwindColors[themePrimaryColor][600],
error: tailwindColors[themeErrorColor][700],
mutedPrimary: tailwindColors[themePrimaryColor][700],
mutedSecondary: tailwindColors[themeSecondaryColor][600],
mutedError: tailwindColors[themeErrorColor][600],
mutedTransparent: tailwindColors[themeSecondaryColor][900],
},
margins: {
sm: 2,
md: 4,
lg: 8,
xl: 12,
},
} as const;
// define other themes