forked from gravitano/nuxt3-tailwind-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
68 lines (66 loc) · 1.7 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
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const primary = colors.indigo
const secondary = colors.pink
const info = colors.sky
const warning = colors.amber
const success = colors.emerald
const error = colors.red
module.exports = {
content: [
'./assets/**/*.{vue,js,css}',
'./components/**/*.{vue,js}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./server/**/*.{js,ts}',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
'./node_modules/windplus/styles/**/*.{vue,js,css}',
'./node_modules/windplus/styles/*.{vue,js,css}',
'./node_modules/windplus/styles/main.css',
],
darkMode: 'class', // or 'media' or 'class'
theme: {
extend: {
gridTemplateRows: {
'[auto,auto,1fr]': 'auto auto 1fr',
},
colors: {
primary,
secondary,
info,
warning,
success,
error,
},
textColor: {
skin: {
base: 'var(--color-text-base)',
muted: 'var(--color-text-muted)',
active: 'var(--color-text-active)',
hover: 'var(--color-text-hover)',
icon: 'var(--color-text-icon)',
},
},
backgroundColor: {
skin: {
'fill': 'var(--color-fill)',
'fill-active': 'var(--color-fill-active)',
'fill-hover': 'var(--color-fill-hover)',
'icon-fill': 'var(--color-icon-fill)',
},
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
],
}