-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.js
60 lines (59 loc) · 1.46 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
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
purge: {
content: ['./templates/**/*.html', './theme/**/*.html'],
},
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
theme: {
bg: 'var(--color-bg)',
'bg-offset': 'var(--color-bg-offset)',
headline: 'var(--color-headline)',
text: 'var(--color-text)',
'text-offset': 'var(--color-text-offset)',
border: 'var(--rolor-border)',
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
},
},
minHeight: {
auto: 'auto',
},
flex: {
2: '2 2 0%',
},
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/line-clamp'),
plugin(function ({ addComponents }) {
addComponents({
'.border-b-primary': {
borderBottomWidth: '2px',
borderStyle: 'solid',
borderColor: 'transparent',
'&:hover': {
borderColor: 'var(--color-primary)'
}
},
'.shadow-b-primary': {
'transition': 'box-shadow 400ms ease 0s',
'box-shadow': '0px 0px 0px var(--color-primary)',
'&:hover': {
'transition': 'box-shadow 100ms ease 0s',
'box-shadow': '0px 2px 0px var(--color-primary)',
}
}
});
}),
],
corePlugins: {
container: false,
},
};