-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
70 lines (64 loc) · 2.06 KB
/
tailwind.config.cjs
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
// https://github.com/saadeghi/daisyui/discussions/401
const {
"[data-theme=dark]": darkTheme,
} = require("daisyui/colors/themes");
const {
"[data-theme=light]": lightTheme,
} = require("daisyui/colors/themes");
const config = {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
fontFamily: {
'serif': ['source-serif-pro', 'source-han-serif-sc', 'Georgia', "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", "游明朝", "Yu Mincho", "游明朝体", 'YuMincho', "ヒラギノ明朝 Pro", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", 'HGS明朝E', "MS Mincho", "AR PL New Sung", "AR PL SungtiL GB", 'STSong', 'NSimSun', 'SimSun', "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", 'PMingLiU', 'MingLiU', 'serif'],
'sans': ['system-ui', 'source-han-sans-simplified-c', 'sans-serif'],
'mono': ['source-code-pro', 'source-han-sans-simplified-c', 'monospace'],
}
},
},
plugins: [
require('daisyui')
],
daisyui: {
themes: [
{
dark: {
...darkTheme,
// https://tailwindcss.com/docs/customizing-colors
// red-600
primary: "#dc2626",
// red-300
'primary-focus': "#fca5a5",
// blue-800
secondary: "#1e40af",
// blue-200
'secondary-focus': '#bfdbfe',
// lime-500
accent: "#84cc16",
// lime-200
'accent-focus': '#d9f99d',
'base-100': '#18181b',
'base-300': '#171717'
},
light: {
... lightTheme,
// red-400
primary: "#f87171",
// red-800
'primary-focus': "#991b1b",
// emerald-400
secondary: "#059669",
// green-700
'secondary-focus': '#15803d',
// blue-500
accent: "#3b82f6",
// blue-200
'accent-focus': '#1e40af',
'base-100': '#f4f4f5',
'base-300': '#fff'
}
},
],
},
};
module.exports = config;