-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.js
39 lines (38 loc) · 1.12 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
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
purge: ['./themes/tailwind/**/*.php', './assets/js/tailwind.js'],
darkMode: 'class',
theme: {
extend: {
colors: {
primary: 'var(--va-theme-color)',
'primary-text': 'var(--va-text-color)',
},
keyframes: {
'spin-backwards': {
to: { transform: 'rotate(-360deg)' },
},
},
animation: {
'spin-backwards': 'spin-backwards 1s linear infinite',
'spin-fast-ease': 'spin 500ms ease-in-out infinite',
},
},
},
variants: {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
plugin(({ addVariant, e }) => {
addVariant('readonly', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
return `.${e(
`readonly${separator}${className}`
)}[readonly]`;
});
});
}),
],
};