Add tailwind plugins
Browse files- src/wordle/tw.py +11 -1
src/wordle/tw.py
CHANGED
@@ -31,12 +31,22 @@ import httpx
|
|
31 |
|
32 |
DEFAULT_CONFIG = """
|
33 |
/** @type {import('tailwindcss').Config} */
|
|
|
|
|
|
|
34 |
module.exports = {
|
35 |
content: ["**/*.py"],
|
36 |
theme: {
|
37 |
extend: {},
|
38 |
},
|
39 |
-
plugins: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
"""
|
42 |
|
|
|
31 |
|
32 |
DEFAULT_CONFIG = """
|
33 |
/** @type {import('tailwindcss').Config} */
|
34 |
+
|
35 |
+
const plugin = require('tailwindcss/plugin')
|
36 |
+
|
37 |
module.exports = {
|
38 |
content: ["**/*.py"],
|
39 |
theme: {
|
40 |
extend: {},
|
41 |
},
|
42 |
+
plugins: [
|
43 |
+
plugin(function({ addVariant }) {
|
44 |
+
addVariant('htmx-settling', ['&.htmx-settling', '.htmx-settling &'])
|
45 |
+
addVariant('htmx-request', ['&.htmx-request', '.htmx-request &'])
|
46 |
+
addVariant('htmx-swapping', ['&.htmx-swapping', '.htmx-swapping &'])
|
47 |
+
addVariant('htmx-added', ['&.htmx-added', '.htmx-added &'])
|
48 |
+
}),
|
49 |
+
],
|
50 |
}
|
51 |
"""
|
52 |
|