rockin 0.0.37 → 0.0.39

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/styles.css CHANGED
@@ -1,3 +1,4 @@
1
+ @layer ui-sdk;
1
2
  @import "tailwindcss";
2
3
  @import "tw-animate-css";
3
4
  @import "shadcn/tailwind.css";
@@ -5,9 +6,25 @@
5
6
  @import "feral-blob/blob.css";
6
7
  @import "./loader.css";
7
8
 
8
- @custom-variant dark (&:is(.dark *));
9
+ @custom-variant dark {
10
+ &:where([data-color-scheme="dark"], [data-color-scheme="dark"] *) {
11
+ @slot;
12
+ }
13
+ @media (prefers-color-scheme: dark) {
14
+ &:where(
15
+ [data-color-scheme="system"],
16
+ [data-color-scheme="system"] *,
17
+ :root:not([data-color-scheme]),
18
+ :root:not([data-color-scheme]) *
19
+ ) {
20
+ @slot;
21
+ }
22
+ }
23
+ }
9
24
  @custom-variant standalone (@media (display-mode: standalone));
10
25
  @custom-variant native (&:is([data-native-app="true"] *));
26
+ @custom-variant data-selected (&:where([data-selected]:not([data-selected="false"])));
27
+ @custom-variant indicator (& [data-slot="tabs-indicator"]);
11
28
  @source "../";
12
29
 
13
30
  @theme inline {
@@ -233,77 +250,79 @@
233
250
  }
234
251
  }
235
252
 
