-
Notifications
You must be signed in to change notification settings - Fork 11
/
tailwind.config.cjs
95 lines (92 loc) · 1.92 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
const plugin = require('tailwindcss/plugin');
const config = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
borderColor: {
skin: {
border: 'var(--color-border)'
}
},
fill: {
current: 'currentColor'
},
textColor: {
skin: {
base: 'var(--color-text-base)',
muted: 'var(--color-text-muted)',
inverted: 'var(--color-text-inverted)',
selected: 'var(--color-text-selected)',
mutedinverted: 'var(--color-text-muted-inverted)'
}
},
backgroundColor: {
skin: {
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
tertiary: 'var(--color-tertiary)',
bg: 'var(--color-bg)',
border: 'var(--color-border)',
selected: 'var(--color-selected)'
}
},
gradientColorStops: {
skin: {
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
tertiary: 'var(--color-tertiary)',
bg: 'var(--color-bg)',
border: 'var(--color-border)'
}
},
fontFamily: {
body: ['Raleway']
},
spacing: {
5: '1.125rem',
18: '4.5rem',
42: '10.5rem',
66: '16.5rem',
72: '18rem',
90: '22.5rem',
100: '25rem',
104: '26rem',
108: '27rem',
112: '28rem',
120: '30rem',
'16/9': '56.25%'
},
scale: {
60: '0.6',
44: '0.44'
},
gridTemplateRows: {
auto: 'repeat(auto-fill, minmax(0,auto))'
}
}
},
plugins: [
plugin(function ({ addUtilities }) {
const newUtilities = {
'.preserve-3d': {
'transform-style': 'preserve-3d'
},
'.perspective-1000': {
perspective: '1000px'
},
'.backface-hidden': {
'backface-visibility': 'hidden'
},
'.rotate-y-0': {
transform: 'rotateY(0deg)'
},
'.rotate-y-180': {
transform: 'rotateY(180deg)'
}
};
addUtilities(newUtilities, ['group-hover']);
}),
require('@tailwindcss/line-clamp')
]
};
module.exports = config;