Open History to see the last commit
1@import "tailwindcss";
2@import "tw-animate-css";
3@import "@fontsource-variable/inter";
4
5@custom-variant dark (&:is(.dark *));
6
7/* The shadcn "nova" components use state variants; map them to Radix's data-state attributes. */
8@custom-variant data-open (&:is([data-state="open"], [data-open]:not([data-open="false"])));
9@custom-variant data-closed (&:is([data-state="closed"], [data-closed]:not([data-closed="false"])));
10@custom-variant data-checked (&:is([data-state="checked"], [data-checked]:not([data-checked="false"])));
11@custom-variant data-unchecked (&:is([data-state="unchecked"], [data-unchecked]:not([data-unchecked="false"])));
12@custom-variant data-horizontal (&:is([data-orientation="horizontal"]));
13@custom-variant data-vertical (&:is([data-orientation="vertical"]));
14
15/* -------------------------------------------------------------------------- */
16/* shadcn/ui tokens */
17/* -------------------------------------------------------------------------- */
18
19:root {
20 --radius: 0.625rem;
21 --background: oklch(1 0 0);
22 --foreground: oklch(0.145 0 0);
23 --card: oklch(1 0 0);
24 --card-foreground: oklch(0.145 0 0);
25 --popover: oklch(1 0 0);
26 --popover-foreground: oklch(0.145 0 0);
27 --primary: oklch(0.205 0 0);
28 --primary-foreground: oklch(0.985 0 0);
29 --secondary: oklch(0.97 0 0);
30 --secondary-foreground: oklch(0.205 0 0);
31 --muted: oklch(0.97 0 0);
32 --muted-foreground: oklch(0.556 0 0);
33 --accent: oklch(0.97 0 0);
34 --accent-foreground: oklch(0.205 0 0);
35 --destructive: oklch(0.577 0.245 27.325);
36 --border: oklch(0.922 0 0);
37 --input: oklch(0.922 0 0);
38 --ring: oklch(0.708 0 0);
39
40 /* Guide accent (TanStack DB orange) */
41 --guide-accent: oklch(0.7 0.18 50);
42 --guide-accent-soft: oklch(0.97 0.03 60);
43
44 /* Fake browser chrome */
45 --browser-frame: #e8e8ea;
46 --browser-toolbar: #f7f7f8;
47 --browser-tab: #ffffff;
48 --browser-field: #ececee;
49
50 /* Apple Notes — macOS (sampled from reference screenshots) */
51 --mac-sidebar: #ededed;
52 --mac-content: #ffffff;
53 --mac-toolbar: #f6f6f6;
54 --mac-text: #1d1d1f;
55 --mac-text-secondary: #8a8a8e;
56 --mac-folder-selected: #d7d7d7;
57 --mac-row-selected: #ffe491;
58 --mac-separator: #e5e5e5;
59 --mac-column-border: #e6e6e6;
60 --mac-control: #fafafa;
61 --mac-control-border: #e3e3e3;
62 --mac-icon: #6e6e73;
63 /* Menus: frosted glass, as in the macOS 26 reference */
64 --mac-menu: rgb(246 246 246 / 0.82);
65 --mac-menu-separator: rgb(0 0 0 / 0.1);
66 --mac-menu-hover: rgb(0 0 0 / 0.07);
67
68 /* Apple Notes — iOS 26 */
69 --ios-bg: #f2f2f7;
70 --ios-card: #ffffff;
71 --ios-plain: #ffffff;
72 --ios-text: #000000;
73 --ios-secondary: #8e8e93;
74 --ios-separator: #c6c6c8;
75 --ios-glass: rgb(255 255 255 / 0.72);
76 --ios-glass-border: rgb(0 0 0 / 0.06);
77
78 /* Shared Notes accent */
79 --notes-accent: #e5b400;
80 --notes-quick: #f2c94c;
81 --notes-shared: #5ac8fa;
82}
83
84.dark {
85 --background: oklch(0.17 0 0);
86 --foreground: oklch(0.985 0 0);
87 --card: oklch(0.205 0 0);
88 --card-foreground: oklch(0.985 0 0);
89 --popover: oklch(0.205 0 0);
90 --popover-foreground: oklch(0.985 0 0);
91 --primary: oklch(0.922 0 0);
92 --primary-foreground: oklch(0.205 0 0);
93 --secondary: oklch(0.269 0 0);
94 --secondary-foreground: oklch(0.985 0 0);
95 --muted: oklch(0.269 0 0);
96 --muted-foreground: oklch(0.708 0 0);
97 --accent: oklch(0.269 0 0);
98 --accent-foreground: oklch(0.985 0 0);
99 --destructive: oklch(0.704 0.191 22.216);
100 --border: oklch(1 0 0 / 10%);
101 --input: oklch(1 0 0 / 15%);
102 --ring: oklch(0.556 0 0);
103
104 --guide-accent: oklch(0.75 0.17 55);
105 --guide-accent-soft: oklch(0.26 0.04 55);
106
107 --browser-frame: #1a1a1c;
108 --browser-toolbar: #2a2a2c;
109 --browser-tab: #2a2a2c;
110 --browser-field: #1e1e20;
111
112 --mac-sidebar: #242424;
113 --mac-content: #1e1e1e;
114 --mac-toolbar: #2b2b2b;
115 --mac-text: #e8e8e8;
116 --mac-text-secondary: #9a9a9a;
117 --mac-folder-selected: #393939;
118 --mac-row-selected: #9a7f26;
119 --mac-separator: #333333;
120 --mac-column-border: #2f2f2f;
121 --mac-control: #2b2b2b;
122 --mac-control-border: #383838;
123 --mac-icon: #a8a8ad;
124 --mac-menu: rgb(40 40 40 / 0.82);
125 --mac-menu-separator: rgb(255 255 255 / 0.1);
126 --mac-menu-hover: rgb(255 255 255 / 0.1);
127
128 --ios-bg: #000000;
129 --ios-card: #1c1c1e;
130 --ios-plain: #000000;
131 --ios-text: #ffffff;
132 --ios-secondary: #8e8e93;
133 --ios-separator: #38383a;
134 --ios-glass: rgb(40 40 42 / 0.72);
135 --ios-glass-border: rgb(255 255 255 / 0.08);
136
137 --notes-accent: #e6b32e;
138}
139
140@theme inline {
141 --font-sans:
142 "Inter Variable", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
143 --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
144
145 --radius-sm: calc(var(--radius) - 4px);
146 --radius-md: calc(var(--radius) - 2px);
147 --radius-lg: var(--radius);
148 --radius-xl: calc(var(--radius) + 4px);
149
150 --color-background: var(--background);
151 --color-foreground: var(--foreground);
152 --color-card: var(--card);
153 --color-card-foreground: var(--card-foreground);
154 --color-popover: var(--popover);
155 --color-popover-foreground: var(--popover-foreground);
156 --color-primary: var(--primary);
157 --color-primary-foreground: var(--primary-foreground);
158 --color-secondary: var(--secondary);
159 --color-secondary-foreground: var(--secondary-foreground);
160 --color-muted: var(--muted);
161 --color-muted-foreground: var(--muted-foreground);
162 --color-accent: var(--accent);
163 --color-accent-foreground: var(--accent-foreground);
164 --color-destructive: var(--destructive);
165 --color-border: var(--border);
166 --color-input: var(--input);
167 --color-ring: var(--ring);
168
169 --color-guide-accent: var(--guide-accent);
170 --color-guide-accent-soft: var(--guide-accent-soft);
171
172 --color-browser-frame: var(--browser-frame);
173 --color-browser-toolbar: var(--browser-toolbar);
174 --color-browser-tab: var(--browser-tab);
175 --color-browser-field: var(--browser-field);
176
177 --color-mac-sidebar: var(--mac-sidebar);
178 --color-mac-content: var(--mac-content);
179 --color-mac-toolbar: var(--mac-toolbar);
180 --color-mac-text: var(--mac-text);
181 --color-mac-text-secondary: var(--mac-text-secondary);
182 --color-mac-folder-selected: var(--mac-folder-selected);
183 --color-mac-row-selected: var(--mac-row-selected);
184 --color-mac-separator: var(--mac-separator);
185 --color-mac-column-border: var(--mac-column-border);
186 --color-mac-control: var(--mac-control);
187 --color-mac-control-border: var(--mac-control-border);
188 --color-mac-icon: var(--mac-icon);
189
190 --color-ios-bg: var(--ios-bg);
191 --color-ios-card: var(--ios-card);
192 --color-ios-plain: var(--ios-plain);
193 --color-ios-text: var(--ios-text);
194 --color-ios-secondary: var(--ios-secondary);
195 --color-ios-separator: var(--ios-separator);
196 --color-ios-glass: var(--ios-glass);
197 --color-ios-glass-border: var(--ios-glass-border);
198
199 --color-notes-accent: var(--notes-accent);
200 --color-notes-quick: var(--notes-quick);
201 --color-notes-shared: var(--notes-shared);
202}
203
204@layer base {
205 * {
206 @apply border-border outline-ring/50;
207 }
208
209 html,
210 body {
211 height: 100%;
212 }
213
214 body {
215 @apply bg-background font-sans text-foreground antialiased;
216 margin: 0;
217 }
218}
219
220/* -------------------------------------------------------------------------- */
221/* Code highlighting (sugar-high) */
222/* -------------------------------------------------------------------------- */
223
224:root {
225 --sh-class: #8250df;
226 --sh-identifier: #24292f;
227 --sh-sign: #57606a;
228 --sh-property: #0550ae;
229 --sh-entity: #8250df;
230 --sh-jsxliterals: #24292f;
231 --sh-string: #0a3069;
232 --sh-keyword: #cf222e;
233 --sh-comment: #6e7781;
234}
235
236.dark {
237 --sh-class: #d2a8ff;
238 --sh-identifier: #e6edf3;
239 --sh-sign: #8b949e;
240 --sh-property: #79c0ff;
241 --sh-entity: #d2a8ff;
242 --sh-jsxliterals: #e6edf3;
243 --sh-string: #a5d6ff;
244 --sh-keyword: #ff7b72;
245 --sh-comment: #8b949e;
246}
247
248/* -------------------------------------------------------------------------- */
249/* Bottom sheet (the app on small screens) */
250/* -------------------------------------------------------------------------- */
251
252:root {
253 /* Open: ~450ms with a hint of overshoot, like a spring settling. Close: a bit faster. */
254 --sheet-open-duration: 450ms;
255 --sheet-open-easing: cubic-bezier(0.22, 1.15, 0.36, 1);
256 --sheet-close-duration: 320ms;
257 --sheet-close-easing: cubic-bezier(0.32, 0.72, 0, 1);
258 --sheet-fade-duration: 200ms;
259}
260
261@layer components {
262 .bottom-sheet {
263 transform: translate3d(0, calc(100% + 2rem), 0);
264 visibility: hidden;
265 transition:
266 transform var(--sheet-close-duration) var(--sheet-close-easing),
267 visibility 0s linear var(--sheet-close-duration);
268 }
269 .bottom-sheet[data-state="open"] {
270 transform: none;
271 visibility: visible;
272 transition:
273 transform var(--sheet-open-duration) var(--sheet-open-easing),
274 visibility 0s;
275 }
276
277 .bottom-sheet-backdrop {
278 opacity: 0;
279 pointer-events: none;
280 transition: opacity var(--sheet-close-duration) ease-out;
281 }
282 .bottom-sheet-backdrop[data-state="open"] {
283 opacity: 1;
284 pointer-events: auto;
285 transition-duration: var(--sheet-open-duration);
286 }
287
288 /* Reduced motion: fade in place instead of sliding. */
289 @media (prefers-reduced-motion: reduce) {
290 .bottom-sheet,
291 .bottom-sheet[data-state="open"] {
292 transform: none;
293 }
294 .bottom-sheet {
295 opacity: 0;
296 transition:
297 opacity var(--sheet-fade-duration) ease-out,
298 visibility 0s linear var(--sheet-fade-duration);
299 }
300 .bottom-sheet[data-state="open"] {
301 opacity: 1;
302 transition:
303 opacity var(--sheet-fade-duration) ease-out,
304 visibility 0s;
305 }
306 .bottom-sheet-backdrop,
307 .bottom-sheet-backdrop[data-state="open"] {
308 transition-duration: var(--sheet-fade-duration);
309 }
310 }
311}
312
313/* -------------------------------------------------------------------------- */
314/* Guide code blocks on small screens */
315/* -------------------------------------------------------------------------- */
316
317/*
318 * In the small-screen guide ([data-wrap-code]) long lines soft-wrap instead of
319 * scrolling sideways, and each continuation hangs two characters past its
320 * line's own indentation (`--indent`, set per line by `withLineIndents`).
321 * Unlayered on purpose, so it overrides the block's utility classes.
322 */
323/* No hover on phones: keep the Copy button visible. */
324[data-wrap-code] .code-block-copy {
325 opacity: 1;
326}
327[data-wrap-code] .code-block-pre {
328 padding-inline: 0.875rem;
329 font-size: 12px;
330}
331[data-wrap-code] .code-block-pre code {
332 display: block;
333 /* The newlines between line blocks are just markup now. */
334 white-space: normal;
335}
336[data-wrap-code] .code-block-pre .sh__line {
337 --hang: calc(var(--indent, 0ch) + 2ch);
338 display: block;
339 min-height: 1lh;
340 padding-left: var(--hang);
341 text-indent: calc(-1 * var(--hang));
342 white-space: pre-wrap;
343 overflow-wrap: anywhere;
344}
345
346/* Apple-style hairline scrollbars inside the fake app */
347.notes-scroll {
348 scrollbar-width: thin;
349 scrollbar-color: color-mix(in srgb, currentColor 22%, transparent) transparent;
350}
351
352/* -------------------------------------------------------------------------- */
353/* Guide typography */
354/* -------------------------------------------------------------------------- */
355
356@layer components {
357 .guide-prose {
358 @apply text-[15px] leading-7 text-foreground/85;
359 }
360 .guide-prose > p + p {
361 @apply mt-3;
362 }
363 .guide-prose h3 {
364 @apply mt-6 mb-2 text-base font-semibold text-foreground;
365 }
366 .guide-prose ul {
367 @apply my-3 list-disc space-y-1 pl-5 marker:text-muted-foreground;
368 }
369 .guide-prose ol {
370 @apply my-3 list-decimal space-y-1 pl-5 marker:text-muted-foreground;
371 }
372 .guide-prose :not(pre) > code {
373 @apply rounded-md bg-muted px-1.5 py-0.5 font-mono text-[0.85em] text-foreground;
374 }
375 .guide-prose a {
376 @apply font-medium text-foreground underline decoration-guide-accent/60 underline-offset-4 hover:decoration-guide-accent;
377 }
378 .guide-prose strong {
379 @apply font-semibold text-foreground;
380 }
381}
382
383/* -------------------------------------------------------------------------- */
384/* Spotlight (the guide pointing at part of the app) */
385/* -------------------------------------------------------------------------- */
386
387@layer components {
388 /* A ring around the target; its huge spread dims everything else. */
389 .spotlight-ring {
390 box-shadow:
391 0 0 0 3px var(--guide-accent),
392 0 0 0 9999px rgb(0 0 0 / 0.3);
393 }
394 .dark .spotlight-ring {
395 box-shadow:
396 0 0 0 3px var(--guide-accent),
397 0 0 0 9999px rgb(0 0 0 / 0.55);
398 }
399
400 /* Motion only when the reader is fine with it: fade in, then pulse three times. */
401 @media (prefers-reduced-motion: no-preference) {
402 .spotlight-ring {
403 animation: spotlight-in 220ms ease-out;
404 }
405 .spotlight-ring::after {
406 content: "";
407 position: absolute;
408 inset: -3px;
409 border-radius: inherit;
410 border: 3px solid var(--guide-accent);
411 animation: spotlight-pulse 1.2s ease-out 220ms 3 both;
412 }
413 .spotlight-label {
414 animation: spotlight-in 220ms ease-out;
415 }
416 }
417}
418
419@keyframes spotlight-in {
420 from {
421 opacity: 0;
422 }
423}
424
425@keyframes spotlight-pulse {
426 from {
427 opacity: 0.9;
428 transform: scale(1);
429 }
430 to {
431 opacity: 0;
432 transform: scale(1.04);
433 }
434}
435
436/* -------------------------------------------------------------------------- */
437/* Charts (TanStack Charts inherits `color`; bars use its palette tokens) */
438/* -------------------------------------------------------------------------- */
439
440.analytics-chart {
441 /* A darker Notes yellow in light mode, so bars keep 3:1 contrast on white. */
442 --ts-chart-1: #b58900;
443}
444.dark .analytics-chart {
445 --ts-chart-1: var(--notes-accent);
446}