-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.js
44 lines (43 loc) · 1.09 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
/** @type {import('tailwindcss').Config} */
// eslint-disable-next-line
const colors = require('tailwindcss/colors')
module.exports = {
// darkMode: "class", // 启动暗黑模式 class支持手动切换 media跟随操作系统
content: [
'./components/**/*.{vue,js,jsx,tsx}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
'./app.vue',
'node_modules/tailvue/dist/tailvue.es.js' // tailvue 这里加上这个才不会所有css都被剔除
],
theme: {
extend: {},
theme: {
colors: {
// transparent: 'transparent',
// current: 'currentColor',
// black: colors.black,
// white: colors.white,
// gray: colors.neutral,
// indigo: colors.indigo,
// red: colors.rose,
// yellow: colors.amber,
},
},
},
/* daisyui */
plugins: [require('daisyui')],
daisyui: {
styled: true,
themes: ['light', 'dark'],
base: true,
utils: true,
logs: true,
rtl: false,
prefix: '',
darkTheme: 'dark',
themeRoot: ':root',
},
}