236
- .dark {
237
- --brand: #ff7a00;
238
- --success: oklch(0.68 0.15 145);
239
- --success-foreground: oklch(0.98 0 0);
240
-
241
- --warning: oklch(0.74 0.16 75);
242
- --warning-foreground: oklch(0.12 0 0);
243
-
244
- --info: oklch(0.72 0.11 245);
245
- --info-foreground: oklch(0.98 0 0);
246
-
247
- --background: oklch(0 0 0);
248
- --foreground: oklch(0.985 0 0);
249
- --card: oklch(0.205 0 0);
250
- --card-foreground: oklch(0.985 0 0);
251
- --popover: oklch(0.205 0 0);
252
- --popover-foreground: oklch(0.985 0 0);
253
- --primary: oklch(0.922 0 0);
254
- --primary-foreground: oklch(0.205 0 0);
255
- --secondary: oklch(0.269 0 0);
256
- --secondary-foreground: oklch(0.985 0 0);
257
- --muted: oklch(0.269 0 0);
258
- --muted-foreground: oklch(0.708 0 0);
259
- --accent: oklch(0.269 0 0);
260
- --accent-foreground: oklch(0.985 0 0);
261
- --destructive: oklch(0.704 0.191 22.216);
262
- --destructive-foreground: oklch(0.985 0 0);
263
- --border: oklch(1 0 0 / 10%);
264
- --input: oklch(1 0 0 / 15%);
265
- --ring: oklch(62.04% 0.195 253.83);
266
- --chart-1: oklch(0.87 0 0);
267
- --chart-2: oklch(0.556 0 0);
268
- --chart-3: oklch(0.439 0 0);
269
- --chart-4: oklch(0.371 0 0);
270
- --chart-5: oklch(0.269 0 0);
271
- --sidebar: oklch(0.205 0 0);
272
- --sidebar-foreground: oklch(0.985 0 0);
273
- --sidebar-primary: oklch(0.488 0.243 264.376);
274
- --sidebar-primary-foreground: oklch(0.985 0 0);
275
- --sidebar-accent: oklch(0.269 0 0);
276
- --sidebar-accent-foreground: oklch(0.985 0 0);
277
- --sidebar-border: oklch(1 0 0 / 10%);
278
- --sidebar-ring: oklch(0.556 0 0);
279
- --kanban-board-circle-blue: oklch(0.7135 0.1435 254.61);
280
- --kanban-board-circle-cyan: oklch(0.7973 0.1339 211.45);
281
- --kanban-board-circle-gray: oklch(0.7137 0.0192 261.33);
282
- --kanban-board-circle-green: oklch(0.8003 0.1823 151.7);
283
- --kanban-board-circle-indigo: oklch(0.6797 0.1586 276.96);
284
- --kanban-board-circle-pink: oklch(0.7253 0.1752 349.74);
285
- --kanban-board-circle-purple: oklch(0.7218 0.1766 305.51);
286
- --kanban-board-circle-red: oklch(0.7108 0.166 22.21);
287
- --kanban-board-circle-violet: oklch(0.7093 0.1589 293.52);
288
- --kanban-board-circle-yellow: oklch(0.8601 0.173 91.84);
289
- --chart-background: oklch(0.145 0 0);
290
- --chart-foreground: oklch(0.45 0 0);
291
- --chart-foreground-muted: oklch(0.65 0.01 260);
292
- --chart-crosshair: oklch(0.45 0 0);
293
- --chart-grid: oklch(0.25 0 0);
294
- --chart-brush-border: var(--chart-grid);
295
- --chart-marker-background: oklch(0.25 0.01 260);
296
- --chart-marker-border: oklch(0.4 0.01 260);
297
- --chart-marker-foreground: oklch(0.9 0 0);
298
- --chart-label: oklch(0.75 0.01 260);
299
- --chart-scale-01: oklch(0.28 0.03 270);
300
- --chart-scale-02: oklch(0.38 0.04 270);
301
- --chart-scale-03: oklch(0.48 0.05 270);
302
- --chart-scale-04: oklch(0.58 0.06 270);
303
- --chart-scale-05: oklch(0.68 0.07 270);
304
- --chart-scale-pattern-color: oklch(0.145 0 0);
305
- --selection: oklch(0.985 0 0);
306
- --selection-foreground: oklch(0.145 0 0);
253
+ :root {
254
+ @variant dark {
255
+ --brand: #ff7a00;
256
+ --success: oklch(0.68 0.15 145);
257
+ --success-foreground: oklch(0.98 0 0);
258
+
259
+ --warning: oklch(0.74 0.16 75);
260
+ --warning-foreground: oklch(0.12 0 0);
261
+
262
+ --info: oklch(0.72 0.11 245);
263
+ --info-foreground: oklch(0.98 0 0);
264
+
265
+ --background: oklch(0 0 0);
266
+ --foreground: oklch(0.985 0 0);
267
+ --card: oklch(0.205 0 0);
268
+ --card-foreground: oklch(0.985 0 0);
269
+ --popover: oklch(0.205 0 0);
270
+ --popover-foreground: oklch(0.985 0 0);
271
+ --primary: oklch(0.922 0 0);
272
+ --primary-foreground: oklch(0.205 0 0);
273
+ --secondary: oklch(0.269 0 0);
274
+ --secondary-foreground: oklch(0.985 0 0);
275
+ --muted: oklch(0.269 0 0);
276
+ --muted-foreground: oklch(0.708 0 0);
277
+ --accent: oklch(0.269 0 0);
278
+ --accent-foreground: oklch(0.985 0 0);
279
+ --destructive: oklch(0.704 0.191 22.216);
280
+ --destructive-foreground: oklch(0.985 0 0);
281
+ --border: oklch(1 0 0 / 10%);
282
+ --input: oklch(1 0 0 / 15%);
283
+ --ring: oklch(62.04% 0.195 253.83);
284
+ --chart-1: oklch(0.87 0 0);
285
+ --chart-2: oklch(0.556 0 0);
286
+ --chart-3: oklch(0.439 0 0);
287
+ --chart-4: oklch(0.371 0 0);
288
+ --chart-5: oklch(0.269 0 0);
289
+ --sidebar: oklch(0.205 0 0);
290
+ --sidebar-foreground: oklch(0.985 0 0);
291
+ --sidebar-primary: oklch(0.488 0.243 264.376);
292
+ --sidebar-primary-foreground: oklch(0.985 0 0);
293
+ --sidebar-accent: oklch(0.269 0 0);
294
+ --sidebar-accent-foreground: oklch(0.985 0 0);
295
+ --sidebar-border: oklch(1 0 0 / 10%);
296
+ --sidebar-ring: oklch(0.556 0 0);
297
+ --kanban-board-circle-blue: oklch(0.7135 0.1435 254.61);
298
+ --kanban-board-circle-cyan: oklch(0.7973 0.1339 211.45);
299
+ --kanban-board-circle-gray: oklch(0.7137 0.0192 261.33);
300
+ --kanban-board-circle-green: oklch(0.8003 0.1823 151.7);
301
+ --kanban-board-circle-indigo: oklch(0.6797 0.1586 276.96);
302
+ --kanban-board-circle-pink: oklch(0.7253 0.1752 349.74);
303
+ --kanban-board-circle-purple: oklch(0.7218 0.1766 305.51);
304
+ --kanban-board-circle-red: oklch(0.7108 0.166 22.21);
305
+ --kanban-board-circle-violet: oklch(0.7093 0.1589 293.52);
306
+ --kanban-board-circle-yellow: oklch(0.8601 0.173 91.84);
307
+ --chart-background: oklch(0.145 0 0);
308
+ --chart-foreground: oklch(0.45 0 0);
309
+ --chart-foreground-muted: oklch(0.65 0.01 260);
310
+ --chart-crosshair: oklch(0.45 0 0);
311
+ --chart-grid: oklch(0.25 0 0);
312
+ --chart-brush-border: var(--chart-grid);
313
+ --chart-marker-background: oklch(0.25 0.01 260);
314
+ --chart-marker-border: oklch(0.4 0.01 260);
315
+ --chart-marker-foreground: oklch(0.9 0 0);
316
+ --chart-label: oklch(0.75 0.01 260);
317
+ --chart-scale-01: oklch(0.28 0.03 270);
318
+ --chart-scale-02: oklch(0.38 0.04 270);
319
+ --chart-scale-03: oklch(0.48 0.05 270);
320
+ --chart-scale-04: oklch(0.58 0.06 270);
321
+ --chart-scale-05: oklch(0.68 0.07 270);
322
+ --chart-scale-pattern-color: oklch(0.145 0 0);
323
+ --selection: oklch(0.985 0 0);
324
+ --selection-foreground: oklch(0.145 0 0);
325
+ }
307
326
  }
308
327
 
309
328
  @media (display-mode: standalone) {
@@ -433,15 +452,17 @@ select:-webkit-autofill:focus {
433
452
  }
434
453
 
435
454
  /* Dark mode: match dark:bg-input/30 */
436
- .dark input:-webkit-autofill,
437
- .dark input:-webkit-autofill:hover,
438
- .dark input:-webkit-autofill:focus,
439
- .dark textarea:-webkit-autofill,
440
- .dark textarea:-webkit-autofill:focus,
441
- .dark select:-webkit-autofill,
442
- .dark select:-webkit-autofill:focus {
443
- -webkit-box-shadow: 0 0 0 1000px hsl(var(--input) / 0.3) inset;
444
- box-shadow: 0 0 0 1000px hsl(var(--input) / 0.3) inset;
455
+ input:-webkit-autofill,
456
+ input:-webkit-autofill:hover,
457
+ input:-webkit-autofill:focus,
458
+ textarea:-webkit-autofill,
459
+ textarea:-webkit-autofill:focus,
460
+ select:-webkit-autofill,
461
+ select:-webkit-autofill:focus {
462
+ @variant dark {
463
+ -webkit-box-shadow: 0 0 0 1000px hsl(var(--input) / 0.3) inset;
464
+ box-shadow: 0 0 0 1000px hsl(var(--input) / 0.3) inset;
465
+ }
445
466
  }
446
467
  input:autofill,
447
468
  textarea:autofill,
@@ -462,20 +483,71 @@ select:-webkit-autofill {
462
483
  box-shadow: none !important;
463
484
  }
464
485
 
465
- /*
466
- * Keep tab indicator slide motion when next-themes disableTransitionOnChange
467
- * injects `* { transition: none !important }` during theme class flips.
468
- * Only translate/size are preserved — colors still snap with the theme.
469
- */
470
- .tabs__indicator {
471
- transition-duration: 250ms !important;
472
- transition-property: translate, width, height !important;
473
- transition-timing-function: var(--ease-out-fluid) !important;
486
+ /* Scrollbars and form controls follow the color scheme from the first paint. */
487
+ :root,
488
+ [data-color-scheme="system"] {
489
+ color-scheme: light dark;
490
+ }
491
+ [data-color-scheme="light"] {
492
+ color-scheme: light;
493
+ }
494
+ [data-color-scheme="dark"] {
495
+ color-scheme: dark;
474
496
  }
475
497
 
476
- @media (prefers-reduced-motion: reduce) {
477
- .tabs__indicator {
478
- transition: none !important;
498
+ [data-slot="tabs-tab"][data-selected] {
499
+ scroll-initial-target: nearest;
500
+ scroll-snap-align: center;
501
+ }
502
+
503
+ @keyframes tabs-arrow-in {
504
+ from {
505
+ opacity: 0;
506
+ scale: 0.75;
507
+ pointer-events: none;
508
+ }
509
+ to {
510
+ opacity: 1;
511
+ scale: 1;
512
+ pointer-events: auto;
513
+ }
514
+ }
515
+ @keyframes tabs-arrow-out {
516
+ from {
517
+ opacity: 1;
518
+ scale: 1;
519
+ pointer-events: auto;
520
+ }
521
+ to {
522
+ opacity: 0;
523
+ scale: 0.75;
524
+ pointer-events: none;
525
+ }
526
+ }
527
+ @supports (animation-timeline: scroll()) {
528
+ [data-slot="scroll-area"]:has(> [data-slot="tabs-scroll-arrow"]) {
529
+ timeline-scope: --tabs-scroll;
530
+
531
+ & > [data-slot="scroll-area-viewport"] {
532
+ scroll-timeline: --tabs-scroll inline;
533
+ }
534
+
535
+ & > [data-slot="tabs-scroll-arrow"] {
536
+ animation: tabs-arrow-in linear both;
537
+ animation-timeline: --tabs-scroll;
538
+ animation-range: 0% calc(0% + 8px);
539
+ }
540
+
541
+ & > [data-slot="tabs-scroll-arrow"][data-side="end"] {
542
+ animation-name: tabs-arrow-out;
543
+ animation-range: calc(100% - 8px) 100%;
544
+ }
545
+ }
546
+
547
+ [data-orientation="vertical"]
548
+ [data-slot="scroll-area"]:has(> [data-slot="tabs-scroll-arrow"])
549
+ > [data-slot="scroll-area-viewport"] {
550
+ scroll-timeline: --tabs-scroll block;
479
551
  }
480
552
  }
481
553
 
@@ -636,28 +708,30 @@ select:-webkit-autofill {
636
708
  --jelly-eye-sparkle: #c084fc;
637
709
  }
638
710
 
639
- .dark[data-accent="slate"] {
640
- --navigation-progress-color: #ff7a00;
641
- --navigation-progress-glow: #ffb38a;
642
- --jelly-body-top: #ffb38a;
643
- --jelly-body-mid: #f9824d;
644
- --jelly-body-deep: #c84b25;
645
- --jelly-body-rim: #ffd0a8;
646
- --jelly-outline: #8f321d;
647
- --jelly-outline-light: #e45c31;
648
- --jelly-arm-light: #ffd0a8;
649
- --jelly-arm-mid: #f28a52;
650
- --jelly-arm-deep: #b84020;
651
- --jelly-cheek-light: #ffe0c2;
652
- --jelly-cheek: #ffab7d;
653
- --jelly-cheek-deep: #e97849;
654
- --jelly-eye-light: #4d2415;
655
- --jelly-eye: #241006;
656
- --jelly-eye-deep: #120803;
657
- --jelly-face-ink: #241006;
658
- --jelly-face-soft: #4d2415;
659
- --jelly-belly-glow: #ffc18d;
660
- --jelly-eye-sparkle: #f08a52;
711
+ :root[data-accent="slate"] {
712
+ @variant dark {
713
+ --navigation-progress-color: #ff7a00;
714
+ --navigation-progress-glow: #ffb38a;
715
+ --jelly-body-top: #ffb38a;
716
+ --jelly-body-mid: #f9824d;
717
+ --jelly-body-deep: #c84b25;
718
+ --jelly-body-rim: #ffd0a8;
719
+ --jelly-outline: #8f321d;
720
+ --jelly-outline-light: #e45c31;
721
+ --jelly-arm-light: #ffd0a8;
722
+ --jelly-arm-mid: #f28a52;
723
+ --jelly-arm-deep: #b84020;
724
+ --jelly-cheek-light: #ffe0c2;
725
+ --jelly-cheek: #ffab7d;
726
+ --jelly-cheek-deep: #e97849;
727
+ --jelly-eye-light: #4d2415;
728
+ --jelly-eye: #241006;
729
+ --jelly-eye-deep: #120803;
730
+ --jelly-face-ink: #241006;
731
+ --jelly-face-soft: #4d2415;
732
+ --jelly-belly-glow: #ffc18d;
733
+ --jelly-eye-sparkle: #f08a52;
734
+ }
661
735
  }
662
736
 
663
737
  :root[data-accent="mint"] {
@@ -718,91 +792,97 @@ select:-webkit-autofill {
718
792
  --jelly-eye-sparkle: #fbbf24;
719
793
  }
720
794
 
721
- .dark[data-accent="violet"] {
722
- --navigation-progress-color: #8b5cf6;
723
- --navigation-progress-glow: #d8b4fe;
724
- --primary: oklch(0.72 0.15 300);
725
- --primary-foreground: oklch(0.16 0.02 300);
726
- --ring: oklch(0.72 0.15 300);
727
- --nucleo-gradient-1-color-1: #d8b4fe;
728
- --nucleo-gradient-1-color-2: #8b5cf6;
729
- --jelly-body-top: #c084fc;
730
- --jelly-body-mid: #8b5cf6;
731
- --jelly-body-deep: #5b21b6;
732
- --jelly-body-rim: #e9d5ff;
733
- --jelly-outline: #3b0764;
734
- --jelly-outline-light: #7e22ce;
735
- --jelly-arm-light: #e9d5ff;
736
- --jelly-arm-mid: #a78bfa;
737
- --jelly-arm-deep: #6d28d9;
738
- --jelly-cheek-light: #f3e8ff;
739
- --jelly-cheek: #c084fc;
740
- --jelly-cheek-deep: #8b5cf6;
741
- --jelly-eye-light: #1e0a3c;
742
- --jelly-eye: #0f0620;
743
- --jelly-eye-deep: #080310;
744
- --jelly-face-ink: #0f0620;
745
- --jelly-face-soft: #1e0a3c;
746
- --jelly-belly-glow: #ddd6fe;
747
- --jelly-eye-sparkle: #a78bfa;
748
- }
749
-
750
- .dark[data-accent="mint"] {
751
- --navigation-progress-color: #14b8a6;
752
- --navigation-progress-glow: #a7f3d0;
753
- --primary: oklch(0.74 0.15 165);
754
- --primary-foreground: oklch(0.15 0.03 165);
755
- --ring: oklch(0.74 0.15 165);
756
- --nucleo-gradient-1-color-1: #a7f3d0;
757
- --nucleo-gradient-1-color-2: #14b8a6;
758
- --jelly-body-top: #99f6e4;
759
- --jelly-body-mid: #2dd4bf;
760
- --jelly-body-deep: #0f766e;
761
- --jelly-body-rim: #ccfbf1;
762
- --jelly-outline: #134e4a;
763
- --jelly-outline-light: #0d9488;
764
- --jelly-arm-light: #ccfbf1;
765
- --jelly-arm-mid: #5eead4;
766
- --jelly-arm-deep: #0f766e;
767
- --jelly-cheek-light: #ecfeff;
768
- --jelly-cheek: #99f6e4;
769
- --jelly-cheek-deep: #2dd4bf;
770
- --jelly-eye-light: #042f2e;
771
- --jelly-eye: #021c1b;
772
- --jelly-eye-deep: #011211;
773
- --jelly-face-ink: #021c1b;
774
- --jelly-face-soft: #042f2e;
775
- --jelly-belly-glow: #a7f3d0;
776
- --jelly-eye-sparkle: #5eead4;
795
+ :root[data-accent="violet"] {
796
+ @variant dark {
797
+ --navigation-progress-color: #8b5cf6;
798
+ --navigation-progress-glow: #d8b4fe;
799
+ --primary: oklch(0.72 0.15 300);
800
+ --primary-foreground: oklch(0.16 0.02 300);
801
+ --ring: oklch(0.72 0.15 300);
802
+ --nucleo-gradient-1-color-1: #d8b4fe;
803
+ --nucleo-gradient-1-color-2: #8b5cf6;
804
+ --jelly-body-top: #c084fc;
805
+ --jelly-body-mid: #8b5cf6;
806
+ --jelly-body-deep: #5b21b6;
807
+ --jelly-body-rim: #e9d5ff;
808
+ --jelly-outline: #3b0764;
809
+ --jelly-outline-light: #7e22ce;
810
+ --jelly-arm-light: #e9d5ff;
811
+ --jelly-arm-mid: #a78bfa;
812
+ --jelly-arm-deep: #6d28d9;
813
+ --jelly-cheek-light: #f3e8ff;
814
+ --jelly-cheek: #c084fc;
815
+ --jelly-cheek-deep: #8b5cf6;
816
+ --jelly-eye-light: #1e0a3c;
817
+ --jelly-eye: #0f0620;
818
+ --jelly-eye-deep: #080310;
819
+ --jelly-face-ink: #0f0620;
820
+ --jelly-face-soft: #1e0a3c;
821
+ --jelly-belly-glow: #ddd6fe;
822
+ --jelly-eye-sparkle: #a78bfa;
823
+ }
777
824
  }
778
825
 
779
- .dark[data-accent="gold"] {
780
- --navigation-progress-color: #d97706;
781
- --navigation-progress-glow: #fde68a;
782
- --primary: oklch(0.78 0.15 85);
783
- --primary-foreground: oklch(0.18 0.03 85);
784
- --ring: oklch(0.78 0.15 85);
785
- --nucleo-gradient-1-color-1: #fde68a;
786
- --nucleo-gradient-1-color-2: #d97706;
787
- --jelly-body-top: #fde68a;
788
- --jelly-body-mid: #f59e0b;
789
- --jelly-body-deep: #b45309;
790
- --jelly-body-rim: #fef3c7;
791
- --jelly-outline: #78350f;
792
- --jelly-outline-light: #d97706;
793
- --jelly-arm-light: #fef3c7;
794
- --jelly-arm-mid: #fbbf24;
795
- --jelly-arm-deep: #b45309;
796
- --jelly-cheek-light: #fffbeb;
797
- --jelly-cheek: #fde68a;
798
- --jelly-cheek-deep: #f59e0b;
799
- --jelly-eye-light: #451a03;
800
- --jelly-eye: #271002;
801
- --jelly-eye-deep: #180a01;
802
- --jelly-face-ink: #271002;
803
- --jelly-face-soft: #451a03;
804
- --jelly-belly-glow: #fef3c7;
805
- --jelly-eye-sparkle: #fbbf24;
826
+ :root[data-accent="mint"] {
827
+ @variant dark {
828
+ --navigation-progress-color: #14b8a6;
829
+ --navigation-progress-glow: #a7f3d0;
830
+ --primary: oklch(0.74 0.15 165);
831
+ --primary-foreground: oklch(0.15 0.03 165);
832
+ --ring: oklch(0.74 0.15 165);
833
+ --nucleo-gradient-1-color-1: #a7f3d0;
834
+ --nucleo-gradient-1-color-2: #14b8a6;
835
+ --jelly-body-top: #99f6e4;
836
+ --jelly-body-mid: #2dd4bf;
837
+ --jelly-body-deep: #0f766e;
838
+ --jelly-body-rim: #ccfbf1;
839
+ --jelly-outline: #134e4a;
840
+ --jelly-outline-light: #0d9488;
841
+ --jelly-arm-light: #ccfbf1;
842
+ --jelly-arm-mid: #5eead4;
843
+ --jelly-arm-deep: #0f766e;
844
+ --jelly-cheek-light: #ecfeff;
845
+ --jelly-cheek: #99f6e4;
846
+ --jelly-cheek-deep: #2dd4bf;
847
+ --jelly-eye-light: #042f2e;
848
+ --jelly-eye: #021c1b;
849
+ --jelly-eye-deep: #011211;
850
+ --jelly-face-ink: #021c1b;
851
+ --jelly-face-soft: #042f2e;
852
+ --jelly-belly-glow: #a7f3d0;
853
+ --jelly-eye-sparkle: #5eead4;
854
+ }
855
+ }
856
+
857
+ :root[data-accent="gold"] {
858
+ @variant dark {
859
+ --navigation-progress-color: #d97706;
860
+ --navigation-progress-glow: #fde68a;
861
+ --primary: oklch(0.78 0.15 85);
862
+ --primary-foreground: oklch(0.18 0.03 85);
863
+ --ring: oklch(0.78 0.15 85);
864
+ --nucleo-gradient-1-color-1: #fde68a;
865
+ --nucleo-gradient-1-color-2: #d97706;
866
+ --jelly-body-top: #fde68a;
867
+ --jelly-body-mid: #f59e0b;
868
+ --jelly-body-deep: #b45309;
869
+ --jelly-body-rim: #fef3c7;
870
+ --jelly-outline: #78350f;
871
+ --jelly-outline-light: #d97706;
872
+ --jelly-arm-light: #fef3c7;
873
+ --jelly-arm-mid: #fbbf24;
874
+ --jelly-arm-deep: #b45309;
875
+ --jelly-cheek-light: #fffbeb;
876
+ --jelly-cheek: #fde68a;
877
+ --jelly-cheek-deep: #f59e0b;
878
+ --jelly-eye-light: #451a03;
879
+ --jelly-eye: #271002;
880
+ --jelly-eye-deep: #180a01;
881
+ --jelly-face-ink: #271002;
882
+ --jelly-face-soft: #451a03;
883
+ --jelly-belly-glow: #fef3c7;
884
+ --jelly-eye-sparkle: #fbbf24;
885
+ }
806
886
  }
807
887
  .code-block {
808
888
  position: relative;
@@ -903,6 +983,10 @@ select:-webkit-autofill {
903
983
  background: rgb(0 0 0 / 10%);
904
984
  }
905
985
 
906
- .dark .code-block-content ::selection {
907
- background: rgb(255 255 255 / 15%);
986
+ .code-block-content {
987
+ @variant dark {
988
+ & ::selection {
989
+ background: rgb(255 255 255 / 15%);
990
+ }
991
+ }
908
992
  }
package/dist/ui/bridge.js CHANGED
@@ -5,7 +5,8 @@ import {
5
5
  getNativeStatusBarPlugin,
6
6
  getNativeThemePlugin,
7
7
  isNativeApp
8
- } from "../chunk-ATPUW3SQ.js";
8
+ } from "../chunk-2LD63YUK.js";
9
+ import "../chunk-X56ZEDOW.js";
9
10
 
10
11
  // src/ui/bridge.tsx
11
12
  import { useRouter } from "next/navigation";
@@ -24,7 +25,9 @@ function getAppPath(value) {
24
25
  return null;
25
26
  }
26
27
  function getCurrentTheme() {
27
- return document.documentElement.classList.contains("dark") ? "dark" : "light";
28
+ const scheme = document.documentElement.dataset.colorScheme;
29
+ if (scheme === "light" || scheme === "dark") return scheme;
30
+ return matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
28
31
  }
29
32
  function syncNativeStatusBar() {
30
33
  const statusBar = getNativeStatusBarPlugin();
@@ -72,8 +75,10 @@ function NativeAppBridge() {
72
75
  });
73
76
  themeObserver.observe(root, {
74
77
  attributes: true,
75
- attributeFilter: ["class"]
78
+ attributeFilter: ["data-color-scheme"]
76
79
  });
80
+ const systemScheme = matchMedia("(prefers-color-scheme: dark)");
81
+ systemScheme.addEventListener("change", syncNativeAppearance);
77
82
  let cancelled = false;
78
83
  let removeAppUrlListener;
79
84
  const appPlugin = getNativeAppPlugin();
@@ -96,6 +101,7 @@ function NativeAppBridge() {
96
101
  return () => {
97
102
  cancelled = true;
98
103
  themeObserver.disconnect();
104
+ systemScheme.removeEventListener("change", syncNativeAppearance);
99
105
  void removeAppUrlListener?.();
100
106
  delete root.dataset.nativeApp;
101
107
  delete root.dataset.nativePlatform;
@@ -1,15 +1,18 @@
1
1
  "use client";
2
- import {
3
- IconSwap
4
- } from "../chunk-5QSYZSVL.js";
5
2
  import {
6
3
  Button
7
4
  } from "../chunk-DVNTJNDP.js";
5
+ import {
6
+ useTheme
7
+ } from "../chunk-G3RYS466.js";
8
+ import "../chunk-X56ZEDOW.js";
9
+ import {
10
+ IconSwap
11
+ } from "../chunk-5QSYZSVL.js";
8
12
 
9
13
  // src/ui/code-block.tsx
10
14
  import { cn } from "cn";
11
15
  import { Check, Copy } from "lucide-react";
12
- import { useTheme } from "next-themes";
13
16
  import * as React from "react";
14
17
  import { codeToHtml } from "shiki";
15
18
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -15,19 +15,14 @@ import {
15
15
  DropdownMenuSubTrigger,
16
16
  DropdownMenuTrigger
17
17
  } from "../chunk-RUKQ532H.js";
18
- import {
19
- ScrollArea
20
- } from "../chunk-UHZTEDHK.js";
21
18
  import {
22
19
  ButtonGroup,
23
20
  ButtonGroupText
24
21
  } from "../chunk-EKDBYSMI.js";
25
22
  import "../chunk-GY2BX5SK.js";
26
23
  import {
27
- Tooltip,
28
- TooltipContent,
29
- TooltipTrigger
30
- } from "../chunk-GBVAFFZR.js";
24
+ ScrollArea
25
+ } from "../chunk-UHZTEDHK.js";
31
26
  import {
32
27
  InputGroup,
33
28
  InputGroupAddon,
@@ -42,6 +37,11 @@ import {
42
37
  import {
43
38
  Button
44
39
  } from "../chunk-DVNTJNDP.js";
40
+ import {
41
+ Tooltip,
42
+ TooltipContent,
43
+ TooltipTrigger
44
+ } from "../chunk-GBVAFFZR.js";
45
45
 
46
46
  // src/ui/filters.tsx
47
47
  import { useRender } from "@base-ui/react/use-render";