-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
182 lines (180 loc) · 6.67 KB
/
tailwind.config.ts
File metadata and controls
182 lines (180 loc) · 6.67 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
import type { Config } from 'tailwindcss'
import tailwindcssAnimate from 'tailwindcss-animate'
const config: Config = {
darkMode: 'class',
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
screens: {
'xs': '475px',
'sm': '640px',
'md': '768px',
'lg': '1024px',
'xl': '1280px',
'2xl': '1536px',
// Mobile-first utilities
'mobile': { 'max': '767px' },
'tablet': { 'min': '768px', 'max': '1023px' },
'desktop': { 'min': '1024px' },
// Touch-specific breakpoints
'touch': { 'raw': '(hover: none) and (pointer: coarse)' },
'no-touch': { 'raw': '(hover: hover) and (pointer: fine)' },
// Reduced motion
'reduce-motion': { 'raw': '(prefers-reduced-motion: reduce)' },
'allow-motion': { 'raw': '(prefers-reduced-motion: no-preference)' },
},
extend: {
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
success: {
DEFAULT: 'hsl(var(--success))',
foreground: 'hsl(var(--success-foreground))',
},
warning: {
DEFAULT: 'hsl(var(--warning))',
foreground: 'hsl(var(--warning-foreground))',
},
surface: {
subtle: 'hsl(var(--surface-subtle))',
muted: 'hsl(var(--surface-muted))',
accent: 'hsl(var(--surface-accent))',
},
info: {
DEFAULT: 'hsl(var(--info))',
foreground: 'hsl(var(--info-foreground))',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))',
},
// MentoLoop brand colors - Single source of truth
mentoloop: {
navy: '216 100% 8%', // #001656
blue: {
dark: '216 100% 30%', // #003D99 (maps to --secondary)
medium: '214 100% 60%', // #338BFF (maps to --primary)
light: '213 100% 90%', // #CCE0FF
},
teal: '158 64% 52%', // #34D399 (maps to --accent)
green: {
light: '153 69% 75%', // #93E9BE
},
mint: '158 87% 94%', // #E1FEF4
gray: {
DEFAULT: '220 13% 46%', // #6B7280
dark: '220 29% 10%', // #111827
light: '220 13% 84%', // #D1D5DB
},
slate: {
DEFAULT: '215 16% 29%', // #374151
dark: '218 21% 18%', // #1F2937
},
orange: '16 91% 50%', // #EB5812
yellow: '54 97% 64%', // #FDE047
cream: '34 100% 91%', // #FFEDD5
black: '0 0% 0%', // #000000
white: '0 0% 100%', // #FFFFFF
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
fontFamily: {
sans: ['Plus Jakarta Sans', 'Inter', 'system-ui', 'sans-serif'],
display: ['Plus Jakarta Sans', 'Inter', 'system-ui', 'sans-serif'],
body: ['Source Sans 3', 'Inter', 'system-ui', 'sans-serif'],
},
fontSize: {
// Display scale for hero sections
'display-xs': ['2rem', { lineHeight: '1.25', fontWeight: '700' }], // 32px
'display-sm': ['2.5rem', { lineHeight: '1.25', fontWeight: '700' }], // 40px
'display-md': ['3rem', { lineHeight: '1.2', fontWeight: '700' }], // 48px
'display-lg': ['3.75rem', { lineHeight: '1.2', fontWeight: '700' }], // 60px
'display-xl': ['4.5rem', { lineHeight: '1.1', fontWeight: '800' }], // 72px
// Heading scale
'heading-h1': ['2.25rem', { lineHeight: '1.3', fontWeight: '700' }], // 36px
'heading-h2': ['1.875rem', { lineHeight: '1.3', fontWeight: '700' }], // 30px
'heading-h3': ['1.5rem', { lineHeight: '1.4', fontWeight: '600' }], // 24px
'heading-h4': ['1.25rem', { lineHeight: '1.4', fontWeight: '600' }], // 20px
'heading-h5': ['1.125rem', { lineHeight: '1.5', fontWeight: '600' }], // 18px
'heading-h6': ['1rem', { lineHeight: '1.5', fontWeight: '600' }], // 16px
// Body scale
'body-lg': ['1.125rem', { lineHeight: '1.625', fontWeight: '400' }], // 18px
'body-base': ['1rem', { lineHeight: '1.625', fontWeight: '400' }], // 16px
'body-sm': ['0.875rem', { lineHeight: '1.5', fontWeight: '400' }], // 14px
'body-xs': ['0.75rem', { lineHeight: '1.5', fontWeight: '400' }], // 12px
},
transitionDuration: {
instant: '100ms',
fast: '150ms',
base: '300ms',
slow: '500ms',
slower: '800ms',
slowest: '1000ms',
},
transitionTimingFunction: {
'standard': 'cubic-bezier(0.22, 1, 0.36, 1)',
'accelerate': 'cubic-bezier(0.4, 0, 1, 1)',
'decelerate': 'cubic-bezier(0, 0, 0.2, 1)',
'gentle': 'cubic-bezier(0.16, 1, 0.3, 1)',
'bounce': 'cubic-bezier(0.68, -0.55, 0.265, 1.55)',
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
},
plugins: [tailwindcssAnimate],
}
export default config