-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
68 lines (66 loc) · 2.24 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const theme = require('./themeColors');
const {hslFunction, colors} = theme;
module.exports = {
content: ['./App.{js,jsx,ts,tsx}', './src/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {
colors: {
foreground: {
DEFAULT: hslFunction(colors.light.foreground),
dark: hslFunction(colors.dark.foreground),
},
background: {
DEFAULT: hslFunction(colors.light.background),
dark: hslFunction(colors.dark.background),
},
primary: {
DEFAULT: hslFunction(colors.light.primary),
dark: hslFunction(colors.dark.primary),
},
primaryForeground: {
DEFAULT: hslFunction(colors.light.primaryForeground),
dark: hslFunction(colors.dark.primaryForeground),
},
secondary: {
DEFAULT: hslFunction(colors.light.secondary),
dark: hslFunction(colors.dark.secondary),
},
secondaryForeground: {
DEFAULT: hslFunction(colors.light.secondaryForeground),
dark: hslFunction(colors.dark.secondaryForeground),
},
muted: {
DEFAULT: hslFunction(colors.light.muted),
dark: hslFunction(colors.dark.muted),
},
mutedForeground: {
DEFAULT: hslFunction(colors.light.mutedForeground),
dark: hslFunction(colors.dark.mutedForeground),
},
accent: {
DEFAULT: hslFunction(colors.light.accent),
dark: hslFunction(colors.dark.accent),
},
accentForeground: {
DEFAULT: hslFunction(colors.light.accentForeground),
dark: hslFunction(colors.dark.accentForeground),
},
destructive: {
DEFAULT: hslFunction(colors.light.destructive),
dark: hslFunction(colors.dark.destructive),
},
destructiveForeground: {
DEFAULT: hslFunction(colors.light.destructiveForeground),
dark: hslFunction(colors.dark.destructiveForeground),
},
borderColor: {
DEFAULT: hslFunction(colors.light.borderColor),
dark: hslFunction(colors.dark.borderColor),
},
},
},
},
plugins: [],
};