Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
246 lines (227 loc) · 7.69 KB
/
Copy pathindex.css
File metadata and controls
246 lines (227 loc) · 7.69 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
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "@fontsource-variable/inter";
/* Inter Variable is the bundled default. To use your own brand font, add an
@font-face here and set FONT_FAMILY in src/engine/textMeasure.ts. */
@custom-variant dark (&:is(.dark *));
:root {
/* Brand tokens — Neutrals (see src/brand/palette.ts) */
--charcoal: #100f0f;
--cloud: #f8f8f3;
--paper: #f2f2eb;
--stone: #ebe9e1;
/* Brand tokens — Brand */
--brand-dark: #3e4576;
--brand-primary: #0017c7;
--brand-accent: #d0e6e8;
/* Brand tokens — Accent CTA scale */
--ember-500: #F56139;
/* Semantic mapping */
--background: #f8f8f3;
--foreground: #100f0f;
--card: #f2f2eb;
--card-foreground: #100f0f;
--popover: #f2f2eb;
--popover-foreground: #100f0f;
--primary: #0017c7;
--primary-foreground: #ffffff;
--secondary: #ebe9e1;
--secondary-foreground: #100f0f;
--muted: #ebe9e1;
--muted-foreground: rgba(16, 15, 15, 0.6);
--accent: #d0e6e8;
--accent-foreground: #100f0f;
--destructive: #ef3737;
--border: #ebe9e1;
--input: #ebe9e1;
--ring: #0017c7;
/* Radius */
--radius: 5px;
/* Shadow (single permitted shadow) */
--shadow-subtle: 0 1px 2px 0 rgba(17, 17, 17, 0.05);
/* Sidebar */
--sidebar: #f2f2eb;
--sidebar-foreground: #100f0f;
--sidebar-primary: #0017c7;
--sidebar-primary-foreground: #ffffff;
--sidebar-accent: #d0e6e8;
--sidebar-accent-foreground: #100f0f;
--sidebar-border: #ebe9e1;
--sidebar-ring: #0017c7;
/* Charts (brand-derived) */
--chart-1: #0017c7;
--chart-2: #F56139;
--chart-3: #3e4576;
--chart-4: #d0e6e8;
--chart-5: #80a1a6;
color-scheme: light;
}
@theme inline {
/* UI chrome renders in the platform system font first — SF Pro on Apple
devices (-apple-system must lead), Segoe on Windows — then falls back to the
bundled Inter. Canvas/design text stays Inter via engine/textMeasure.ts so
exports are identical across devices. */
--font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
}
@layer base {
* {
@apply border-border outline-ring/50;
/* No grey flash on tap (native-web tell #4). */
-webkit-tap-highlight-color: transparent;
}
body {
@apply bg-background text-foreground font-sans;
overflow: hidden;
height: 100dvh;
font-optical-sizing: auto;
/* Crisper type on macOS (make-interfaces #8) */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
/* Avoid orphans in body copy (make-interfaces #10) */
text-wrap: pretty;
/* Kill the ~300ms tap delay and the long-press share callout (native-web §7). */
touch-action: manipulation;
-webkit-touch-callout: none;
}
html {
@apply font-sans;
}
#root {
height: 100dvh;
/* Dark backdrop revealed when a sheet scales the app back (iOS depth). */
background-color: #000;
}
/* Balanced headings — no lonely last word (make-interfaces #10) */
h1, h2, h3, h4 {
text-wrap: balance;
}
/* Chrome is UI — never selectable. Content stays selectable. (native-web §7) */
button, [role="button"], nav, header, label, .no-select {
-webkit-user-select: none;
user-select: none;
}
/* Inputs must be ≥16px or iOS zooms the viewport on focus (native-web §7). */
input, textarea, select {
font-size: max(16px, 1em);
}
/* In an installed PWA, stop the whole-page rubber-band / pull-to-refresh. */
@media (display-mode: standalone) {
html, body { overscroll-behavior: none; }
}
}
/* Respect the user's motion preference everywhere (emil principle #4).
Single global guard so individual components don't each have to opt in. */
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Subtle 1px outline on DOM images for consistent edge depth (make-interfaces #11).
Pure black at low opacity — never a tinted neutral that reads as dirt. */
img:not([data-no-outline]) {
outline: 1px solid rgba(0, 0, 0, 0.1);
outline-offset: -1px;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--stone);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #c2bcae;
}
/* Hide the scrollbar while preserving scrollability (used on the sidebar panels). */
.no-scrollbar {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* legacy Edge/IE */
}
.no-scrollbar::-webkit-scrollbar {
display: none; /* Chromium/Safari */
}
/* Canvas checkerboard (transparency indicator) */
.canvas-checkerboard {
background-image:
linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
/* Mobile property sheet: the desktop inspector packs many small controls, so
on touch we floor every control to a comfortable tap target (make-interfaces
§16, ≥40px) and bump control/label text for legibility. Scoped to the sheet
so desktop density is untouched. */
@media (max-width: 767px) {
.mobile-inspector select,
.mobile-inspector input,
.mobile-inspector textarea {
min-height: 44px;
/* Must be ≥16px, or iOS zooms the viewport when the field focuses. */
font-size: 16px;
}
.mobile-inspector button {
min-height: 40px;
min-width: 40px;
}
/* Segmented / pill button labels read too small at 11–12px on a phone. */
.mobile-inspector button {
font-size: 14px;
}
/* A touch more breathing room between control groups. */
.mobile-inspector > * + * {
margin-top: 0.25rem;
}
}