forked from pruvious/pruvious
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
120 lines (119 loc) · 3.11 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const defaultTheme = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/runtime/components/**/*.vue',
'./src/runtime/composables/**/*.ts',
'./src/runtime/pages/**/*.vue',
'./src/runtime/plugins/**/*.ts',
],
theme: {
extend: {
borderColor: ({ theme }) => ({
DEFAULT: theme('colors.gray.200'),
error: theme('colors.red.700'),
}),
colors: {
primary: {
50: '#edf8ff',
100: '#d7edff',
200: '#b7e1ff',
300: '#86cfff',
400: '#4db3ff',
500: '#2491ff',
600: '#0d70ff',
700: '#0652dd',
800: '#0d47c0',
900: '#114097',
950: '#10141e',
},
gray: {
50: '#f5f6fa',
100: '#ebedf3',
200: '#d2d8e5',
300: '#abb7ce',
400: '#7d90b3',
500: '#566a8f',
600: '#495a80',
700: '#3c4968',
800: '#343f58',
900: '#2f384b',
950: '#030712',
},
red: {
50: '#fdf3f3',
100: '#fce4e4',
200: '#fbcdcd',
300: '#f6abab',
400: '#ef7a7a',
500: '#e44f4f',
600: '#d03232',
700: '#af2626',
800: '#942424',
900: '#792323',
},
},
fontFamily: {
sans: ['Roboto', ...defaultTheme.fontFamily.sans],
},
fontSize: {
'vs': '0.8125rem',
'15': '0.9375rem',
'2xl': ['1.375rem', { lineHeight: '1.875rem' }],
},
maxHeight: ({ theme }) => ({
...theme('spacing'),
}),
minHeight: ({ theme }) => ({
...theme('spacing'),
}),
maxWidth: ({ theme }) => ({
...theme('spacing'),
}),
minWidth: ({ theme }) => ({
...theme('spacing'),
'1/4': '25%',
}),
ringColor: ({ theme }) => ({
DEFAULT: theme('colors.primary.400'),
red: theme('colors.red.300'),
}),
screens: {
lp: { max: '1440px' },
tl: { max: '1199px' },
tp: { max: '1023px' },
ph: { max: '767px' },
},
spacing: {
8.5: '2.125rem',
17: '4.25rem',
25: '6.25rem',
},
strokeWidth: {
1.5: 1.5,
},
zIndex: {
41: 41,
42: 42,
toaster: 49,
},
},
},
plugins: [
plugin(function ({ addVariant }) {
addVariant('children', ['& > *'])
addVariant('grand-children', ['& > * > *'])
addVariant('hocus', ['&:hover', '&:focus'])
addVariant('group-hocus', ['.group:hover &', '.group:focus &'])
addVariant('parent-hover', [':hover > &'])
addVariant('parent-focus', [':focus > &'])
addVariant('parent-hocus', [':hover > &', ':focus > &'])
addVariant('parent-disabled', [':disabled > &'])
addVariant('sorting', ['body.is-sorting &'])
addVariant('not-sorting', ['body:not(.is-sorting) &'])
addVariant('compact', ['.compact &'])
addVariant('form-control', ['& .form-control'])
}),
],
}