-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.cjs
69 lines (66 loc) · 1.61 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
const plugin = require('tailwindcss/plugin');
// reference: https://stackoverflow.com/a/67458852/11698825
const hoverPlugin = plugin(function({ addVariant, e, postcss }) {
addVariant('hover', ({ container, separator }) => {
const hoverRule = postcss.atRule({ name: 'media', params: '(hover: hover) and (pointer: fine)' });
hoverRule.append(container.nodes);
container.append(hoverRule);
hoverRule.walkRules(rule => {
rule.selector = `.${e(`hover${separator}${rule.selector.slice(1)}`)}:hover`
});
});
});
const config = {
mode: "jit",
content: [
"./src/**/*.{html,js,svelte,ts}",
],
theme: {
extend: {
screens: {
'-2xl': { max: '1535px' },
'-xl': { max: '1279px' },
'-lg': { max: '1023px' },
'-md': { max: '767px' },
'-sm': { max: '639px' },
'@md': { min: '640px', max: '767px' },
'@lg': { min: '768px', max: '1023px' },
'@xl': { min: '1024px', max: '1279px' },
'@2xl': { min: '1280px', max: '1535px' },
},
zIndex: {
'-1': '-1',
'1': 1,
'2': 2,
'3': 3,
'4': 4,
'5': 5,
},
fontFamily: {
sans: ['"Nunito"', 'sans-serif']
},
height: {
'100': '25rem',
},
listStyleType: {
square: 'square',
},
colors: {
'active': '#007097',
'success': '#146481',
'non-active': '#31493c54',
'main-bg': '#d4eff5',
'add-bg': '#d4eff554',
'add-bg-non-tr': '#d4eff554',
'text': '#001A23',
'good-feeling': '#bcedb5',
'neutral-feeling': '#fcd9f6',
'bad-feeling': '#ffbaba',
'error': '#ffa500',
'almost-inv': '#dddddd',
},
},
},
plugins: [ hoverPlugin ],
};
module.exports = config;