@open-slide/core 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-Dx-qTg82.js → build-BsaslS8C.js} +1 -1
- package/dist/cli/bin.js +3 -3
- package/dist/{config-DvRA48y9.js → config-BOc3-oDV.js} +1 -1
- package/dist/{dev-BGXWqVUZ.js → dev-BU7OY0ai.js} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{preview-CdQnIB39.js → preview-DbL7Wt77.js} +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +2 -2
- package/src/app/components/asset-view.tsx +29 -10
- package/src/app/components/inspector/image-crop-dialog.tsx +3 -3
- package/src/app/components/inspector/inspect-overlay.tsx +44 -32
- package/src/app/components/inspector/inspector-panel.tsx +31 -26
- package/src/app/components/language-toggle.tsx +1 -1
- package/src/app/components/overview-grid.tsx +14 -12
- package/src/app/components/present/control-bar.tsx +24 -21
- package/src/app/components/present/progress-bar.tsx +1 -1
- package/src/app/components/sidebar/folder-item.tsx +26 -22
- package/src/app/components/sidebar/icon-picker.tsx +8 -8
- package/src/app/components/sidebar/sidebar-footer.tsx +2 -2
- package/src/app/components/sidebar/sidebar.tsx +22 -18
- package/src/app/components/style-panel/style-panel.tsx +8 -4
- package/src/app/components/theme-toggle.tsx +3 -3
- package/src/app/components/themes/theme-detail.tsx +2 -2
- package/src/app/components/themes/themes-gallery.tsx +1 -1
- package/src/app/components/thumbnail-rail.tsx +67 -63
- package/src/app/components/ui/badge.tsx +16 -13
- package/src/app/components/ui/button.tsx +4 -10
- package/src/app/components/ui/context-menu.tsx +46 -36
- package/src/app/components/ui/dialog.tsx +11 -13
- package/src/app/components/ui/dropdown-menu.tsx +59 -37
- package/src/app/components/ui/label.tsx +2 -5
- package/src/app/components/ui/popover.tsx +25 -18
- package/src/app/components/ui/progress.tsx +8 -6
- package/src/app/components/ui/scroll-area.tsx +5 -5
- package/src/app/components/ui/select.tsx +40 -41
- package/src/app/components/ui/separator.tsx +3 -5
- package/src/app/components/ui/slider.tsx +25 -18
- package/src/app/components/ui/tabs.tsx +8 -8
- package/src/app/components/ui/toggle-group.tsx +8 -7
- package/src/app/components/ui/toggle.tsx +5 -5
- package/src/app/components/ui/tooltip.tsx +39 -22
- package/src/app/routes/home-shell.tsx +24 -20
- package/src/app/routes/home.tsx +48 -42
- package/src/app/routes/presenter.tsx +1 -1
- package/src/app/routes/slide.tsx +54 -47
- package/src/app/styles.css +86 -110
package/src/app/routes/home.tsx
CHANGED
|
@@ -143,18 +143,20 @@ export function Home() {
|
|
|
143
143
|
{title}
|
|
144
144
|
</h1>
|
|
145
145
|
<DropdownMenu>
|
|
146
|
-
<DropdownMenuTrigger
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
146
|
+
<DropdownMenuTrigger
|
|
147
|
+
render={
|
|
148
|
+
<button
|
|
149
|
+
type="button"
|
|
150
|
+
aria-label={t.home.folders}
|
|
151
|
+
className="flex size-7 items-center justify-center rounded-[6px] border border-border bg-card text-muted-foreground hover:text-foreground aria-expanded:border-foreground/40 aria-expanded:text-foreground md:hidden"
|
|
152
|
+
>
|
|
153
|
+
<ChevronDown className="size-4" />
|
|
154
|
+
</button>
|
|
155
|
+
}
|
|
156
|
+
/>
|
|
155
157
|
<DropdownMenuContent align="start" className="min-w-[200px]">
|
|
156
158
|
<DropdownMenuItem
|
|
157
|
-
|
|
159
|
+
onClick={() => selectFolder(ALL_SLIDES_ID)}
|
|
158
160
|
className={cn(isAll && 'bg-muted text-foreground')}
|
|
159
161
|
>
|
|
160
162
|
<FolderIconChip icon={{ type: 'emoji', value: '🎞️' }} />
|
|
@@ -162,7 +164,7 @@ export function Home() {
|
|
|
162
164
|
<span className="folio">{slideIds.length.toString().padStart(2, '0')}</span>
|
|
163
165
|
</DropdownMenuItem>
|
|
164
166
|
<DropdownMenuItem
|
|
165
|
-
|
|
167
|
+
onClick={() => selectFolder(DRAFT_ID)}
|
|
166
168
|
className={cn(isDraft && 'bg-muted text-foreground')}
|
|
167
169
|
>
|
|
168
170
|
<FolderIconChip icon={{ type: 'emoji', value: '📝' }} />
|
|
@@ -172,7 +174,7 @@ export function Home() {
|
|
|
172
174
|
{manifest.folders.map((f) => (
|
|
173
175
|
<DropdownMenuItem
|
|
174
176
|
key={f.id}
|
|
175
|
-
|
|
177
|
+
onClick={() => selectFolder(f.id)}
|
|
176
178
|
className={cn(selectedId === f.id && 'bg-muted text-foreground')}
|
|
177
179
|
>
|
|
178
180
|
<FolderIconChip icon={f.icon} />
|
|
@@ -289,24 +291,26 @@ function SortControl({ value, onChange }: { value: SortKey; onChange: (next: Sor
|
|
|
289
291
|
);
|
|
290
292
|
return (
|
|
291
293
|
<DropdownMenu>
|
|
292
|
-
<DropdownMenuTrigger
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
294
|
+
<DropdownMenuTrigger
|
|
295
|
+
render={
|
|
296
|
+
<button
|
|
297
|
+
type="button"
|
|
298
|
+
aria-label={`${t.home.sortLabel}: ${labels[value]}`}
|
|
299
|
+
className="flex h-8 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-[6px] border border-border bg-background pl-2 pr-1.5 text-[12.5px] font-medium text-foreground outline-none hover:bg-muted focus-visible:border-foreground/40 focus-visible:ring-2 focus-visible:ring-ring/30"
|
|
300
|
+
>
|
|
301
|
+
<FieldIcon k={value} className="size-3.5 text-muted-foreground" />
|
|
302
|
+
<span>{labels[value]}</span>
|
|
303
|
+
<ChevronDown className="size-3 text-muted-foreground" aria-hidden />
|
|
304
|
+
</button>
|
|
305
|
+
}
|
|
306
|
+
/>
|
|
303
307
|
<DropdownMenuContent align="end" className="min-w-[180px]">
|
|
304
308
|
{SORT_KEYS.map((key) => {
|
|
305
309
|
const active = value === key;
|
|
306
310
|
return (
|
|
307
311
|
<DropdownMenuItem
|
|
308
312
|
key={key}
|
|
309
|
-
|
|
313
|
+
onClick={() => onChange(key)}
|
|
310
314
|
className={cn(active && 'bg-muted text-foreground')}
|
|
311
315
|
>
|
|
312
316
|
<FieldIcon k={key} className="size-3.5 text-muted-foreground" />
|
|
@@ -518,7 +522,7 @@ function SlideCard({
|
|
|
518
522
|
</SlideCanvas>
|
|
519
523
|
</div>
|
|
520
524
|
) : (
|
|
521
|
-
<div className="grid h-full w-full place-items-center text-[10px] tracking-[0.
|
|
525
|
+
<div className="grid h-full w-full place-items-center text-[10px] tracking-[0.08em] uppercase text-muted-foreground/60">
|
|
522
526
|
{tCard.common.loading}
|
|
523
527
|
</div>
|
|
524
528
|
)}
|
|
@@ -544,33 +548,35 @@ function SlideCard({
|
|
|
544
548
|
{import.meta.env.DEV && (
|
|
545
549
|
<div className="absolute right-2 top-2">
|
|
546
550
|
<DropdownMenu>
|
|
547
|
-
<DropdownMenuTrigger
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
e
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
551
|
+
<DropdownMenuTrigger
|
|
552
|
+
render={
|
|
553
|
+
<button
|
|
554
|
+
type="button"
|
|
555
|
+
onClick={(e) => {
|
|
556
|
+
e.stopPropagation();
|
|
557
|
+
e.preventDefault();
|
|
558
|
+
}}
|
|
559
|
+
className="flex size-7 items-center justify-center rounded-[5px] bg-card/90 text-foreground shadow-edge ring-1 ring-border opacity-0 backdrop-blur hover:bg-card group-hover:opacity-100 aria-expanded:opacity-100 motion-safe:transition-opacity"
|
|
560
|
+
aria-label={tCard.home.slideActions}
|
|
561
|
+
>
|
|
562
|
+
<MoreHorizontal className="size-3.5" />
|
|
563
|
+
</button>
|
|
564
|
+
}
|
|
565
|
+
/>
|
|
560
566
|
<DropdownMenuContent align="end" className="min-w-[160px]">
|
|
561
|
-
<DropdownMenuItem
|
|
567
|
+
<DropdownMenuItem onClick={() => setDialog('rename')}>
|
|
562
568
|
<Pencil />
|
|
563
569
|
{tCard.common.rename}
|
|
564
570
|
</DropdownMenuItem>
|
|
565
|
-
<DropdownMenuItem
|
|
571
|
+
<DropdownMenuItem onClick={() => onDuplicate()}>
|
|
566
572
|
<Copy />
|
|
567
573
|
{tCard.home.duplicate}
|
|
568
574
|
</DropdownMenuItem>
|
|
569
|
-
<DropdownMenuItem
|
|
575
|
+
<DropdownMenuItem onClick={() => setDialog('move')}>
|
|
570
576
|
<FolderInput />
|
|
571
577
|
{tCard.home.moveToFolder}
|
|
572
578
|
</DropdownMenuItem>
|
|
573
|
-
<DropdownMenuItem variant="destructive"
|
|
579
|
+
<DropdownMenuItem variant="destructive" onClick={() => setDialog('delete')}>
|
|
574
580
|
<Trash2 />
|
|
575
581
|
{tCard.common.delete}
|
|
576
582
|
</DropdownMenuItem>
|
|
@@ -187,7 +187,7 @@ export function Presenter() {
|
|
|
187
187
|
<div
|
|
188
188
|
aria-hidden
|
|
189
189
|
className={cn(
|
|
190
|
-
'pointer-events-none absolute inset-0 grid place-items-center text-[11px] tracking-[0.
|
|
190
|
+
'pointer-events-none absolute inset-0 grid place-items-center text-[11px] tracking-[0.08em] uppercase',
|
|
191
191
|
blackout === 'black' ? 'bg-black text-white/35' : 'bg-white text-black/35',
|
|
192
192
|
)}
|
|
193
193
|
>
|
package/src/app/routes/slide.tsx
CHANGED
|
@@ -497,35 +497,37 @@ export function Slide() {
|
|
|
497
497
|
|
|
498
498
|
const exportMenuItems = (
|
|
499
499
|
<>
|
|
500
|
-
<DropdownMenuItem disabled={exporting}
|
|
500
|
+
<DropdownMenuItem disabled={exporting} onClick={exportHtml}>
|
|
501
501
|
<FileCode2 />
|
|
502
502
|
{t.slide.exportAsHtml}
|
|
503
503
|
</DropdownMenuItem>
|
|
504
|
-
<DropdownMenuItem disabled={exporting}
|
|
504
|
+
<DropdownMenuItem disabled={exporting} onClick={exportPdf}>
|
|
505
505
|
<FileText />
|
|
506
506
|
{t.slide.exportAsPdf}
|
|
507
507
|
</DropdownMenuItem>
|
|
508
508
|
<DropdownMenuSeparator />
|
|
509
|
-
<DropdownMenuItem disabled={exporting}
|
|
509
|
+
<DropdownMenuItem disabled={exporting} onClick={exportImagePptx}>
|
|
510
510
|
<FileImage />
|
|
511
511
|
{t.slide.exportAsImagePptx}
|
|
512
512
|
</DropdownMenuItem>
|
|
513
|
-
<TooltipProvider
|
|
513
|
+
<TooltipProvider delay={200}>
|
|
514
514
|
<Tooltip>
|
|
515
|
-
<TooltipTrigger
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
<
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
515
|
+
<TooltipTrigger
|
|
516
|
+
render={
|
|
517
|
+
<div
|
|
518
|
+
aria-disabled
|
|
519
|
+
className="relative flex cursor-help items-center justify-between gap-2 rounded-[5px] px-2 py-1.5 text-[12.5px] opacity-45 select-none [&_svg]:size-3.5 [&_svg]:shrink-0 [&_svg]:opacity-80"
|
|
520
|
+
>
|
|
521
|
+
<span className="flex items-center gap-2">
|
|
522
|
+
<Presentation />
|
|
523
|
+
{t.slide.exportAsPptx}
|
|
524
|
+
</span>
|
|
525
|
+
<span className="rounded-[3px] bg-muted px-1.5 py-0.5 font-mono text-[9.5px] tracking-[0.04em] text-muted-foreground">
|
|
526
|
+
{t.slide.comingSoon}
|
|
527
|
+
</span>
|
|
528
|
+
</div>
|
|
529
|
+
}
|
|
530
|
+
/>
|
|
529
531
|
<TooltipContent
|
|
530
532
|
side="left"
|
|
531
533
|
className="w-max max-w-[min(520px,calc(100vw-2rem))] text-center leading-relaxed"
|
|
@@ -546,11 +548,14 @@ export function Slide() {
|
|
|
546
548
|
<header className="relative flex h-12 shrink-0 items-center gap-2 border-b border-hairline bg-sidebar/85 px-2 backdrop-blur-md md:px-3">
|
|
547
549
|
<div className="flex flex-1 items-center gap-1.5 md:flex-none md:gap-2">
|
|
548
550
|
{showSlideBrowser && (
|
|
549
|
-
<
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
551
|
+
<Link
|
|
552
|
+
to="/"
|
|
553
|
+
aria-label={t.slide.backToHome}
|
|
554
|
+
title={t.slide.home}
|
|
555
|
+
className={buttonVariants({ variant: 'ghost', size: 'icon-sm' })}
|
|
556
|
+
>
|
|
557
|
+
<ChevronLeft className="size-4" />
|
|
558
|
+
</Link>
|
|
554
559
|
)}
|
|
555
560
|
<span aria-hidden className="mx-0.5 hidden h-5 w-px bg-hairline md:block" />
|
|
556
561
|
{import.meta.env.DEV && (
|
|
@@ -656,7 +661,7 @@ export function Slide() {
|
|
|
656
661
|
)}
|
|
657
662
|
</DropdownMenuTrigger>
|
|
658
663
|
<DropdownMenuContent align="end" className="min-w-[200px]">
|
|
659
|
-
<DropdownMenuItem
|
|
664
|
+
<DropdownMenuItem onClick={copyLink}>
|
|
660
665
|
<Link2 />
|
|
661
666
|
{t.slide.copyLink}
|
|
662
667
|
</DropdownMenuItem>
|
|
@@ -697,18 +702,18 @@ export function Slide() {
|
|
|
697
702
|
<ChevronDown className="size-3.5" />
|
|
698
703
|
</DropdownMenuTrigger>
|
|
699
704
|
<DropdownMenuContent align="end" className="min-w-[200px]">
|
|
700
|
-
<DropdownMenuItem
|
|
705
|
+
<DropdownMenuItem onClick={() => setPlayMode('window')}>
|
|
701
706
|
<Play />
|
|
702
707
|
{t.slide.presentInWindow}
|
|
703
708
|
<DropdownMenuShortcut>↵</DropdownMenuShortcut>
|
|
704
709
|
</DropdownMenuItem>
|
|
705
|
-
<DropdownMenuItem
|
|
710
|
+
<DropdownMenuItem onClick={() => setPlayMode('fullscreen')}>
|
|
706
711
|
<Maximize />
|
|
707
712
|
{t.slide.presentFullscreen}
|
|
708
713
|
<DropdownMenuShortcut>F</DropdownMenuShortcut>
|
|
709
714
|
</DropdownMenuItem>
|
|
710
715
|
<DropdownMenuItem
|
|
711
|
-
|
|
716
|
+
onClick={() => {
|
|
712
717
|
if (slideId) openPresenterWindow(slideId);
|
|
713
718
|
setPlayMode('window');
|
|
714
719
|
}}
|
|
@@ -746,7 +751,7 @@ export function Slide() {
|
|
|
746
751
|
ref={slideViewportRef}
|
|
747
752
|
data-inspector-root
|
|
748
753
|
data-slide-id={slideId}
|
|
749
|
-
className="
|
|
754
|
+
className="relative min-h-0 min-w-0 flex-1 bg-canvas p-2 md:p-10"
|
|
750
755
|
>
|
|
751
756
|
<SlideViewportNavigation
|
|
752
757
|
targetRef={slideViewportRef}
|
|
@@ -942,26 +947,28 @@ function AgentConnectedBadge() {
|
|
|
942
947
|
const t = useLocale();
|
|
943
948
|
const connected = useAgentSocketConnected();
|
|
944
949
|
return (
|
|
945
|
-
<TooltipProvider
|
|
950
|
+
<TooltipProvider delay={200}>
|
|
946
951
|
<Tooltip>
|
|
947
|
-
<TooltipTrigger
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
952
|
+
<TooltipTrigger
|
|
953
|
+
render={
|
|
954
|
+
<button
|
|
955
|
+
type="button"
|
|
956
|
+
className="ml-1 flex shrink-0 cursor-help items-center gap-1.5 rounded-[3px] border border-hairline bg-card px-1.5 py-0.5 text-[10.5px] text-foreground/85 outline-none focus-visible:ring-2 focus-visible:ring-ring/30"
|
|
957
|
+
>
|
|
958
|
+
<span aria-hidden className="relative flex size-1.5 items-center justify-center">
|
|
959
|
+
{connected ? (
|
|
960
|
+
<>
|
|
961
|
+
<span className="absolute inline-flex size-full animate-ping rounded-full bg-emerald-500 opacity-60" />
|
|
962
|
+
<span className="relative inline-flex size-1.5 rounded-full bg-emerald-500" />
|
|
963
|
+
</>
|
|
964
|
+
) : (
|
|
965
|
+
<span className="relative inline-flex size-1.5 rounded-full bg-rose-500" />
|
|
966
|
+
)}
|
|
967
|
+
</span>
|
|
968
|
+
{connected ? t.slide.agentConnected : t.slide.agentDisconnected}
|
|
969
|
+
</button>
|
|
970
|
+
}
|
|
971
|
+
/>
|
|
965
972
|
<TooltipContent
|
|
966
973
|
side="bottom"
|
|
967
974
|
align="start"
|
package/src/app/styles.css
CHANGED
|
@@ -68,100 +68,101 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
:root {
|
|
71
|
-
/*
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
--
|
|
75
|
-
--
|
|
71
|
+
/* Pure neutral ramp — zero chroma, flat surfaces, hairline borders.
|
|
72
|
+
Near-white background with white cards floating on a slightly
|
|
73
|
+
recessed canvas. */
|
|
74
|
+
--background: oklch(0.99 0 0);
|
|
75
|
+
--foreground: oklch(0.145 0 0);
|
|
76
|
+
--canvas: oklch(0.975 0 0);
|
|
76
77
|
|
|
77
78
|
--card: oklch(1 0 0);
|
|
78
|
-
--card-foreground: oklch(0.
|
|
79
|
-
--popover: oklch(0
|
|
80
|
-
--popover-foreground: oklch(0.
|
|
81
|
-
|
|
82
|
-
--primary: oklch(0.
|
|
83
|
-
--primary-foreground: oklch(0.985 0
|
|
84
|
-
--secondary: oklch(0.96 0
|
|
85
|
-
--secondary-foreground: oklch(0.
|
|
86
|
-
--muted: oklch(0.955 0
|
|
87
|
-
--muted-foreground: oklch(0.
|
|
88
|
-
--accent: oklch(0.945 0
|
|
89
|
-
--accent-foreground: oklch(0.
|
|
90
|
-
--destructive: oklch(0.
|
|
91
|
-
|
|
92
|
-
--border: oklch(0.
|
|
93
|
-
--hairline: oklch(0.
|
|
94
|
-
--input: oklch(0.
|
|
95
|
-
--ring: oklch(0.
|
|
96
|
-
|
|
97
|
-
/* Vermillion —
|
|
98
|
-
restraint is the point. */
|
|
99
|
-
--brand: oklch(0.
|
|
100
|
-
--brand-foreground: oklch(0.985 0
|
|
101
|
-
--brand-soft: oklch(0.
|
|
102
|
-
|
|
103
|
-
--chart-1: oklch(0.
|
|
104
|
-
--chart-2: oklch(0.55 0.
|
|
105
|
-
--chart-3: oklch(0.
|
|
106
|
-
--chart-4: oklch(0.
|
|
107
|
-
--chart-5: oklch(0.
|
|
79
|
+
--card-foreground: oklch(0.145 0 0);
|
|
80
|
+
--popover: oklch(1 0 0);
|
|
81
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
82
|
+
|
|
83
|
+
--primary: oklch(0.185 0 0);
|
|
84
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
85
|
+
--secondary: oklch(0.96 0 0);
|
|
86
|
+
--secondary-foreground: oklch(0.185 0 0);
|
|
87
|
+
--muted: oklch(0.955 0 0);
|
|
88
|
+
--muted-foreground: oklch(0.5 0 0);
|
|
89
|
+
--accent: oklch(0.945 0 0);
|
|
90
|
+
--accent-foreground: oklch(0.185 0 0);
|
|
91
|
+
--destructive: oklch(0.58 0.22 27);
|
|
92
|
+
|
|
93
|
+
--border: oklch(0.92 0 0);
|
|
94
|
+
--hairline: oklch(0.885 0 0);
|
|
95
|
+
--input: oklch(0.92 0 0);
|
|
96
|
+
--ring: oklch(0.6 0.2 25);
|
|
97
|
+
|
|
98
|
+
/* Vermillion — the single signature accent on an otherwise neutral
|
|
99
|
+
surface; restraint is the point. */
|
|
100
|
+
--brand: oklch(0.6 0.2 25);
|
|
101
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
102
|
+
--brand-soft: oklch(0.6 0.2 25 / 0.1);
|
|
103
|
+
|
|
104
|
+
--chart-1: oklch(0.6 0.2 25);
|
|
105
|
+
--chart-2: oklch(0.55 0.16 250);
|
|
106
|
+
--chart-3: oklch(0.55 0.15 285);
|
|
107
|
+
--chart-4: oklch(0.6 0.13 160);
|
|
108
|
+
--chart-5: oklch(0.5 0 0);
|
|
108
109
|
|
|
109
110
|
/* Tight, considered radius — drops the trendy 10px squish for 6px crisp. */
|
|
110
111
|
--radius: 0.375rem;
|
|
111
112
|
|
|
112
|
-
--sidebar: oklch(0.
|
|
113
|
-
--sidebar-foreground: oklch(0.
|
|
114
|
-
--sidebar-primary: oklch(0.
|
|
115
|
-
--sidebar-primary-foreground: oklch(0.985 0
|
|
116
|
-
--sidebar-accent: oklch(0.94 0
|
|
117
|
-
--sidebar-accent-foreground: oklch(0.
|
|
118
|
-
--sidebar-border: oklch(0.
|
|
119
|
-
--sidebar-ring: oklch(0.
|
|
113
|
+
--sidebar: oklch(0.98 0 0);
|
|
114
|
+
--sidebar-foreground: oklch(0.185 0 0);
|
|
115
|
+
--sidebar-primary: oklch(0.185 0 0);
|
|
116
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
117
|
+
--sidebar-accent: oklch(0.94 0 0);
|
|
118
|
+
--sidebar-accent-foreground: oklch(0.185 0 0);
|
|
119
|
+
--sidebar-border: oklch(0.905 0 0);
|
|
120
|
+
--sidebar-ring: oklch(0.6 0.2 25);
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.dark {
|
|
123
|
-
--background: oklch(0.
|
|
124
|
-
--foreground: oklch(0.
|
|
125
|
-
--canvas: oklch(0.
|
|
126
|
-
|
|
127
|
-
--card: oklch(0.
|
|
128
|
-
--card-foreground: oklch(0.
|
|
129
|
-
--popover: oklch(0.
|
|
130
|
-
--popover-foreground: oklch(0.
|
|
131
|
-
|
|
132
|
-
--primary: oklch(0.
|
|
133
|
-
--primary-foreground: oklch(0.
|
|
134
|
-
--secondary: oklch(0.
|
|
135
|
-
--secondary-foreground: oklch(0.
|
|
136
|
-
--muted: oklch(0.
|
|
137
|
-
--muted-foreground: oklch(0.68 0
|
|
138
|
-
--accent: oklch(0.
|
|
139
|
-
--accent-foreground: oklch(0.
|
|
140
|
-
--destructive: oklch(0.
|
|
124
|
+
--background: oklch(0.145 0 0);
|
|
125
|
+
--foreground: oklch(0.93 0 0);
|
|
126
|
+
--canvas: oklch(0.125 0 0);
|
|
127
|
+
|
|
128
|
+
--card: oklch(0.19 0 0);
|
|
129
|
+
--card-foreground: oklch(0.93 0 0);
|
|
130
|
+
--popover: oklch(0.205 0 0);
|
|
131
|
+
--popover-foreground: oklch(0.93 0 0);
|
|
132
|
+
|
|
133
|
+
--primary: oklch(0.925 0 0);
|
|
134
|
+
--primary-foreground: oklch(0.17 0 0);
|
|
135
|
+
--secondary: oklch(0.24 0 0);
|
|
136
|
+
--secondary-foreground: oklch(0.93 0 0);
|
|
137
|
+
--muted: oklch(0.23 0 0);
|
|
138
|
+
--muted-foreground: oklch(0.68 0 0);
|
|
139
|
+
--accent: oklch(0.265 0 0);
|
|
140
|
+
--accent-foreground: oklch(0.93 0 0);
|
|
141
|
+
--destructive: oklch(0.66 0.2 25);
|
|
141
142
|
|
|
142
143
|
--border: oklch(1 0 0 / 0.1);
|
|
143
|
-
--hairline: oklch(1 0 0 / 0.
|
|
144
|
-
--input: oklch(1 0 0 / 0.
|
|
145
|
-
--ring: oklch(0.
|
|
146
|
-
|
|
147
|
-
--brand: oklch(0.
|
|
148
|
-
--brand-foreground: oklch(0.
|
|
149
|
-
--brand-soft: oklch(0.
|
|
150
|
-
|
|
151
|
-
--chart-1: oklch(0.
|
|
152
|
-
--chart-2: oklch(0.
|
|
153
|
-
--chart-3: oklch(0.65 0.
|
|
154
|
-
--chart-4: oklch(0.
|
|
155
|
-
--chart-5: oklch(0.
|
|
156
|
-
|
|
157
|
-
--sidebar: oklch(0.
|
|
158
|
-
--sidebar-foreground: oklch(0.
|
|
159
|
-
--sidebar-primary: oklch(0.
|
|
160
|
-
--sidebar-primary-foreground: oklch(0.
|
|
161
|
-
--sidebar-accent: oklch(0.
|
|
162
|
-
--sidebar-accent-foreground: oklch(0.
|
|
144
|
+
--hairline: oklch(1 0 0 / 0.07);
|
|
145
|
+
--input: oklch(1 0 0 / 0.14);
|
|
146
|
+
--ring: oklch(0.63 0.19 25);
|
|
147
|
+
|
|
148
|
+
--brand: oklch(0.63 0.2 25);
|
|
149
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
150
|
+
--brand-soft: oklch(0.63 0.2 25 / 0.16);
|
|
151
|
+
|
|
152
|
+
--chart-1: oklch(0.63 0.2 25);
|
|
153
|
+
--chart-2: oklch(0.65 0.15 250);
|
|
154
|
+
--chart-3: oklch(0.65 0.14 285);
|
|
155
|
+
--chart-4: oklch(0.7 0.13 160);
|
|
156
|
+
--chart-5: oklch(0.65 0 0);
|
|
157
|
+
|
|
158
|
+
--sidebar: oklch(0.17 0 0);
|
|
159
|
+
--sidebar-foreground: oklch(0.93 0 0);
|
|
160
|
+
--sidebar-primary: oklch(0.925 0 0);
|
|
161
|
+
--sidebar-primary-foreground: oklch(0.17 0 0);
|
|
162
|
+
--sidebar-accent: oklch(0.26 0 0);
|
|
163
|
+
--sidebar-accent-foreground: oklch(0.93 0 0);
|
|
163
164
|
--sidebar-border: oklch(1 0 0 / 0.1);
|
|
164
|
-
--sidebar-ring: oklch(0.
|
|
165
|
+
--sidebar-ring: oklch(0.63 0.19 25);
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
/* Tabular numerics — pages, counts, hex values, slider readouts.
|
|
@@ -209,8 +210,8 @@
|
|
|
209
210
|
* label across the app. Tracked-out small caps in muted ink.
|
|
210
211
|
*/
|
|
211
212
|
.eyebrow {
|
|
212
|
-
@apply font-sans text-[
|
|
213
|
-
letter-spacing: 0.
|
|
213
|
+
@apply font-sans text-[11px] font-medium uppercase text-muted-foreground;
|
|
214
|
+
letter-spacing: 0.08em;
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
/* Hairline divider — 0.5px on retina, snaps to 1px elsewhere. */
|
|
@@ -218,34 +219,9 @@
|
|
|
218
219
|
background: var(--hairline);
|
|
219
220
|
}
|
|
220
221
|
|
|
221
|
-
/* Subtle paper texture for "studio" surfaces (sidebar, gallery bg).
|
|
222
|
-
Pure-CSS noise via SVG; cheap, dark-mode aware via mix-blend. */
|
|
223
|
-
.paper {
|
|
224
|
-
position: relative;
|
|
225
|
-
isolation: isolate;
|
|
226
|
-
}
|
|
227
|
-
.paper::before {
|
|
228
|
-
content: "";
|
|
229
|
-
position: absolute;
|
|
230
|
-
inset: 0;
|
|
231
|
-
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
|
|
232
|
-
opacity: 0.025;
|
|
233
|
-
pointer-events: none;
|
|
234
|
-
z-index: 0;
|
|
235
|
-
mix-blend-mode: multiply;
|
|
236
|
-
}
|
|
237
|
-
.dark .paper::before {
|
|
238
|
-
opacity: 0.05;
|
|
239
|
-
mix-blend-mode: screen;
|
|
240
|
-
}
|
|
241
|
-
.paper > * {
|
|
242
|
-
position: relative;
|
|
243
|
-
z-index: 1;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
222
|
/* Numeric folio-style page count. */
|
|
247
223
|
.folio {
|
|
248
|
-
@apply nums font-mono text-[
|
|
224
|
+
@apply nums font-mono text-[10.5px] tracking-[0.08em] text-muted-foreground;
|
|
249
225
|
}
|
|
250
226
|
}
|
|
251
227
|
|