-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
99 lines (98 loc) · 2.76 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
90
91
92
93
94
95
96
97
98
99
const colors = require('tailwindcss/colors');
module.exports = {
mode: 'jit',
content: [
'components/**/*.{vue,js}',
'layouts/**/*.vue',
'pages/**/*.vue',
'composables/**/*.{js,ts}',
'plugins/**/*.{js,ts}',
'App.{js,ts,vue}',
'app.{js,ts,vue}',
],
safelist: ['nuxt-progress'],
darkMode: 'class',
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: colors.black,
white: colors.white,
gray: colors.slate,
cool: colors.gray,
brand: colors.rose,
power: '#b8342e',
speed: '#1b61b9',
technical: '#5b9326',
gold: colors.amber[300],
},
extend: {
boxShadow: {
top: '0 -1px 3px 0 rgba(0, 0, 0, 0.1), 0 -1px 2px 0 rgba(0, 0, 0, 0.06)',
},
backgroundImage: (theme) => ({
select: `url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23${theme(
'colors.gray.700'
).substring(
1
)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,
'select-dark': `url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23${theme(
'colors.cool.300'
).substring(
1
)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")`,
}),
typography: (theme) => ({
DEFAULT: {
css: {
h1: {
color: theme('colors.gray.700'),
fontWeight: '600',
},
h2: {
color: theme('colors.gray.700'),
fontWeight: '600',
},
h3: {
color: theme('colors.gray.700'),
},
h4: {
color: theme('colors.gray.700'),
},
'ul > li::before': {
backgroundColor: theme('colors.gray.500'),
},
},
},
dark: {
css: [
{
color: theme('colors.cool.300'),
h1: {
color: theme('colors.cool.300'),
},
h2: {
color: theme('colors.cool.300'),
},
h3: {
color: theme('colors.cool.300'),
},
h4: {
color: theme('colors.cool.300'),
},
'ul > li::before': {
backgroundColor: theme('colors.cool.400'),
},
},
],
},
}),
},
},
variants: {
extend: {
typography: ['dark'],
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
};