-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
53 lines (51 loc) · 1.55 KB
/
Copy pathtailwind.config.ts
File metadata and controls
53 lines (51 loc) · 1.55 KB
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
import type { Config } from "tailwindcss";
/**
* Tailwind design tokens.
*
* Colors are mapped to CSS variables defined in `src/styles/globals.css`.
* Dark mode is the default (tokens live on `:root`); the `.light` class
* overrides them for light mode. See `src/hooks/useTheme.ts`.
*/
const config: Config = {
darkMode: "class",
content: ["./index.html", "./src/**/*.{ts,tsx}"],
theme: {
extend: {
colors: {
background: "var(--color-background)",
surface: "var(--color-surface)",
elevated: "var(--color-elevated)",
foreground: "var(--color-foreground)",
"muted-foreground": "var(--color-muted-foreground)",
accent: "var(--color-accent)",
"accent-foreground": "var(--color-accent-foreground)",
border: "var(--color-border)",
ring: "var(--color-ring)",
},
fontFamily: {
display: ["var(--font-display)", "sans-serif"],
sans: ["var(--font-sans)", "sans-serif"],
mono: ["var(--font-mono)", "monospace"],
},
maxWidth: {
"7xl": "80rem",
},
keyframes: {
"fade-in": {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
"fade-up": {
"0%": { opacity: "0", transform: "translateY(16px)" },
"100%": { opacity: "1", transform: "translateY(0)" },
},
},
animation: {
"fade-in": "fade-in 0.6s ease-out forwards",
"fade-up": "fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards",
},
},
},
plugins: [],
};
export default config;