-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.css
More file actions
506 lines (431 loc) · 16.7 KB
/
Copy pathglobals.css
File metadata and controls
506 lines (431 loc) · 16.7 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
@import 'tailwindcss';
@custom-variant dark (&:is(.dark *));
@utility container {
padding-inline: 2rem;
@media (width >= --theme(--breakpoint-sm)) {
max-width: none;
}
@media (width >= 1400px) {
max-width: 1400px;
}
}
/*
`@theme inline` (not plain `@theme`): our color tokens are `hsl(var(--x))`
indirections whose `--x` flips under `.dark`, and our font tokens reuse the
same `--font-*` names next/font sets on <html>. Plain `@theme` would emit
colliding/self-referential `--color-*`/`--font-*` at `:root` — breaking dark
mode and the Arabic font fallback chain. `inline` bakes the values into the
utilities and emits no shadowing `:root` vars. (shadcn/Tailwind-v4 pattern.)
*/
@theme inline {
--color-border: hsl(var(--border));
--color-input: hsl(var(--input));
--color-ring: hsl(var(--ring));
--color-background: hsl(var(--background));
--color-foreground: hsl(var(--foreground));
--color-primary: hsl(var(--primary));
--color-primary-foreground: hsl(var(--primary-foreground));
--color-secondary: hsl(var(--secondary));
--color-secondary-foreground: hsl(var(--secondary-foreground));
--color-destructive: hsl(var(--destructive));
--color-destructive-foreground: hsl(var(--destructive-foreground));
--color-muted: hsl(var(--muted));
--color-muted-foreground: hsl(var(--muted-foreground));
--color-accent: hsl(var(--accent));
--color-accent-foreground: hsl(var(--accent-foreground));
--color-card: hsl(var(--card));
--color-card-foreground: hsl(var(--card-foreground));
--color-craft-terracotta-light: #a84b2f;
--color-craft-terracotta-dark: #f2b48c;
--color-craft-terracotta: hsl(var(--craft-terracotta));
--color-craft-terracotta-foreground: hsl(var(--craft-terracotta-foreground));
--color-craft-olive-light: #7c8450;
--color-craft-olive-dark: #b5bc8a;
--color-craft-olive-text: #5a6139;
--color-craft-olive: hsl(var(--craft-olive));
--color-craft-olive-foreground: hsl(var(--craft-olive-foreground));
--color-craft-saffron-light: #d9a441;
--color-craft-saffron-dark: #e8c87c;
--color-craft-saffron-text: #8a6d2b;
--color-craft-saffron: hsl(var(--craft-saffron));
--color-craft-saffron-foreground: hsl(var(--craft-saffron-foreground));
--color-craft-cream-light: #fff9f2;
--color-craft-cream-dark: #211a16;
--color-craft-ink-light: #3b2e26;
--color-craft-ink-dark: #f2e9dd;
--color-craft-surface-light: #fffcf8;
--color-craft-surface-dark: #2c241f;
--color-craft-beige-light: #eae0d2;
--color-craft-beige-dark: #3e3630;
--color-craft-success-light: #8cb89a;
--color-craft-success-dark: #8cb89a;
--color-craft-success-text: #4c7259;
--color-craft-warning-light: #d9a441;
--color-craft-warning-dark: #e8c87c;
--color-craft-warning-text: #8a6d2b;
--color-craft-error-light: #cc5a50;
--color-craft-error-dark: #e8948c;
--radius-lg: var(--radius);
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);
--radius-craft: 255px 15px 225px 15px / 15px 225px 15px 255px;
--font-sans:
var(--font-sans), var(--font-arabic), Quicksand, system-ui, sans-serif;
--font-display:
var(--font-display), var(--font-arabic-display), Amatic SC, cursive;
--font-hand: var(--font-hand), var(--font-arabic-display), Caveat, cursive;
--font-label: var(--font-label), var(--font-arabic), Kalam, cursive;
--font-mono: var(--font-mono), Special Elite, monospace;
--spacing-craft-section: 120px;
--spacing-craft-section-mobile: 64px;
--spacing-craft-gutter: 32px;
--animate-fade-in: fade-in 0.4s ease-out both;
--animate-rise-in: rise-in 0.6s ease-out both;
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
}
/*
The default border color has changed to `currentcolor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}
}
/* ============================================================
Craft Utility Classes
============================================================ */
@utility paper-texture {
/* ---- Paper texture overlay (SVG noise filter) ---- */
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}
@utility paper-texture-dark {
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}
@utility torn-edge {
/* ---- Torn paper edge (SVG mask) ---- */
/* Two mask layers: a solid layer covering everything above the tear +
the 20px tear strip at the bottom. A single bottom-positioned no-repeat
mask (domainio's original) hides the REST of the element — only the
20px strip survives, which made the whole waitlist section invisible. */
mask-image:
linear-gradient(#000, #000),
url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 20' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0,20 L0,0 C10,5 20,15 30,5 C40,15 50,0 60,10 C70,15 80,0 90,5 C100,10 110,0 120,5 C130,15 140,5 150,15 C160,5 170,10 180,0 C190,15 200,5 210,10 C220,5 230,15 240,0 C250,10 260,5 270,15 C280,0 290,10 300,5 C310,15 320,0 330,10 C340,5 350,15 360,0 C370,10 380,5 390,15 C400,0 410,10 420,5 C430,15 440,0 450,10 C460,5 470,15 480,0 C490,10 500,5 510,15 C520,0 530,10 540,5 C550,15 560,0 570,10 C580,5 590,15 600,0 C610,10 620,5 630,15 C640,0 650,10 660,5 C670,15 680,0 690,10 C700,5 710,15 720,0 C730,10 740,5 750,15 C760,0 770,10 780,5 C790,15 800,0 810,10 C820,5 830,15 840,0 C850,10 860,5 870,15 C880,0 890,10 900,5 C910,15 920,0 930,10 C940,5 950,15 960,0 C970,10 980,5 990,15 C1000,0 L1000,20 Z' fill='black'/%3E%3C/svg%3E");
mask-size:
100% calc(100% - 20px),
100% 20px;
mask-repeat: no-repeat, no-repeat;
mask-position: top, bottom;
padding-bottom: 20px;
}
@utility scribble-underline {
/* ---- Scribble underline (hand-drawn wavy line SVG) ---- */
background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 15C15 15 25 5 40 8C55 11 65 18 80 15C90 13 95 8 98 10' stroke='%237C8450' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 15px;
background-position: bottom;
padding-bottom: 10px;
}
@utility scribble-underline-terracotta {
background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 15C15 15 25 5 40 8C55 11 65 18 80 15C90 13 95 8 98 10' stroke='%23A84B2F' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 100% 15px;
background-position: bottom;
padding-bottom: 10px;
}
@utility hand-drawn-border {
/* ---- Hand-drawn / organic border (irregular radius) ---- */
border: 2px solid hsl(var(--border));
border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}
@utility deckled-edge {
/* ---- Deckled edge (subtly irregular clip-path) ---- */
clip-path: polygon(
0% 2%,
2% 0%,
98% 1%,
100% 3%,
99% 97%,
97% 100%,
3% 99%,
0% 98%,
1% 50%
);
}
@utility masking-tape {
/* ---- Masking-tape section label ---- */
clip-path: polygon(2% 8%, 98% 0%, 100% 88%, 1% 100%);
background: hsl(var(--muted) / 0.8);
transform: rotate(-1.5deg);
}
@utility stamp {
/* ---- Rubber stamp badge ---- */
border: 2px solid currentColor;
border-radius: 4px;
transform: rotate(-3deg);
letter-spacing: 0.12em;
text-transform: uppercase;
opacity: 0.85;
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='black'/%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
@utility btn-artisanal {
/* ---- Artisanal button (physical offset shadow + hover lift) ---- */
transition: all 0.2s ease;
box-shadow: 3px 3px 0 hsl(var(--muted));
&:hover {
transform: translate(-2px, -2px);
box-shadow: 5px 5px 0 hsl(var(--border));
}
&:active {
transform: translate(1px, 1px);
box-shadow: 1px 1px 0 hsl(var(--border));
}
}
@utility ruled-lines {
/* ---- Ruled-paper lines (notebook lines) ---- */
background-image: repeating-linear-gradient(
transparent,
transparent 31px,
hsl(var(--muted) / 0.2) 31px,
hsl(var(--muted) / 0.2) 32px
);
background-attachment: local;
}
@utility menu-leaders {
/* ---- Dotted menu leaders (item ..... price) ---- */
display: flex;
align-items: baseline;
gap: 0.5rem;
&::before {
content: '';
order: 2;
flex: 1;
border-bottom: 2px dotted hsl(var(--muted-foreground) / 0.5);
margin-bottom: 0.3em;
min-width: 2rem;
}
& > :first-child {
order: 1;
}
& > :last-child {
order: 3;
}
}
@utility craft-glow {
/* ---- Luminous glow (dark mode — watercolour elements) ---- */
filter: drop-shadow(0 0 20px hsl(var(--craft-terracotta) / 0.15));
}
@utility btn-primary {
/* ---- Primary button — flat terracotta, letterpress feel ---- */
@apply bg-craft-terracotta-light text-craft-cream-light dark:bg-craft-terracotta-dark dark:text-craft-cream-dark
px-6 py-3 rounded-craft font-bold
shadow-[3px_3px_0_hsl(var(--muted))]
hover:shadow-[5px_5px_0_hsl(var(--border))]
hover:-translate-x-0.5 hover:-translate-y-0.5
active:translate-x-0 active:translate-y-0
active:shadow-[1px_1px_0_hsl(var(--border))]
transition-all duration-200;
font-family: var(--font-display), 'Amatic SC', cursive;
font-size: 1.5rem;
letter-spacing: 0.02em;
}
@utility btn-secondary {
/* ---- Secondary button — outlined, neutral ---- */
@apply bg-transparent text-foreground px-6 py-3 rounded-craft font-medium
border-2 border-[hsl(var(--border))]
hover:border-craft-terracotta-light dark:hover:border-craft-terracotta-dark
hover:text-craft-terracotta-light dark:hover:text-craft-terracotta-dark
transition-all duration-200;
font-family: var(--font-label), 'Kalam', cursive;
}
@utility input-primary {
/* ---- Primary input — craft paper style ---- */
@apply w-full px-4 py-3 rounded-craft
border-2 border-[hsl(var(--border))]
bg-background
focus:border-craft-terracotta-light dark:focus:border-craft-terracotta-dark
focus:ring-2 focus:ring-craft-terracotta-light/20 dark:focus:ring-craft-terracotta-dark/20
outline-hidden transition-all duration-200;
font-family: var(--font-label), 'Kalam', cursive;
font-size: 1.125rem;
}
/* ============================================================
Sofra Design System — craft/handmade, food-warm (v1)
Colours named after kitchen & pantry things. Zero gradients.
Ported from domainio's Pastel/Handmade v2, re-flavoured:
coral→terracotta, sage→olive, lavender→saffron.
Dark mode is a different atmosphere (late-evening kitchen),
not an invert.
============================================================ */
@layer base {
:root {
/* Surfaces */
--background: 32 100% 97%; /* warm cream paper #FFF9F2 */
--foreground: 23 22% 19%; /* warm ink / roasted coffee #3B2E26 */
--card: 34 100% 99%; /* warm white plate #FFFCF8 */
--card-foreground: 23 22% 19%;
/* Primary: paprika / terracotta clay — #A84B2F.
5.4:1 on cream: WCAG AA both as text and as a button bg
under cream text (same treatment domainio gave #AE5038). */
--primary: 14 56% 42%;
--primary-foreground: 32 100% 97%;
/* Secondary: olive branch #7C8450 (surfaces/decoration).
For TEXT on cream use --craft-olive-text (#5A6139, 5.2:1). */
--secondary: 69 25% 42%;
--secondary-foreground: 32 100% 97%;
/* Muted: warm beige / kraft paper #EAE0D2 */
--muted: 35 39% 87%;
/* Ink-adjacent muted text — 6.5:1 on cream */
--muted-foreground: 24 10% 34%;
/* Accent: saffron threads #D9A441 — decorative/large text only;
small text uses --craft-saffron-text (#8A6D2B). */
--accent: 39 67% 55%;
--accent-foreground: 23 22% 19%;
/* Destructive: soft brick #CC5A50 (clearly pinker than primary) */
--destructive: 5 55% 56%;
--destructive-foreground: 32 100% 97%;
/* Borders & inputs */
--border: 35 39% 87%;
--input: 35 39% 87%;
--ring: 14 56% 42%;
/* Radius: tight — craft feel */
--radius: 0.125rem;
/* Craft semantic tokens */
--craft-terracotta: 14 56% 42%;
--craft-terracotta-foreground: 32 100% 97%;
--craft-olive: 69 25% 42%;
--craft-olive-foreground: 32 100% 97%;
--craft-olive-text: 71 26% 30%; /* #5A6139 */
--craft-saffron: 39 67% 55%;
--craft-saffron-foreground: 23 22% 19%;
--craft-saffron-text: 41 52% 35%; /* #8A6D2B */
--craft-success: 142 23% 64%; /* muted moss #8CB89A */
--craft-warning: 39 67% 55%;
--craft-error: 5 55% 56%;
}
.dark {
/* Surfaces — late-evening kitchen: deep warm aubergine, not cold black */
--background: 22 20% 11%; /* #211A16 */
--foreground: 34 45% 91%; /* warm cream #F2E9DD */
--card: 23 17% 15%; /* #2C241F */
--card-foreground: 34 45% 91%;
/* Primary: luminous apricot #F2B48C — 9.4:1 on the aubergine bg */
--primary: 24 80% 75%;
--primary-foreground: 22 20% 11%;
/* Secondary: pale olive #B5BC8A */
--secondary: 68 27% 64%;
--secondary-foreground: 22 20% 11%;
/* Muted: warm dark umber #3E3630 */
--muted: 26 13% 22%;
--muted-foreground: 33 18% 62%;
/* Accent: pale saffron #E8C87C */
--accent: 42 70% 70%;
--accent-foreground: 22 20% 11%;
/* Destructive: soft terracotta glow */
--destructive: 5 67% 73%;
--destructive-foreground: 22 20% 11%;
/* Borders & inputs */
--border: 26 13% 22%;
--input: 26 13% 22%;
--ring: 24 80% 75%;
/* Craft tokens — dark variants */
--craft-terracotta: 24 80% 75%;
--craft-terracotta-foreground: 22 20% 11%;
--craft-olive: 68 27% 64%;
--craft-olive-foreground: 22 20% 11%;
--craft-olive-text: 68 27% 64%;
--craft-saffron: 42 70% 70%;
--craft-saffron-foreground: 22 20% 11%;
--craft-saffron-text: 42 70% 70%;
--craft-success: 142 23% 64%;
--craft-warning: 42 70% 70%;
--craft-error: 5 67% 73%;
}
}
@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
/* ============================================================
Animations
============================================================ */
@keyframes float {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
}
.animate-float {
animation: float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.animate-float,
.animate-fade-in,
.animate-rise-in {
animation: none;
}
}
/* ============================================================
Global HTML
============================================================ */
html {
scroll-behavior: smooth;
}
/* Readability on large screens: the craft layout leaves generous whitespace,
so scale the rem base up with the viewport instead of leaving 16px body
text floating in it. All Tailwind text-* sizes are rem-based and follow. */
@media (min-width: 1024px) {
html {
font-size: 17px;
}
}
@media (min-width: 1536px) {
html {
font-size: 18.5px;
}
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: hsl(var(--muted));
}
::-webkit-scrollbar-thumb {
background: hsl(var(--muted-foreground) / 0.4);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: hsl(var(--muted-foreground) / 0.6);
}