-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
65 lines (64 loc) · 1.75 KB
/
tailwind.config.cjs
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
module.exports = {
purge: {
content: ["./src/**/*.{html,js,svelte,ts}"],
options: {
defaultExtractor: (content) => [
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
...tailwindExtractor(content),
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
([_match, group, ..._rest]) => group
)
],
keyframes: true
}
},
theme: {
boxShadow: {
sm: "0.25rem 0.25rem rgba(107, 114, 128)",
md: "0.5rem 0.5rem rgba(107, 114, 128)",
DEFAULT: "1rem 1rem #5a5c69"
},
color: {},
extend: {
keyframes: {
swim: {
"0%, 100%": {
transform: "rotate(0deg) translateY(0)"
},
"25%": {
transform: "rotate(-5deg) translateY(-25%)"
},
"50%": {
transform: "rotate(0deg) translateY(-50%)"
// animationTimingFunction: "cubic-bezier(0.8, 0, 1, 1)",
},
"75%": {
transform: "rotate(5deg) translateY(-25%)"
}
},
barberpole: {
from: {
backgroundPosition: "0 0"
},
to: {
backgroundPosition: "60px 30px"
}
}
},
animation: {
swim: "swim 1s linear infinite",
barberpole: "barberpole 0.5s linear infinite"
}
}
},
variants: {
extend: {
backgroundColor: ["odd"],
animation: ["hover"],
zIndex: ["hover"]
}
},
plugins: []
};