-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
61 lines (60 loc) · 1.19 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
const { fontFamily, screens } = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
darkMode: ['class', '[data-theme="dark"]'],
theme: {
// colors: {},
screens: {
xs: '475px',
...screens
},
extend: {
fontFamily: {
sans: ['Inter', ...fontFamily.sans]
},
backgroundImage: {
'gradient-conic': 'conic-gradient(var(--tw-gradient-stops))'
},
animation: {
blink: 'blink 1.4s infinite both',
disco: 'disco 1.5s linear infinite'
},
keyframes: {
blink: {
'0%': {
opacity: '0.2'
},
'20%': {
opacity: '1'
},
'100%': {
opacity: ' 0.2'
}
},
disco: {
'0%': { transform: 'translateY(-50%) rotate(0deg)' },
'100%': { transform: 'translateY(-50%) rotate(360deg)' }
}
}
}
},
plugins: [
require('@tailwindcss/forms'),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'animation-delay': (value) => {
return {
'animation-delay': value
};
}
},
{
values: theme('transitionDelay')
}
);
})
]
};