-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
41 lines (38 loc) 路 1.05 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
import { cyanA, cyanDarkA } from "@radix-ui/colors";
import typography from "@tailwindcss/typography";
import { createShadcnPreset, overrideShadcnTheme } from "mizuhara/plugins";
import type { Config } from "tailwindcss";
import { createPlugin } from "windy-radix-palette";
const colors = createPlugin();
const config: Config = {
content: ["./src/{app,components}/**/*.tsx"],
theme: {
extend: {
keyframes: {
marquee: {
from: { transform: "translateX(0)" },
to: { transform: "translateX(calc(-100% - var(--gap, 1rem)))" },
},
},
animation: {
marquee: "marquee var(--duration, 20s) linear infinite",
},
},
},
plugins: [colors.plugin, typography],
presets: [
createShadcnPreset({
theme: overrideShadcnTheme({
light: {
primary: cyanDarkA.cyanA9,
primaryForeground: cyanA.cyanA12,
},
dark: {
primary: cyanA.cyanA12,
primaryForeground: cyanDarkA.cyanA9,
},
}),
}),
],
};
export default config;