-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
73 lines (71 loc) · 2.18 KB
/
tailwind.config.ts
File metadata and controls
73 lines (71 loc) · 2.18 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
import type { Config } from 'tailwindcss';
const config: Config = {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
theme: {
extend: {
colors: {
// Static accent colors (same in both themes)
accent: {
400: '#fbbf24',
500: '#f59e0b',
600: '#d97706',
},
// Keep neutral-950 for playground (unchanged)
neutral: {
950: '#09090b',
},
// Semantic theme colors (respond to light/dark via CSS vars)
page: 'rgb(var(--page) / <alpha-value>)',
surface: 'rgb(var(--surface) / <alpha-value>)',
elevated: 'rgb(var(--elevated) / <alpha-value>)',
fg: {
DEFAULT: 'rgb(var(--fg) / <alpha-value>)',
secondary: 'rgb(var(--fg-secondary) / <alpha-value>)',
tertiary: 'rgb(var(--fg-tertiary) / <alpha-value>)',
muted: 'rgb(var(--fg-muted) / <alpha-value>)',
faint: 'rgb(var(--fg-faint) / <alpha-value>)',
},
edge: {
DEFAULT: 'rgb(var(--edge) / <alpha-value>)',
hover: 'rgb(var(--edge-hover) / <alpha-value>)',
},
'accent-fg': 'rgb(var(--accent-fg) / <alpha-value>)',
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'Fira Code', 'monospace'],
},
borderRadius: {
sm: '2px',
DEFAULT: '4px',
md: '6px',
lg: '8px',
},
animation: {
'fade-in': 'fade-in 0.3s ease-out',
'slide-up': 'slide-up 0.4s ease-out',
'slide-down': 'slide-down 0.4s ease-out',
},
keyframes: {
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'slide-up': {
'0%': { opacity: '0', transform: 'translateY(10px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
'slide-down': {
'0%': { opacity: '0', transform: 'translateY(-10px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
},
},
plugins: [require('@tailwindcss/typography')],
};
export default config;