-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
89 lines (85 loc) · 2.22 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export const content = [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./pages/*.vue",
"./plugins/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
"./app.vue",
];
export const corePlugins = {
preflight: false,
};
export const darkMode = ['class', '[data-theme="dark"]'];
export const theme = {
extend: {
typography: {
DEFAULT: {
css: { // 相同选择器越长的优先级越高
color: 'var(--fallback-bc, oklch(var(--bc)))', // change global color scheme
'h1, h2, h3, h4, th': {
color: 'var(--fallback-bc, oklch(var(--bc)))',
},
'p, ul, ol, menu, pre, blockquote': {
marginBlock: '0.5em',
},
a: {
color: 'var(--fallback-p, oklch(var(--p)))',
fontWeight: 'normal',
},
'ul, ol, menu': {
'padding-inline-start': '1em',
},
li: {
margin: 0,
padding: 0,
},
'ol > li, ul > li': {
paddingLeft: 0,
},
'ul ul, ul ol, ol ul, ol ol, ul ul ul': {
marginTop: 0,
marginBottom: 0,
marginBlock: '0 !important',
},
},
},
},
}
};
export const plugins = [
require("daisyui"),
require('@tailwindcss/typography'),
];
const colors = {
'primary': 'oklch(50% 0.16 271)',
'secondary': 'oklch(50% 0.16 320)',
'info': 'oklch(50% 0.16 255)',
'success': 'oklch(50% 0.16 144)',
'warning': 'oklch(60% 0.16 48)',
'error': 'oklch(50% 0.16 27)',
}
export const daisyui = {
themes: [
{
light: {
...require('daisyui/src/theming/themes')['light'],
...colors,
'base-100': '#ffffff',
'base-200': 'oklch(96% 0 0)',
'primary-content': 'oklch(96% 0 0)',
'info-content': 'oklch(96% 0 0)',
'success-content': 'oklch(96% 0 0)',
'warning-content': 'oklch(96% 0 0)',
'error-content': 'oklch(96% 0 0)',
},
dark: {
...require('daisyui/src/theming/themes')['dark'],
...colors,
'primary-content': 'oklch(85% 0 0)',
'base-100': 'oklch(26% 0.016 252)',
'base-200': 'oklch(20% 0.016 252)',
},
},
],
}