-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
30 lines (28 loc) · 867 Bytes
/
tailwind.config.js
File metadata and controls
30 lines (28 loc) · 867 Bytes
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
const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["templates/*.html", "templates/public/*.html"],
theme: {
extend: {
keyframes: {
wiggle: {
'0%, 45%': { transform: 'none' },
'50%': { transform: 'translateX(-2px)' },
'55%': { transform: 'translateX(2px)' },
'60%, 100%': { transform: 'none' },
}
},
animation: {
wiggle: 'wiggle 4s infinite',
}
},
},
plugins: [
plugin(function({ addVariant }) {
addVariant('htmx-settling', ['&.htmx-settling', '.htmx-settling &'])
addVariant('htmx-request', ['&.htmx-request', '.htmx-request &'])
addVariant('htmx-swapping', ['&.htmx-swapping', '.htmx-swapping &'])
addVariant('htmx-added', ['&.htmx-added', '.htmx-added &'])
}),
],
}