forked from LlamaPay/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
25 lines (23 loc) · 890 Bytes
/
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
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
extend: {},
},
plugins: [
require('@tailwindcss/forms'),
plugin(({ addVariant }) => {
addVariant('enter', '&[data-enter]');
addVariant('leave', '&[data-leave]');
addVariant('active-item', '&[data-active-item]');
addVariant('active', ['&:active', '&[data-active]']);
addVariant('focus-visible', ['&:focus-visible', '&[data-focus-visible]']);
addVariant('aria-invalid', '&[aria-invalid="true"]');
addVariant('aria-disabled', '&[aria-disabled="true"]');
addVariant('aria-selected', '&[aria-selected="true"]');
addVariant('aria-expanded', '&[aria-expanded="true"]');
addVariant('aria-checked', '&[aria-checked="true"]');
}),
],
};