horizon-design 0.0.21 → 0.0.23

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/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # horizon-design
2
2
 
3
+ <div align="center">
4
+ <a href="https://www.npmjs.com/package/horizon-design">
5
+ <img src="https://img.shields.io/npm/v/horizon-design.svg" alt="npm version" />
6
+ </a>
7
+ <a href="https://www.npmjs.com/package/horizon-design">
8
+ <img src="https://img.shields.io/npm/l/horizon-design.svg" alt="npm license" />
9
+ </a>
10
+ </div>
11
+
3
12
  Horizon's design system and Svelte 5 UI component library. Built on [Ark UI](https://ark-ui.com) for headless behaviour and [Tailwind CSS v4](https://tailwindcss.com) for styling, with OKLCH color tokens and full dark/light theme support.
4
13
 
5
14
  ---
@@ -2333,7 +2342,7 @@ An accordion-style panel of cards with drag-to-reorder and full keyboard navigat
2333
2342
 
2334
2343
  ### HorizonLayout
2335
2344
 
2336
- A resizable, drag-to-reorder tabbed layout engine. Wrapper around [horizon-layout](https://github.com/horizon-engine/horizon-layout).
2345
+ A resizable, drag-to-reorder tabbed layout engine. Wrapper around [horizon-layout](https://github.com/play-horizon/horizon-layout).
2337
2346
 
2338
2347
  ```svelte
2339
2348
  <script>
@@ -2342,9 +2351,7 @@ A resizable, drag-to-reorder tabbed layout engine. Wrapper around [horizon-layou
2342
2351
  import { SvelteMap } from 'svelte/reactivity';
2343
2352
 
2344
2353
  let config: LayoutConfig = $state({
2345
- root: {
2346
- /* ... */
2347
- }
2354
+ root: {/* ... */}
2348
2355
  });
2349
2356
 
2350
2357
  const views = new SvelteMap<Id, View>([['panel-a', { title: 'Panel A', snippet: mySnippetA }]]);
@@ -2448,26 +2455,27 @@ Override any token in your CSS:
2448
2455
  }
2449
2456
  ```
2450
2457
 
2451
- | Token | Dark (default) | Light (`.light`) |
2452
- | ---------------------- | ----------------------------- | ----------------------------- |
2453
- | `--background` | `oklch(0.09 0.02 264)` | `oklch(0.96 0.01 264)` |
2454
- | `--foreground` | `oklch(0.89 0.02 255)` | `oklch(0.13 0.02 264)` |
2455
- | `--primary` | `oklch(0.65 0.18 277)` | `oklch(0.55 0.18 277)` |
2456
- | `--primary-foreground` | `white` | `white` |
2457
- | `--secondary` | `oklch(0.16 0.03 265)` | `oklch(0.9 0.02 264)` |
2458
- | `--muted` | `oklch(0.16 0.03 265)` | `oklch(0.92 0.015 264)` |
2459
- | `--muted-foreground` | `oklch(0.59 0.03 255)` | `oklch(0.42 0.04 255)` |
2460
- | `--accent` | `oklch(0.22 0.05 266)` | `oklch(0.88 0.025 264)` |
2461
- | `--card` | `oklch(0.13 0.02 264)` | `white` |
2462
- | `--popover` | `oklch(0.12 0.02 264 / 0.92)` | `oklch(0.98 0.01 264 / 0.95)` |
2463
- | `--border` | `oklch(0.22 0.05 266)` | `oklch(0.82 0.02 264)` |
2464
- | `--input` | `oklch(0.19 0.02 264)` | `oklch(0.88 0.02 264)` |
2465
- | `--ring` | `oklch(0.65 0.18 277 / 0.55)` | `oklch(0.55 0.18 277 / 0.55)` |
2466
- | `--destructive` | `oklch(0.6 0.22 25)` | same |
2467
- | `--success` | `oklch(0.65 0.18 142)` | same |
2468
- | `--warning` | `oklch(0.75 0.18 85)` | same |
2469
- | `--info` | `oklch(0.65 0.18 220)` | same |
2470
- | `--radius` | `0.5rem` | same |
2458
+ | Token | Dark (default) | Light (`.light`) |
2459
+ | ---------------------- | -------------- | ---------------------------- |
2460
+ | `--background` | `#111624` | `#f8fafc` |
2461
+ | `--foreground` | `#f1f5f9` | `#0f172a` |
2462
+ | `--primary` | `#2d65f2` | same |
2463
+ | `--primary-foreground` | `#ffffff` | same |
2464
+ | `--primary-hover` | `#4577f5` | `#1d4ed8` |
2465
+ | `--secondary` | `#192138` | `#f1f5f9` |
2466
+ | `--muted` | `#182035` | `#f1f5f9` |
2467
+ | `--muted-foreground` | `#7888a6` | `#64748b` |
2468
+ | `--accent` | `#1e2944` | `#e2e8f0` |
2469
+ | `--card` | `#141a2b` | `#ffffff` |
2470
+ | `--popover` | `#171e32` | `#ffffff` |
2471
+ | `--border` | `#212c47` | `oklch(0.9288 0.0126 255.5)` |
2472
+ | `--input` | `#151c2e` | `#ffffff` |
2473
+ | `--ring` | `#2d65f2` | same |
2474
+ | `--destructive` | `#ef4444` | same |
2475
+ | `--success` | `#10b981` | same |
2476
+ | `--warning` | `#f59e0b` | same |
2477
+ | `--info` | `#38bdf8` | `#3b82f6` |
2478
+ | `--radius` | `0.375rem` | same |
2471
2479
 
2472
2480
  ---
2473
2481
 
@@ -86,7 +86,7 @@
86
86
  disabled={isLoading || disabled}
87
87
  {...rest}
88
88
  >
89
- <span class="flex items-center justify-center gap-2 w-full">
89
+ <span class="flex w-full items-center justify-center gap-2">
90
90
  {#if isLoading}
91
91
  <Spinner aria-hidden="true" />
92
92
  {/if}
@@ -36,7 +36,7 @@
36
36
  class="border-border bg-input text-foreground flex h-8 flex-1 items-center gap-2 rounded-lg border px-3 text-sm"
37
37
  data-slot="clipboard-input"
38
38
  >
39
- <Clipboard.ValueText class="flex-1 truncate" />
39
+ <Clipboard.ValueText class="flex-1 truncate select-text" />
40
40
  </div>
41
41
  <Clipboard.Trigger
42
42
  class="border-border hover:bg-accent text-muted-foreground hover:text-foreground relative inline-flex h-8 w-8 items-center justify-center gap-2 rounded-lg border transition-all"
@@ -45,7 +45,7 @@
45
45
  </ColorPicker.Control>
46
46
  <ColorPicker.Positioner>
47
47
  <ColorPicker.Content
48
- class="z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover flex w-64 flex-col gap-3 rounded-xl border p-4 shadow-xl backdrop-blur-xl outline-none"
48
+ class="data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover z-50 flex w-64 flex-col gap-3 rounded-xl border p-4 shadow-xl backdrop-blur-xl outline-none"
49
49
  data-slot="color-picker-content"
50
50
  >
51
51
  <ColorPicker.Area class="h-36 w-full overflow-hidden rounded-lg">
@@ -49,7 +49,7 @@
49
49
  <Portal>
50
50
  <Combobox.Positioner>
51
51
  <Combobox.Content
52
- class="z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground min-w-32 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none"
52
+ class="data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground z-50 min-w-32 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none"
53
53
  data-slot="combobox-content"
54
54
  >
55
55
  <Combobox.Empty class="text-muted-foreground px-2.5 py-4 text-center text-sm">
@@ -33,7 +33,7 @@
33
33
  <Portal>
34
34
  <Menu.Positioner>
35
35
  <Menu.Content
36
- class="z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground min-w-36 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none"
36
+ class="data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground z-50 min-w-36 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none"
37
37
  data-slot="context-menu-content"
38
38
  >
39
39
  {#each items as item, i (i)}
@@ -50,7 +50,7 @@
50
50
  </DatePicker.Control>
51
51
  <DatePicker.Positioner>
52
52
  <DatePicker.Content
53
- class="z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover w-fit rounded-xl border p-3 shadow-xl backdrop-blur-xl outline-none"
53
+ class="data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover z-50 w-fit rounded-xl border p-3 shadow-xl backdrop-blur-xl outline-none"
54
54
  data-slot="date-picker-content"
55
55
  >
56
56
  <DatePicker.View view="day">
@@ -118,7 +118,7 @@
118
118
  .horizon-layout-split__ratio {
119
119
  position: absolute;
120
120
  padding: 2px 7px;
121
- border-radius: var(--radius-sm, 0.25rem);
121
+ border-radius: 0.125rem;
122
122
  background: var(--popover);
123
123
  border: 1px solid var(--border);
124
124
  color: var(--primary);
@@ -29,7 +29,7 @@
29
29
  <HoverCard.Positioner>
30
30
  <HoverCard.Content
31
31
  class={cn(
32
- 'z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground w-64 rounded-xl border p-4 shadow-xl backdrop-blur-xl outline-none',
32
+ 'data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground z-50 w-64 rounded-xl border p-4 shadow-xl backdrop-blur-xl outline-none',
33
33
  contentClass
34
34
  )}
35
35
  data-slot="hover-card-content"
@@ -279,7 +279,7 @@
279
279
  isExpanded && 'rotate-90'
280
280
  )}
281
281
  />
282
- <span class="flex-1 font-medium leading-none">{card.title}</span>
282
+ <span class="flex-1 leading-none font-medium">{card.title}</span>
283
283
  {#if card.subtitle}
284
284
  <span class="text-muted-foreground text-xs">{card.subtitle}</span>
285
285
  {/if}
@@ -296,7 +296,7 @@
296
296
  >
297
297
  <span class="grid grid-cols-2 gap-0.75 p-0.5">
298
298
  {#each [0, 1, 2, 3, 4, 5] as dot (dot)}
299
- <span class="bg-current size-0.75 rounded-full"></span>
299
+ <span class="size-0.75 rounded-full bg-current"></span>
300
300
  {/each}
301
301
  </span>
302
302
  </button>
@@ -31,7 +31,7 @@
31
31
  <Menu.Positioner>
32
32
  <Menu.Content
33
33
  class={cn(
34
- 'z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground min-w-32 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none',
34
+ 'data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground z-50 min-w-32 overflow-hidden rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none',
35
35
  contentClass
36
36
  )}
37
37
  data-slot="menu-content"
@@ -41,7 +41,7 @@
41
41
  <Popover.Positioner>
42
42
  <Popover.Content
43
43
  class={cn(
44
- 'z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border text-popover-foreground bg-popover w-72 rounded-xl border shadow-xl backdrop-blur-xl outline-none',
44
+ 'data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border text-popover-foreground bg-popover z-50 w-72 rounded-xl border shadow-xl backdrop-blur-xl outline-none',
45
45
  contentClass
46
46
  )}
47
47
  data-slot="popover-content"
@@ -58,7 +58,7 @@
58
58
  <Select.Positioner>
59
59
  <Select.Content
60
60
  class={cn(
61
- 'z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border text-popover-foreground bg-popover min-w-(--reference-width) rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none',
61
+ 'data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border text-popover-foreground bg-popover z-50 min-w-(--reference-width) rounded-xl border p-1 shadow-xl backdrop-blur-xl outline-none',
62
62
  contentClass
63
63
  )}
64
64
  data-slot="select-content"
@@ -33,7 +33,7 @@
33
33
  >
34
34
  <MingcuteLoading3Fill
35
35
  aria-hidden="true"
36
- class={cn('animate-spin shrink-0', sizes[size])}
36
+ class={cn('shrink-0 animate-spin', sizes[size])}
37
37
  data-slot="spinner"
38
38
  />
39
39
  <span data-slot="spinner-label">{label}</span>
@@ -31,7 +31,7 @@
31
31
  {#if label}
32
32
  <Tooltip.Positioner>
33
33
  <Tooltip.Content
34
- class="z-50 data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground rounded-md border px-2.5 py-1 text-xs font-medium shadow-md backdrop-blur-xl"
34
+ class="data-[state=open]:animate-zoom-in data-[state=closed]:animate-zoom-out border-border bg-popover text-popover-foreground z-50 rounded-md border px-2.5 py-1 text-xs font-medium shadow-md backdrop-blur-xl"
35
35
  >
36
36
  {label}
37
37
  </Tooltip.Content>
@@ -37,7 +37,7 @@
37
37
  <Tooltip.Positioner>
38
38
  <Tooltip.Content
39
39
  class={cn(
40
- 'z-50 animate-fade-in border-border bg-popover text-popover-foreground rounded-lg border px-3 py-1.5 text-xs shadow-xl backdrop-blur-xl',
40
+ 'animate-fade-in border-border bg-popover text-popover-foreground z-50 rounded-lg border px-3 py-1.5 text-xs shadow-xl backdrop-blur-xl',
41
41
  contentClass
42
42
  )}
43
43
  data-slot="tooltip-content"
Binary file
Binary file
@@ -1,18 +1,69 @@
1
1
  @source './components/**/*.svelte';
2
2
 
3
+ /* Each font is split into a Latin and an extended subset; the browser only downloads the
4
+ subsets whose unicode-range matches characters on the page. */
3
5
  @font-face {
4
6
  font-family: 'Encode Sans';
5
- src: url('./fonts/EncodeSans.woff2') format('woff2-variations');
7
+ src: url('./fonts/EncodeSans-latin.woff2') format('woff2-variations');
6
8
  font-weight: 100 900;
7
9
  font-stretch: 75% 125%;
8
10
  font-display: swap;
11
+ unicode-range:
12
+ U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
13
+ U+02DC, U+0304, U+0308, U+2007-200B, U+2010, U+2012-2015, U+2018-201A, U+201C-201E, U+2020-2022,
14
+ U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'Encode Sans';
19
+ src: url('./fonts/EncodeSans-latin-ext.woff2') format('woff2-variations');
20
+ font-weight: 100 900;
21
+ font-stretch: 75% 125%;
22
+ font-display: swap;
23
+ unicode-range:
24
+ U+0100-0130, U+0134-0151, U+0154-017E, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01C4-01CC,
25
+ U+01E6-01E7, U+01EA-01EB, U+01F1-01F5, U+01FA-021B, U+022A-022D, U+0230-0233, U+0237, U+0259,
26
+ U+02BE-02BF, U+02C7-02CC, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+0309-030C,
27
+ U+030F, U+0311-0312, U+031B, U+0323-0324, U+0326-0328, U+032E, U+0331, U+0394, U+03A9, U+03BC,
28
+ U+03C0, U+1E08-1E09, U+1E0C-1E0F, U+1E14-1E17, U+1E1C-1E1D, U+1E20-1E21, U+1E24-1E25,
29
+ U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E37, U+1E3A-1E3B, U+1E42-1E49, U+1E4C-1E53, U+1E5A-1E5B,
30
+ U+1E5E-1E69, U+1E6C-1E6F, U+1E78-1E7B, U+1E80-1E85, U+1E8E-1E8F, U+1E92-1E93, U+1E97, U+1E9E,
31
+ U+1EA0-1EF9, U+2070, U+2074-2079, U+2080-2089, U+20A1, U+20A3-20A4, U+20A6-20A7, U+20A9, U+20AB,
32
+ U+20AD, U+20B1-20B2, U+20B5, U+20B9-20BA, U+20BC-20BD, U+20BF, U+2113, U+2116, U+2120, U+2126,
33
+ U+212E, U+2153-2154, U+215B-215E, U+2190, U+2192, U+2202, U+2206, U+220F, U+2211, U+2219-221A,
34
+ U+221E, U+222B, U+2248, U+2260, U+2264-2265, U+25CA, U+FB01-FB02;
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'Lilex';
39
+ src: url('./fonts/Lilex-latin.woff2') format('woff2-variations');
40
+ font-weight: 100 900;
41
+ font-display: swap;
42
+ unicode-range:
43
+ U+0020-007E, U+00A0-00AC, U+00AE-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
44
+ U+0304, U+0308, U+2000-200A, U+2010-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2026,
45
+ U+2028-2029, U+202F-2030, U+2032-2033, U+2039-203A, U+2044, U+205F, U+20AC, U+2122, U+2191,
46
+ U+2193, U+2212, U+2215, U+FFFD;
9
47
  }
10
48
 
11
49
  @font-face {
12
50
  font-family: 'Lilex';
13
- src: url('./fonts/Lilex.woff2') format('woff2-variations');
51
+ src: url('./fonts/Lilex-latin-ext.woff2') format('woff2-variations');
14
52
  font-weight: 100 900;
15
53
  font-display: swap;
54
+ unicode-range:
55
+ U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01DC,
56
+ U+01EA-01EB, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+02C7, U+02D8-02D9, U+02DB, U+02DD,
57
+ U+0300-0303, U+0306-0307, U+0309-030C, U+0312, U+0315, U+031B, U+0323, U+0326-0328, U+037E,
58
+ U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE, U+0400-045F, U+0462-0463, U+046A-046B,
59
+ U+0472-0475, U+0490-04C2, U+04CF-04D9, U+04DC-04E9, U+04EE-04F9, U+0524-0525, U+0E3F,
60
+ U+1E28-1E29, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2070, U+2074-2079, U+2080-2089, U+20A1, U+20A4,
61
+ U+20A6, U+20A8-20AB, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF, U+2113,
62
+ U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190, U+2192, U+2194-2199, U+21A9-21AA,
63
+ U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211,
64
+ U+2219-221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+23FB-23FE, U+2500-259F,
65
+ U+25CA-25CB, U+25CF-25D4, U+25D6-25D7, U+25DC-25DF, U+25EF, U+2713, U+2B0E-2B11, U+2B58, U+3000,
66
+ U+E0A0-E0A2, U+E0B0-E0B3;
16
67
  }
17
68
 
18
69
  @theme inline {
@@ -321,35 +372,35 @@
321
372
  }
322
373
 
323
374
  :root {
324
- --background: oklch(0.09 0.02 264);
325
- --foreground: oklch(0.97 0.01 255);
326
- --card: oklch(0.13 0.02 264 / 0.62);
327
- --card-foreground: oklch(0.97 0.01 255);
328
- --popover: oklch(0.12 0.02 264 / 0.78);
329
- --popover-foreground: oklch(0.97 0.01 255);
330
- --primary: oklch(0.65 0.18 277);
331
- --primary-foreground: white;
332
- --secondary: oklch(0.22 0.03 265 / 0.55);
333
- --secondary-foreground: oklch(0.97 0.01 255);
334
- --muted: oklch(0.1851 0.03 265 / 0.48);
335
- --muted-foreground: oklch(0.68 0.03 255);
336
- --accent: oklch(0.22 0.05 266 / 0.65);
337
- --accent-foreground: oklch(0.97 0.01 255);
338
- --destructive: oklch(0.6 0.22 25);
339
- --destructive-foreground: white;
340
- --success: oklch(0.65 0.18 142);
341
- --warning: oklch(0.83 0.18 85);
342
- --info: oklch(0.69 0.12 220);
343
- --border: oklch(0.28 0.05 266 / 0.55);
344
- --input: oklch(0.19 0.02 264 / 0.55);
345
- --ring: oklch(0.65 0.18 277 / 0.55);
346
- --radius: 0.5rem;
347
- --slider-track: oklch(0.22 0.03 265 / 0.55);
348
- --switch-thumb: oklch(0.26 0.04 265);
349
- --primary-hover: oklch(0.72 0.18 277);
350
- --primary-glow: oklch(0.65 0.18 277 / 0.25);
351
- --primary-glow-soft: oklch(0.65 0.18 277 / 0.15);
352
- --selection-bg: oklch(0.65 0.18 277 / 0.3);
375
+ --background: #111624;
376
+ --foreground: #f1f5f9;
377
+ --card: #141a2b;
378
+ --card-foreground: #f1f5f9;
379
+ --popover: #171e32;
380
+ --popover-foreground: #f1f5f9;
381
+ --primary: #598dff;
382
+ --primary-foreground: #141414;
383
+ --secondary: #192138;
384
+ --secondary-foreground: #f1f5f9;
385
+ --muted: #182035;
386
+ --muted-foreground: #8192b0;
387
+ --accent: #1e2944;
388
+ --accent-foreground: #ffffff;
389
+ --destructive: #fc514e;
390
+ --destructive-foreground: #272727;
391
+ --success: #10b981;
392
+ --warning: #f59e0b;
393
+ --info: #38bdf8;
394
+ --border: #212c47;
395
+ --input: #151c2e;
396
+ --ring: #598dff;
397
+ --radius: 0.375rem;
398
+ --slider-track: #192138;
399
+ --switch-thumb: #243152;
400
+ --primary-hover: #4577f5;
401
+ --primary-glow: rgba(89, 141, 255, 0.25);
402
+ --primary-glow-soft: rgba(89, 141, 255, 0.15);
403
+ --selection-bg: rgba(89, 141, 255, 0.3);
353
404
  --glass-highlight: oklch(1 0 0 / 0.12);
354
405
  --glass-shadow-inset: oklch(0 0 0 / 0.08);
355
406
  --glass-highlight-strong: oklch(1 0 0 / 0.15);
@@ -390,10 +441,10 @@
390
441
  --border-muted: oklch(from var(--border) l c h / 0.6);
391
442
  --border-subtle: oklch(from var(--border) l c h / 0.7);
392
443
  --background-ghost: oklch(from var(--background) l c h / 0.2);
393
- --muted-surface-dim: oklch(from var(--muted) l c h / 0.2);
394
- --muted-surface: oklch(from var(--muted) l c h / 0.3);
395
- --muted-surface-hover: oklch(from var(--muted) l c h / 0.5);
396
- --muted-surface-active: oklch(from var(--muted) l c h / 0.7);
444
+ --muted-surface-dim: #141a2b;
445
+ --muted-surface: #182035;
446
+ --muted-surface-hover: #1e2844;
447
+ --muted-surface-active: #243152;
397
448
  --foreground-dim: oklch(from var(--foreground) l c h / 0.35);
398
449
  --muted-foreground-dim: oklch(from var(--muted-foreground) l c h / 0.64);
399
450
  --scroll-thumb: oklch(from var(--foreground) l c h / 0.25);
@@ -410,41 +461,46 @@
410
461
  --image-cropper-border: oklch(1 0 0 / 0.64);
411
462
  --image-cropper-border-active: oklch(1 0 0 / 0.84);
412
463
  --image-cropper-grid: oklch(1 0 0 / 0.4);
413
- --tab-inactive-color: color-mix(in oklch, var(--muted-foreground) 65%, transparent);
464
+ --tab-inactive-color: color-mix(in oklch, var(--muted-foreground) 88%, transparent);
414
465
  --drop-hint-border: color-mix(in oklch, var(--primary) 80%, transparent);
415
466
  --drop-hint-bg: color-mix(in oklch, var(--primary) 12%, transparent);
416
467
  }
417
468
 
418
469
  .light {
419
- --background: oklch(0.96 0.01 264);
420
- --foreground: oklch(0.13 0.02 264);
421
- --card: oklch(1 0 0 / 0.72);
422
- --card-foreground: oklch(0.13 0.02 264);
423
- --popover: oklch(0.98 0.01 264 / 0.84);
424
- --popover-foreground: oklch(0.13 0.02 264);
425
- --primary: oklch(0.55 0.18 277);
426
- --primary-foreground: white;
427
- --secondary: oklch(0.97 0.01 264 / 0.65);
428
- --secondary-foreground: oklch(0.13 0.02 264);
429
- --muted: oklch(0.92 0.015 264 / 0.62);
430
- --muted-foreground: oklch(0.42 0.04 255);
431
- --accent: oklch(0.88 0.025 264 / 0.72);
432
- --accent-foreground: oklch(0.13 0.02 264);
433
- --destructive: oklch(0.6 0.22 25);
434
- --destructive-foreground: white;
435
- --success: oklch(0.65 0.18 142);
436
- --warning: oklch(0.83 0.18 85);
437
- --info: oklch(0.69 0.12 220);
438
- --border: oklch(0.82 0.02 264 / 0.65);
439
- --input: oklch(0.9 0.02 264 / 0.65);
440
- --ring: oklch(0.55 0.18 277 / 0.55);
441
- --slider-track: oklch(0.93 0.02 264 / 0.62);
442
- --switch-thumb: oklch(0.99 0.005 264);
443
- --primary-hover: oklch(0.62 0.18 277);
444
- --primary-glow: oklch(0.55 0.18 277 / 0.25);
445
- --primary-glow-soft: oklch(0.55 0.18 277 / 0.15);
446
- --selection-bg: oklch(0.55 0.18 277 / 0.3);
470
+ --background: #f8fafc;
471
+ --foreground: #0f172a;
472
+ --card: #ffffff;
473
+ --card-foreground: #0f172a;
474
+ --popover: #ffffff;
475
+ --popover-foreground: #0f172a;
476
+ --primary: #265de9;
477
+ --primary-foreground: #ffffff;
478
+ --secondary: #f1f5f9;
479
+ --secondary-foreground: #0f172a;
480
+ --muted: #f1f5f9;
481
+ --muted-foreground: #59687f;
482
+ --accent: #e2e8f0;
483
+ --accent-foreground: #0f172a;
484
+ --destructive: #cc1a27;
485
+ --destructive-foreground: #ffffff;
486
+ --success: #007852;
487
+ --warning: #945d00;
488
+ --info: #1c64d5;
489
+ --border: oklch(0.9288 0.0126 255.5);
490
+ --input: #ffffff;
491
+ --ring: #265de9;
492
+ --slider-track: #e2e8f0;
493
+ --switch-thumb: #ffffff;
494
+ --primary-hover: #1d4ed8;
495
+ --primary-glow: rgba(38, 93, 233, 0.15);
496
+ --primary-glow-soft: rgba(38, 93, 233, 0.1);
497
+ --selection-bg: rgba(38, 93, 233, 0.15);
447
498
  --glass-blur: 14px;
499
+ --muted-surface: #f8fafc;
500
+ --muted-surface-dim: #f1f5f9;
501
+ --muted-surface-hover: #e2e8f0;
502
+ --muted-surface-active: #cbd5e1;
503
+ --tab-inactive-color: color-mix(in oklch, var(--muted-foreground) 93%, transparent);
448
504
  }
449
505
 
450
506
  @layer base {
@@ -25,52 +25,52 @@ const dark = {
25
25
  { token: 'key', foreground: '89b4fa' }
26
26
  ],
27
27
  colors: {
28
- 'editor.background': '#010207',
28
+ 'editor.background': '#111624',
29
29
  'editor.foreground': '#cdd6f4',
30
- 'editor.selectionBackground': '#767ffa4d',
31
- 'editor.inactiveSelectionBackground': '#101932a6',
32
- 'editor.lineHighlightBackground': '#0c122033',
30
+ 'editor.selectionBackground': '#598dff4d',
31
+ 'editor.inactiveSelectionBackground': '#1e2944',
32
+ 'editor.lineHighlightBackground': '#1e294433',
33
33
  'editor.lineHighlightBorder': '#00000000',
34
- 'editorCursor.foreground': '#767ffa',
35
- 'editorLineNumber.foreground': '#6c7086',
34
+ 'editorCursor.foreground': '#598dff',
35
+ 'editorLineNumber.foreground': '#8192b0',
36
36
  'editorLineNumber.activeForeground': '#cdd6f4',
37
- 'editorIndentGuide.background1': '#1d2842b3',
38
- 'editorIndentGuide.activeBackground1': '#1d28428c',
39
- 'editorBracketMatch.background': '#767ffa1a',
40
- 'editorBracketMatch.border': '#767ffa4d',
41
- 'editorGutter.background': '#010207',
42
- 'editorWidget.background': '#03060dc7',
37
+ 'editorIndentGuide.background1': '#212c47b3',
38
+ 'editorIndentGuide.activeBackground1': '#212c47',
39
+ 'editorBracketMatch.background': '#598dff1a',
40
+ 'editorBracketMatch.border': '#598dff4d',
41
+ 'editorGutter.background': '#111624',
42
+ 'editorWidget.background': '#171e32c7',
43
43
  'editorWidget.foreground': '#cdd6f4',
44
- 'editorWidget.border': '#1d28428c',
45
- 'editorSuggestWidget.background': '#03060dc7',
46
- 'editorSuggestWidget.border': '#1d28428c',
44
+ 'editorWidget.border': '#212c47',
45
+ 'editorSuggestWidget.background': '#171e32c7',
46
+ 'editorSuggestWidget.border': '#212c47',
47
47
  'editorSuggestWidget.foreground': '#cdd6f4',
48
- 'editorSuggestWidget.selectedBackground': '#767ffa1a',
48
+ 'editorSuggestWidget.selectedBackground': '#598dff1a',
49
49
  'editorSuggestWidget.selectedForeground': '#cdd6f4',
50
- 'editorSuggestWidget.highlightForeground': '#cba6f7',
51
- 'editorHoverWidget.background': '#03060dc7',
52
- 'editorHoverWidget.border': '#1d28428c',
50
+ 'editorSuggestWidget.highlightForeground': '#4577f5',
51
+ 'editorHoverWidget.background': '#171e32c7',
52
+ 'editorHoverWidget.border': '#212c47',
53
53
  'editorHoverWidget.foreground': '#cdd6f4',
54
- 'input.background': '#0f141d8c',
54
+ 'input.background': '#151c2e',
55
55
  'input.foreground': '#cdd6f4',
56
- 'input.border': '#1d28428c',
57
- 'input.placeholderForeground': '#6c7086',
58
- focusBorder: '#767ffa8c',
59
- 'list.hoverBackground': '#101932a6',
56
+ 'input.border': '#212c47',
57
+ 'input.placeholderForeground': '#8192b0',
58
+ focusBorder: '#598dff8c',
59
+ 'list.hoverBackground': '#1e2944',
60
60
  'list.hoverForeground': '#cdd6f4',
61
- 'list.activeSelectionBackground': '#767ffa1a',
61
+ 'list.activeSelectionBackground': '#598dff1a',
62
62
  'list.activeSelectionForeground': '#cdd6f4',
63
- 'list.inactiveSelectionBackground': '#0c12204d',
64
- 'list.focusBackground': '#767ffa1a',
63
+ 'list.inactiveSelectionBackground': '#1e29444d',
64
+ 'list.focusBackground': '#598dff1a',
65
65
  'list.focusForeground': '#cdd6f4',
66
- 'list.highlightForeground': '#cba6f7',
66
+ 'list.highlightForeground': '#4577f5',
67
67
  'scrollbarSlider.background': '#f1f6fc40',
68
68
  'scrollbarSlider.hoverBackground': '#f1f6fc4d',
69
69
  'scrollbarSlider.activeBackground': '#f1f6fc66',
70
70
  'scrollbar.shadow': '#00000000',
71
- 'dropdown.background': '#03060dc7',
71
+ 'dropdown.background': '#171e32c7',
72
72
  'dropdown.foreground': '#cdd6f4',
73
- 'dropdown.border': '#1d28428c'
73
+ 'dropdown.border': '#212c47'
74
74
  }
75
75
  };
76
76
  const light = {
@@ -100,52 +100,52 @@ const light = {
100
100
  { token: 'key', foreground: '1e66f5' }
101
101
  ],
102
102
  colors: {
103
- 'editor.background': '#eef2f9',
103
+ 'editor.background': '#f8fafc',
104
104
  'editor.foreground': '#4c4f69',
105
- 'editor.selectionBackground': '#5b60d74d',
106
- 'editor.inactiveSelectionBackground': '#cfd8e9b8',
107
- 'editor.lineHighlightBackground': '#dfe5ef33',
105
+ 'editor.selectionBackground': '#265de94d',
106
+ 'editor.inactiveSelectionBackground': '#e2e8f0b8',
107
+ 'editor.lineHighlightBackground': '#e2e8f033',
108
108
  'editor.lineHighlightBorder': '#00000000',
109
- 'editorCursor.foreground': '#5b60d7',
110
- 'editorLineNumber.foreground': '#9ca0b0',
109
+ 'editorCursor.foreground': '#265de9',
110
+ 'editorLineNumber.foreground': '#59687f',
111
111
  'editorLineNumber.activeForeground': '#4c4f69',
112
- 'editorIndentGuide.background1': '#bec4d2b3',
113
- 'editorIndentGuide.activeBackground1': '#bec4d2a6',
114
- 'editorBracketMatch.background': '#5b60d71a',
115
- 'editorBracketMatch.border': '#5b60d74d',
116
- 'editorGutter.background': '#eef2f9',
117
- 'editorWidget.background': '#f5f9ffd6',
112
+ 'editorIndentGuide.background1': '#e2e8f0b3',
113
+ 'editorIndentGuide.activeBackground1': '#e2e8f0',
114
+ 'editorBracketMatch.background': '#265de91a',
115
+ 'editorBracketMatch.border': '#265de94d',
116
+ 'editorGutter.background': '#f8fafc',
117
+ 'editorWidget.background': '#ffffffd6',
118
118
  'editorWidget.foreground': '#4c4f69',
119
- 'editorWidget.border': '#bec4d2a6',
120
- 'editorSuggestWidget.background': '#f5f9ffd6',
121
- 'editorSuggestWidget.border': '#bec4d2a6',
119
+ 'editorWidget.border': '#e2e8f0',
120
+ 'editorSuggestWidget.background': '#ffffffd6',
121
+ 'editorSuggestWidget.border': '#e2e8f0',
122
122
  'editorSuggestWidget.foreground': '#4c4f69',
123
- 'editorSuggestWidget.selectedBackground': '#5b60d71a',
123
+ 'editorSuggestWidget.selectedBackground': '#265de91a',
124
124
  'editorSuggestWidget.selectedForeground': '#4c4f69',
125
- 'editorSuggestWidget.highlightForeground': '#8839ef',
126
- 'editorHoverWidget.background': '#f5f9ffd6',
127
- 'editorHoverWidget.border': '#bec4d2a6',
125
+ 'editorSuggestWidget.highlightForeground': '#1d4ed8',
126
+ 'editorHoverWidget.background': '#ffffffd6',
127
+ 'editorHoverWidget.border': '#e2e8f0',
128
128
  'editorHoverWidget.foreground': '#4c4f69',
129
- 'input.background': '#d1d8e5a6',
129
+ 'input.background': '#ffffff',
130
130
  'input.foreground': '#4c4f69',
131
- 'input.border': '#bec4d2a6',
132
- 'input.placeholderForeground': '#9ca0b0',
133
- focusBorder: '#5b60d78c',
134
- 'list.hoverBackground': '#cfd8e9b8',
131
+ 'input.border': '#e2e8f0',
132
+ 'input.placeholderForeground': '#59687f',
133
+ focusBorder: '#265de98c',
134
+ 'list.hoverBackground': '#e2e8f0b8',
135
135
  'list.hoverForeground': '#4c4f69',
136
- 'list.activeSelectionBackground': '#5b60d71a',
136
+ 'list.activeSelectionBackground': '#265de91a',
137
137
  'list.activeSelectionForeground': '#4c4f69',
138
- 'list.inactiveSelectionBackground': '#dfe5ef4d',
139
- 'list.focusBackground': '#5b60d71a',
138
+ 'list.inactiveSelectionBackground': '#e2e8f04d',
139
+ 'list.focusBackground': '#265de91a',
140
140
  'list.focusForeground': '#4c4f69',
141
- 'list.highlightForeground': '#8839ef',
141
+ 'list.highlightForeground': '#1d4ed8',
142
142
  'scrollbarSlider.background': '#04070f40',
143
143
  'scrollbarSlider.hoverBackground': '#04070f4d',
144
144
  'scrollbarSlider.activeBackground': '#04070f66',
145
145
  'scrollbar.shadow': '#00000000',
146
- 'dropdown.background': '#f5f9ffd6',
146
+ 'dropdown.background': '#ffffffd6',
147
147
  'dropdown.foreground': '#4c4f69',
148
- 'dropdown.border': '#bec4d2a6'
148
+ 'dropdown.border': '#e2e8f0'
149
149
  }
150
150
  };
151
151
  export function createMonacoTheme() {
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "horizon-design",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
+ "keywords": [
5
+ "svelte"
6
+ ],
7
+ "homepage": "https://play-horizon.github.io/horizon-design",
8
+ "license": "MIT",
4
9
  "repository": {
5
10
  "type": "git",
6
- "url": "https://github.com/horizon-engine/horizon-design"
11
+ "url": "https://github.com/play-horizon/horizon-design"
7
12
  },
8
13
  "scripts": {
9
14
  "dev": "vite dev",
@@ -43,40 +48,36 @@
43
48
  "svelte": "^5.0.0"
44
49
  },
45
50
  "devDependencies": {
46
- "@eslint/compat": "^2.1.0",
51
+ "@eslint/compat": "^2.1.1",
47
52
  "@eslint/js": "^10.0.1",
48
- "@iconify-json/mingcute": "^1.2.7",
49
- "@sveltejs/adapter-auto": "^7.0.1",
50
- "@sveltejs/kit": "^2.65.0",
53
+ "@iconify-json/mingcute": "^1.2.8",
54
+ "@sveltejs/adapter-static": "^3.0.10",
55
+ "@sveltejs/kit": "^2.70.3",
51
56
  "@sveltejs/package": "^2.5.8",
52
- "@sveltejs/vite-plugin-svelte": "^7.1.2",
53
- "@tailwindcss/vite": "^4.3.1",
54
- "@types/node": "^25.9.3",
55
- "eslint": "^10.5.0",
57
+ "@sveltejs/vite-plugin-svelte": "^7.3.1",
58
+ "@tailwindcss/vite": "^4.3.3",
59
+ "@types/node": "^25.9.9",
60
+ "eslint": "^10.12.0",
56
61
  "eslint-config-prettier": "^10.1.8",
57
- "eslint-plugin-svelte": "^3.19.0",
58
- "globals": "^17.6.0",
59
- "prettier": "^3.8.4",
60
- "prettier-plugin-svelte": "^4.1.0",
61
- "prettier-plugin-tailwindcss": "^0.8.0",
62
- "publint": "^0.3.21",
63
- "svelte": "^5.56.3",
64
- "svelte-check": "^4.6.0",
65
- "tailwindcss": "^4.3.1",
62
+ "eslint-plugin-svelte": "^3.23.0",
63
+ "globals": "^17.13.0",
64
+ "prettier": "^3.9.9",
65
+ "prettier-plugin-svelte": "^4.1.1",
66
+ "prettier-plugin-tailwindcss": "^0.8.1",
67
+ "publint": "^0.3.25",
68
+ "svelte": "^5.57.1",
69
+ "svelte-check": "^4.7.6",
70
+ "tailwindcss": "^4.3.3",
66
71
  "typescript": "^6.0.3",
67
- "typescript-eslint": "^8.61.0",
72
+ "typescript-eslint": "^8.71.0",
68
73
  "unplugin-icons": "^23.0.1",
69
- "vite": "^8.0.16"
74
+ "vite": "^8.3.2"
70
75
  },
71
- "keywords": [
72
- "svelte"
73
- ],
74
76
  "dependencies": {
75
- "@ark-ui/svelte": "^5.22.1",
77
+ "@ark-ui/svelte": "^5.24.2",
76
78
  "clsx": "^2.1.1",
77
79
  "esm-env": "^1.2.2",
78
- "horizon-layout": "^1.0.0",
79
- "tailwind-merge": "^3.6.0"
80
- },
81
- "license": "MIT"
80
+ "horizon-layout": "^1.0.3",
81
+ "tailwind-merge": "^3.7.0"
82
+ }
82
83
  }
Binary file
Binary file