-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
110 lines (108 loc) · 3.56 KB
/
tailwind.config.ts
File metadata and controls
110 lines (108 loc) · 3.56 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
import type { Config } from 'tailwindcss';
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
fontFamily: {
sans: ['var(--font-inter)', 'system-ui', 'sans-serif'],
mono: ['var(--font-jetbrains)', 'Fira Code', 'Cascadia Code', 'monospace'],
},
colors: {
bg: {
primary: 'var(--bg-primary)',
surface: 'var(--bg-surface)',
elevated: 'var(--bg-elevated)',
overlay: 'var(--bg-overlay)',
},
border: {
subtle: 'var(--border-subtle)',
default: 'var(--border-default)',
strong: 'var(--border-strong)',
},
text: {
primary: 'var(--text-primary)',
secondary: 'var(--text-secondary)',
muted: 'var(--text-muted)',
inverse: 'var(--text-inverse)',
},
lang: {
javascript: 'var(--accent-javascript)',
python: 'var(--accent-python)',
java: 'var(--accent-java)',
cpp: 'var(--accent-cpp)',
ruby: 'var(--accent-ruby)',
go: 'var(--accent-go)',
rust: 'var(--accent-rust)',
typescript: 'var(--accent-typescript)',
php: 'var(--accent-php)',
swift: 'var(--accent-swift)',
},
success: 'var(--success)',
error: 'var(--error)',
warning: 'var(--warning)',
info: 'var(--info)',
},
/* Note: Removed custom spacing to avoid Tailwind v4 conflicts */
borderRadius: {
sm: 'var(--radius-sm)',
md: 'var(--radius-md)',
lg: 'var(--radius-lg)',
xl: 'var(--radius-xl)',
},
animation: {
'fade-in': 'fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'slide-up': 'slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'slide-down': 'slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards',
'slide-right': 'slideRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards',
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'glow-pulse': 'glow-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
shimmer: 'shimmer 2s infinite linear',
},
keyframes: {
fadeIn: {
from: { opacity: '0' },
to: { opacity: '1' },
},
slideUp: {
from: { opacity: '0', transform: 'translateY(20px)' },
to: { opacity: '1', transform: 'translateY(0)' },
},
slideDown: {
from: { opacity: '0', transform: 'translateY(-20px)' },
to: { opacity: '1', transform: 'translateY(0)' },
},
slideRight: {
from: { opacity: '0', transform: 'translateX(-20px)' },
to: { opacity: '1', transform: 'translateX(0)' },
},
pulse: {
'0%, 100%': { opacity: '1' },
'50%': { opacity: '0.6' },
},
'glow-pulse': {
'0%, 100%': {
boxShadow: '0 0 10px var(--glow-success), 0 0 20px var(--glow-success)',
},
'50%': {
boxShadow: '0 0 20px var(--glow-success), 0 0 40px var(--glow-success)',
},
},
shimmer: {
'0%': { backgroundPosition: '-1000px 0' },
'100%': { backgroundPosition: '1000px 0' },
},
},
backgroundImage: {
'gradient-brand': 'var(--gradient-brand)',
'gradient-success': 'var(--gradient-success)',
'gradient-error': 'var(--gradient-error)',
},
},
},
plugins: [],
};
export default config;