-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
92 lines (90 loc) · 2.95 KB
/
tailwind.config.ts
File metadata and controls
92 lines (90 loc) · 2.95 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
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['var(--font-dm-sans)', 'system-ui', 'sans-serif'],
display: ['var(--font-display)', 'sans-serif'],
mono: ['var(--font-mono)', 'monospace'],
},
colors: {
// Primary semantic colors
background: 'var(--bg-primary)',
surface: 'var(--bg-secondary)',
'surface-2': 'var(--bg-elevated)',
foreground: 'var(--text-primary)',
'foreground-muted': 'var(--text-muted)',
muted: 'var(--text-secondary)',
'muted-2': 'var(--text-muted)',
border: 'var(--border)',
'border-strong': 'var(--border-strong)',
// Brand
brand: 'var(--accent)',
'brand-hover': 'var(--accent-hover)',
'brand-muted': 'var(--accent-soft)',
accent: 'var(--accent)',
// Status colors
// Legacy aliases
'surface2': 'var(--bg-elevated)',
'border-2': 'var(--border-strong)',
},
boxShadow: {
sm: 'var(--shadow-sm)',
md: 'var(--shadow-md)',
lg: 'var(--shadow-lg)',
},
animation: {
'fade-up': 'fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both',
'fade-in': 'fadeIn 0.3s ease-in-out',
'fade-out': 'fadeOut 0.3s ease-in-out',
'scale-in': 'scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both',
'slide-up': 'slideUp 0.3s ease-out',
'slide-up-sheet': 'slideUpSheet 0.32s cubic-bezier(0.16, 1, 0.3, 1) both',
'slide-in-right': 'slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) both',
'pulse-soft': 'pulseSoft 2s ease-in-out infinite',
'spin-slow': 'spin 3s linear infinite',
},
keyframes: {
fadeUp: {
'0%': { opacity: '0', transform: 'translateY(16px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
fadeOut: {
'0%': { opacity: '1' },
'100%': { opacity: '0' },
},
scaleIn: {
'0%': { opacity: '0', transform: 'scale(0.92)' },
'100%': { opacity: '1', transform: 'scale(1)' },
},
slideInRight: {
'0%': { opacity: '0', transform: 'translateX(24px)' },
'100%': { opacity: '1', transform: 'translateX(0)' },
},
slideUp: {
'0%': { transform: 'translateY(10px)', opacity: '0' },
'100%': { transform: 'translateY(0)', opacity: '1' },
},
slideUpSheet: {
'0%': { transform: 'translateY(100%)' },
'100%': { transform: 'translateY(0)' },
},
pulseSoft: {
'0%, 100%': { opacity: '1' },
'50%': { opacity: '0.5' },
},
},
},
},
plugins: [],
}
export default config