-
Notifications
You must be signed in to change notification settings - Fork 107
/
tailwind.config.ts
60 lines (57 loc) · 1.38 KB
/
tailwind.config.ts
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
import { type Config } from "tailwindcss";
export default {
darkMode: ["class"],
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
animation: {
marquee: "marquee 25s linear infinite",
marquee2: "marquee2 25s linear infinite",
},
keyframes: {
marquee: {
"0%": {
transform: "translateX(0%)",
},
"100%": {
transform: "translateX(-100%)",
},
},
marquee2: {
"0%": {
transform: "translateX(100%)",
},
"100%": {
transform: "translateX(0%)",
},
},
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
colors: {},
},
},
plugins: [
require("tailwindcss-radix")(),
require("tailwindcss-animate"),
require("@vidstack/react/tailwind.cjs")({
prefix: "media",
}),
customVariants,
],
} satisfies Config;
function customVariants({
addVariant,
matchVariant,
}: {
addVariant: any;
matchVariant: any;
}) {
// Strict version of `.group` to help with nesting.
matchVariant("parent-data", (value: any) => `.parent[data-${value}] > &`);
addVariant("hocus", ["&:hover", "&:focus-visible"]);
addVariant("group-hocus", [".group:hover &", ".group:focus-visible &"]);
}