-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
59 lines (58 loc) · 1.52 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
const plugin = require('tailwindcss/plugin');
const colors = require('tailwindcss/colors');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx,css}', './public/index.html'],
safelist: [
{
pattern:
/(border|bg|text)-(gray|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700)/,
variants: ['hover', 'active', 'dark', 'dark:hover', 'dark:active'],
},
],
darkMode: 'class',
theme: {
cursor: {
auto: 'auto',
default: 'default',
pointer: 'pointer',
wait: 'wait',
text: 'text',
move: 'move',
'not-allowed': 'not-allowed',
crosshair: 'crosshair',
'zoom-in': 'zoom-in',
grab: 'grab',
grabbing: 'grabbing',
},
extend: {
colors: {
transparent: 'transparent',
current: 'currentColor',
gray: colors.neutral,
},
screens: {
hsm: { raw: '(min-height: 698px)' },
},
spacing: {
128: '32rem',
192: '48rem',
imgw: '1440px',
imgh: '960px',
'screen-banner': 'calc(100vh - 2rem)',
},
fontSize: {
'2xs': '0.625rem',
},
},
},
plugins: [
plugin(function ({ addVariant, e }) {
addVariant('compact', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.compact-mode .${e(`compact${separator}${className}`)}`;
});
});
}),
],
};