-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
22 lines (20 loc) · 792 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
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
const config = {
content: ["internal/web/templates/*.html"],
plugins: [
plugin(({ addVariant }) => {
addVariant("reveal-button", '&[data-revealed="true"] [data-purpose="reveal"]');
addVariant("reveal-eye", '&[data-revealed="true"] .on-content-revealed');
addVariant("reveal-eye-slash", '&[data-revealed="true"] .on-content-hidden');
addVariant("nonreveal-eye", '&[data-revealed="false"] .on-content-revealed');
addVariant("nonreveal-eye-slash", '&[data-revealed="false"] .on-content-hidden');
addVariant("input-focus", "&:has(input:focus)");
addVariant("hocus", ["&:hover", "&:focus"]);
})
],
theme: {
extend: {}
}
};
export default config;