-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
120 lines (118 loc) · 3.6 KB
/
tailwind.config.ts
File metadata and controls
120 lines (118 loc) · 3.6 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
const config: Config = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-sans)", "sans-serif"],
mono: ["var(--font-mono)", "monospace"],
},
colors: {
border: "hsl(var(--border-light))",
input: "hsl(var(--bg-card))",
ring: "hsl(var(--text-primary))",
background: "hsl(var(--bg-page))",
foreground: "hsl(var(--text-primary))",
primary: {
DEFAULT: "hsl(var(--bg-button-primary))",
foreground: "hsl(var(--text-inverse))",
},
secondary: {
DEFAULT: "hsl(var(--bg-button-secondary))",
foreground: "hsl(var(--text-muted))",
},
muted: {
DEFAULT: "hsl(var(--bg-page))",
foreground: "hsl(var(--text-muted))",
},
accent: {
DEFAULT: "hsl(var(--bg-button-primary))",
foreground: "hsl(var(--text-inverse))",
},
card: {
DEFAULT: "hsl(var(--bg-card))",
foreground: "hsl(var(--text-primary))",
},
},
borderRadius: {
lg: "var(--radius-button)",
md: "var(--radius-card)",
sm: "var(--radius-pill)",
button: "var(--radius-button)",
card: "var(--radius-card)",
},
spacing: {
"space-1": "var(--space-1)",
"space-2": "var(--space-2)",
"space-3": "var(--space-3)",
"space-4": "var(--space-4)",
"space-6": "var(--space-6)",
"space-8": "var(--space-8)",
"space-12": "var(--space-12)",
"space-16": "var(--space-16)",
"space-20": "var(--space-20)",
"section-mobile": "var(--space-section-mobile)",
"section-tablet": "var(--space-section-tablet)",
"section-desktop": "var(--space-section-desktop)",
"card-mobile": "var(--space-card-mobile)",
"card-desktop": "var(--space-card-desktop)",
},
fontSize: {
display: "var(--text-display)",
h1: "var(--text-h1)",
h2: "var(--text-h2)",
"body-lg": "var(--text-body-lg)",
body: "var(--text-body)",
},
letterSpacing: {
tighter: "var(--tracking-tight)",
normal: "var(--tracking-normal)",
},
boxShadow: {
card: "var(--shadow-card)",
hover: "var(--shadow-hover)",
},
transitionDuration: {
base: "var(--transition-base)",
},
keyframes: {
"fade-up": {
from: { opacity: "0", transform: "translateY(20px)" },
to: { opacity: "1", transform: "translateY(0)" },
},
"fade-up-blur": {
from: {
opacity: "0",
transform: "translateY(20px)",
filter: "blur(10px)",
},
to: {
opacity: "1",
transform: "translateY(0)",
filter: "blur(0)",
},
},
float: {
"0%, 100%": { transform: "translateY(0)" },
"50%": { transform: "translateY(-10px)" },
},
"pulse-slow": {
"0%, 100%": { opacity: "0.4", transform: "scale(1)" },
"50%": { opacity: "0.6", transform: "scale(1.1)" },
},
},
animation: {
"fade-up": "fade-up 0.6s ease-out",
"fade-up-blur": "fade-up-blur 0.8s ease-out forwards",
float: "float 6s ease-in-out infinite",
"pulse-slow": "pulse-slow 8s ease-in-out infinite",
},
},
},
plugins: [typography],
};
export default config;