-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
60 lines (59 loc) · 1.64 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')
/** @type {import("tailwindcss").Config} */
module.exports = {
darkMode: 'class',
content: [
'./components/**/*.{js,ts,jsx,tsx}',
'./pages/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {
keyframes: {
in: {
'0%': { width: '0', left: '0', right: 'auto' },
'100%': { width: '100%', left: '0', right: 'auto' }
},
out: {
'0%': { width: '100%', left: 'auto', right: '0' },
'100%': { width: '0', left: 'auto', right: '0' }
}
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--gradient-color-stops))'
},
colors: {
'l-bg': '#D3D3D1',
'd-bg': '#141616',
'l-primary': '#81B622',
'd-primary': '#8bc225',
comment: '#7D7F80',
languageColor: 'var(--languageColor)'
},
height: {
'list-indicator': 'var(--list-indicator)'
},
inset: {
list: 'var(--list-left)'
}
},
screens: {
xl: { max: '1279px' },
lg: { max: '1024px' },
md: { max: '767px' },
sm: { max: '639px' }
}
},
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'translate-z': value => ({
'--tw-translate-z': value,
transform: ` translate3d(var(--tw-translate-x), var(--tw-translate-y), var(--tw-translate-z)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))`
}) // this is actual CSS
},
{ values: theme('translate') }
)
})
]
}