forked from histoire-dev/histoire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
74 lines (63 loc) · 1.53 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
// @ts-nocheck
/* eslint-disable @typescript-eslint/no-var-requires */
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
theme: {
extend: {
colors: {
primary: colors.emerald,
gray: {
...colors.zinc,
750: '#323238',
850: '#1f1f21',
950: '#101012',
},
},
maxWidth: theme => ({
...theme('width'),
}),
maxHeight: theme => ({
...theme('height'),
}),
minWidth: theme => ({
...theme('width'),
}),
minHeight: theme => ({
...theme('height'),
}),
screens: Object.keys(defaultTheme.screens).reduce((obj, key) => {
const [rawMin] = defaultTheme.screens[key].split('px')
const max = parseInt(rawMin) - 1
obj[`!${key}`] = { max: `${max}px` }
return obj
}, {}),
borderRadius: {
sm: '0.25rem',
DEFAULT: '0.375rem',
md: '0.5rem',
lg: '0.75rem',
xl: '1rem',
'2xl': '1.5rem',
'3xl': '2rem',
},
cursor: {
'ew-resize': 'ew-resize',
'ns-resize': 'ns-resize',
'cursor-not-allowed': 'cursor-not-allowed',
},
transitionProperty: {
border: 'border',
},
},
},
content: [
'./docs/**/*.{vue,js,ts,jsx,tsx,md}',
'./docs/.vitepress/**/*.{vue,js,ts,jsx,tsx,md}',
],
darkMode: 'class', // or 'media' or 'class'
corePlugins: {
preflight: false,
},
plugins: [],
}