horizon-design 0.0.22 → 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 +32 -24
- package/dist/components/button/Button.svelte +1 -1
- package/dist/components/color-picker/ColorPicker.svelte +1 -1
- package/dist/components/combobox/Combobox.svelte +1 -1
- package/dist/components/context-menu/ContextMenu.svelte +1 -1
- package/dist/components/date-picker/DatePicker.svelte +1 -1
- package/dist/components/horizon-layout/horizon-layout.css +1 -1
- package/dist/components/hover-card/HoverCard.svelte +1 -1
- package/dist/components/inspector-panel/InspectorPanel.svelte +2 -2
- package/dist/components/menu/Menu.svelte +1 -1
- package/dist/components/popover/Popover.svelte +1 -1
- package/dist/components/select/Select.svelte +1 -1
- package/dist/components/spinner/Spinner.svelte +1 -1
- package/dist/components/toggle-tooltip/ToggleTooltip.svelte +1 -1
- package/dist/components/tooltip/Tooltip.svelte +1 -1
- package/dist/fonts/EncodeSans-latin-ext.woff2 +0 -0
- package/dist/fonts/EncodeSans-latin.woff2 +0 -0
- package/dist/fonts/Lilex-latin-ext.woff2 +0 -0
- package/dist/fonts/Lilex-latin.woff2 +0 -0
- package/dist/horizon-design.css +120 -64
- package/dist/monaco-theme.js +60 -60
- package/package.json +30 -29
- package/dist/fonts/EncodeSans.woff2 +0 -0
- package/dist/fonts/Lilex.woff2 +0 -0
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
|
|
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)
|
|
2452
|
-
| ---------------------- |
|
|
2453
|
-
| `--background` | `
|
|
2454
|
-
| `--foreground` | `
|
|
2455
|
-
| `--primary` | `
|
|
2456
|
-
| `--primary-foreground` | `
|
|
2457
|
-
| `--
|
|
2458
|
-
| `--
|
|
2459
|
-
| `--muted
|
|
2460
|
-
| `--
|
|
2461
|
-
| `--
|
|
2462
|
-
| `--
|
|
2463
|
-
| `--
|
|
2464
|
-
| `--
|
|
2465
|
-
| `--
|
|
2466
|
-
| `--
|
|
2467
|
-
| `--
|
|
2468
|
-
| `--
|
|
2469
|
-
| `--
|
|
2470
|
-
| `--
|
|
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
|
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</ColorPicker.Control>
|
|
46
46
|
<ColorPicker.Positioner>
|
|
47
47
|
<ColorPicker.Content
|
|
48
|
-
class="
|
|
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="
|
|
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="
|
|
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="
|
|
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">
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<HoverCard.Positioner>
|
|
30
30
|
<HoverCard.Content
|
|
31
31
|
class={cn(
|
|
32
|
-
'
|
|
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
|
|
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="
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
{#if label}
|
|
32
32
|
<Tooltip.Positioner>
|
|
33
33
|
<Tooltip.Content
|
|
34
|
-
class="
|
|
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
|
-
'
|
|
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
|
|
Binary file
|
|
Binary file
|
package/dist/horizon-design.css
CHANGED
|
@@ -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:
|
|
325
|
-
--foreground:
|
|
326
|
-
--card:
|
|
327
|
-
--card-foreground:
|
|
328
|
-
--popover:
|
|
329
|
-
--popover-foreground:
|
|
330
|
-
--primary:
|
|
331
|
-
--primary-foreground:
|
|
332
|
-
--secondary:
|
|
333
|
-
--secondary-foreground:
|
|
334
|
-
--muted:
|
|
335
|
-
--muted-foreground:
|
|
336
|
-
--accent:
|
|
337
|
-
--accent-foreground:
|
|
338
|
-
--destructive:
|
|
339
|
-
--destructive-foreground:
|
|
340
|
-
--success:
|
|
341
|
-
--warning:
|
|
342
|
-
--info:
|
|
343
|
-
--border:
|
|
344
|
-
--input:
|
|
345
|
-
--ring:
|
|
346
|
-
--radius: 0.
|
|
347
|
-
--slider-track:
|
|
348
|
-
--switch-thumb:
|
|
349
|
-
--primary-hover:
|
|
350
|
-
--primary-glow:
|
|
351
|
-
--primary-glow-soft:
|
|
352
|
-
--selection-bg:
|
|
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:
|
|
394
|
-
--muted-surface:
|
|
395
|
-
--muted-surface-hover:
|
|
396
|
-
--muted-surface-active:
|
|
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)
|
|
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:
|
|
420
|
-
--foreground:
|
|
421
|
-
--card:
|
|
422
|
-
--card-foreground:
|
|
423
|
-
--popover:
|
|
424
|
-
--popover-foreground:
|
|
425
|
-
--primary:
|
|
426
|
-
--primary-foreground:
|
|
427
|
-
--secondary:
|
|
428
|
-
--secondary-foreground:
|
|
429
|
-
--muted:
|
|
430
|
-
--muted-foreground:
|
|
431
|
-
--accent:
|
|
432
|
-
--accent-foreground:
|
|
433
|
-
--destructive:
|
|
434
|
-
--destructive-foreground:
|
|
435
|
-
--success:
|
|
436
|
-
--warning:
|
|
437
|
-
--info:
|
|
438
|
-
--border: oklch(0.
|
|
439
|
-
--input:
|
|
440
|
-
--ring:
|
|
441
|
-
--slider-track:
|
|
442
|
-
--switch-thumb:
|
|
443
|
-
--primary-hover:
|
|
444
|
-
--primary-glow:
|
|
445
|
-
--primary-glow-soft:
|
|
446
|
-
--selection-bg:
|
|
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 {
|
package/dist/monaco-theme.js
CHANGED
|
@@ -25,52 +25,52 @@ const dark = {
|
|
|
25
25
|
{ token: 'key', foreground: '89b4fa' }
|
|
26
26
|
],
|
|
27
27
|
colors: {
|
|
28
|
-
'editor.background': '#
|
|
28
|
+
'editor.background': '#111624',
|
|
29
29
|
'editor.foreground': '#cdd6f4',
|
|
30
|
-
'editor.selectionBackground': '#
|
|
31
|
-
'editor.inactiveSelectionBackground': '#
|
|
32
|
-
'editor.lineHighlightBackground': '#
|
|
30
|
+
'editor.selectionBackground': '#598dff4d',
|
|
31
|
+
'editor.inactiveSelectionBackground': '#1e2944',
|
|
32
|
+
'editor.lineHighlightBackground': '#1e294433',
|
|
33
33
|
'editor.lineHighlightBorder': '#00000000',
|
|
34
|
-
'editorCursor.foreground': '#
|
|
35
|
-
'editorLineNumber.foreground': '#
|
|
34
|
+
'editorCursor.foreground': '#598dff',
|
|
35
|
+
'editorLineNumber.foreground': '#8192b0',
|
|
36
36
|
'editorLineNumber.activeForeground': '#cdd6f4',
|
|
37
|
-
'editorIndentGuide.background1': '#
|
|
38
|
-
'editorIndentGuide.activeBackground1': '#
|
|
39
|
-
'editorBracketMatch.background': '#
|
|
40
|
-
'editorBracketMatch.border': '#
|
|
41
|
-
'editorGutter.background': '#
|
|
42
|
-
'editorWidget.background': '#
|
|
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': '#
|
|
45
|
-
'editorSuggestWidget.background': '#
|
|
46
|
-
'editorSuggestWidget.border': '#
|
|
44
|
+
'editorWidget.border': '#212c47',
|
|
45
|
+
'editorSuggestWidget.background': '#171e32c7',
|
|
46
|
+
'editorSuggestWidget.border': '#212c47',
|
|
47
47
|
'editorSuggestWidget.foreground': '#cdd6f4',
|
|
48
|
-
'editorSuggestWidget.selectedBackground': '#
|
|
48
|
+
'editorSuggestWidget.selectedBackground': '#598dff1a',
|
|
49
49
|
'editorSuggestWidget.selectedForeground': '#cdd6f4',
|
|
50
|
-
'editorSuggestWidget.highlightForeground': '#
|
|
51
|
-
'editorHoverWidget.background': '#
|
|
52
|
-
'editorHoverWidget.border': '#
|
|
50
|
+
'editorSuggestWidget.highlightForeground': '#4577f5',
|
|
51
|
+
'editorHoverWidget.background': '#171e32c7',
|
|
52
|
+
'editorHoverWidget.border': '#212c47',
|
|
53
53
|
'editorHoverWidget.foreground': '#cdd6f4',
|
|
54
|
-
'input.background': '#
|
|
54
|
+
'input.background': '#151c2e',
|
|
55
55
|
'input.foreground': '#cdd6f4',
|
|
56
|
-
'input.border': '#
|
|
57
|
-
'input.placeholderForeground': '#
|
|
58
|
-
focusBorder: '#
|
|
59
|
-
'list.hoverBackground': '#
|
|
56
|
+
'input.border': '#212c47',
|
|
57
|
+
'input.placeholderForeground': '#8192b0',
|
|
58
|
+
focusBorder: '#598dff8c',
|
|
59
|
+
'list.hoverBackground': '#1e2944',
|
|
60
60
|
'list.hoverForeground': '#cdd6f4',
|
|
61
|
-
'list.activeSelectionBackground': '#
|
|
61
|
+
'list.activeSelectionBackground': '#598dff1a',
|
|
62
62
|
'list.activeSelectionForeground': '#cdd6f4',
|
|
63
|
-
'list.inactiveSelectionBackground': '#
|
|
64
|
-
'list.focusBackground': '#
|
|
63
|
+
'list.inactiveSelectionBackground': '#1e29444d',
|
|
64
|
+
'list.focusBackground': '#598dff1a',
|
|
65
65
|
'list.focusForeground': '#cdd6f4',
|
|
66
|
-
'list.highlightForeground': '#
|
|
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': '#
|
|
71
|
+
'dropdown.background': '#171e32c7',
|
|
72
72
|
'dropdown.foreground': '#cdd6f4',
|
|
73
|
-
'dropdown.border': '#
|
|
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': '#
|
|
103
|
+
'editor.background': '#f8fafc',
|
|
104
104
|
'editor.foreground': '#4c4f69',
|
|
105
|
-
'editor.selectionBackground': '#
|
|
106
|
-
'editor.inactiveSelectionBackground': '#
|
|
107
|
-
'editor.lineHighlightBackground': '#
|
|
105
|
+
'editor.selectionBackground': '#265de94d',
|
|
106
|
+
'editor.inactiveSelectionBackground': '#e2e8f0b8',
|
|
107
|
+
'editor.lineHighlightBackground': '#e2e8f033',
|
|
108
108
|
'editor.lineHighlightBorder': '#00000000',
|
|
109
|
-
'editorCursor.foreground': '#
|
|
110
|
-
'editorLineNumber.foreground': '#
|
|
109
|
+
'editorCursor.foreground': '#265de9',
|
|
110
|
+
'editorLineNumber.foreground': '#59687f',
|
|
111
111
|
'editorLineNumber.activeForeground': '#4c4f69',
|
|
112
|
-
'editorIndentGuide.background1': '#
|
|
113
|
-
'editorIndentGuide.activeBackground1': '#
|
|
114
|
-
'editorBracketMatch.background': '#
|
|
115
|
-
'editorBracketMatch.border': '#
|
|
116
|
-
'editorGutter.background': '#
|
|
117
|
-
'editorWidget.background': '#
|
|
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': '#
|
|
120
|
-
'editorSuggestWidget.background': '#
|
|
121
|
-
'editorSuggestWidget.border': '#
|
|
119
|
+
'editorWidget.border': '#e2e8f0',
|
|
120
|
+
'editorSuggestWidget.background': '#ffffffd6',
|
|
121
|
+
'editorSuggestWidget.border': '#e2e8f0',
|
|
122
122
|
'editorSuggestWidget.foreground': '#4c4f69',
|
|
123
|
-
'editorSuggestWidget.selectedBackground': '#
|
|
123
|
+
'editorSuggestWidget.selectedBackground': '#265de91a',
|
|
124
124
|
'editorSuggestWidget.selectedForeground': '#4c4f69',
|
|
125
|
-
'editorSuggestWidget.highlightForeground': '#
|
|
126
|
-
'editorHoverWidget.background': '#
|
|
127
|
-
'editorHoverWidget.border': '#
|
|
125
|
+
'editorSuggestWidget.highlightForeground': '#1d4ed8',
|
|
126
|
+
'editorHoverWidget.background': '#ffffffd6',
|
|
127
|
+
'editorHoverWidget.border': '#e2e8f0',
|
|
128
128
|
'editorHoverWidget.foreground': '#4c4f69',
|
|
129
|
-
'input.background': '#
|
|
129
|
+
'input.background': '#ffffff',
|
|
130
130
|
'input.foreground': '#4c4f69',
|
|
131
|
-
'input.border': '#
|
|
132
|
-
'input.placeholderForeground': '#
|
|
133
|
-
focusBorder: '#
|
|
134
|
-
'list.hoverBackground': '#
|
|
131
|
+
'input.border': '#e2e8f0',
|
|
132
|
+
'input.placeholderForeground': '#59687f',
|
|
133
|
+
focusBorder: '#265de98c',
|
|
134
|
+
'list.hoverBackground': '#e2e8f0b8',
|
|
135
135
|
'list.hoverForeground': '#4c4f69',
|
|
136
|
-
'list.activeSelectionBackground': '#
|
|
136
|
+
'list.activeSelectionBackground': '#265de91a',
|
|
137
137
|
'list.activeSelectionForeground': '#4c4f69',
|
|
138
|
-
'list.inactiveSelectionBackground': '#
|
|
139
|
-
'list.focusBackground': '#
|
|
138
|
+
'list.inactiveSelectionBackground': '#e2e8f04d',
|
|
139
|
+
'list.focusBackground': '#265de91a',
|
|
140
140
|
'list.focusForeground': '#4c4f69',
|
|
141
|
-
'list.highlightForeground': '#
|
|
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': '#
|
|
146
|
+
'dropdown.background': '#ffffffd6',
|
|
147
147
|
'dropdown.foreground': '#4c4f69',
|
|
148
|
-
'dropdown.border': '#
|
|
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.
|
|
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
|
|
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.
|
|
51
|
+
"@eslint/compat": "^2.1.1",
|
|
47
52
|
"@eslint/js": "^10.0.1",
|
|
48
|
-
"@iconify-json/mingcute": "^1.2.
|
|
49
|
-
"@sveltejs/adapter-
|
|
50
|
-
"@sveltejs/kit": "^2.
|
|
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
|
|
53
|
-
"@tailwindcss/vite": "^4.3.
|
|
54
|
-
"@types/node": "^25.9.
|
|
55
|
-
"eslint": "^10.
|
|
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.
|
|
58
|
-
"globals": "^17.
|
|
59
|
-
"prettier": "^3.
|
|
60
|
-
"prettier-plugin-svelte": "^4.1.
|
|
61
|
-
"prettier-plugin-tailwindcss": "^0.8.
|
|
62
|
-
"publint": "^0.3.
|
|
63
|
-
"svelte": "^5.
|
|
64
|
-
"svelte-check": "^4.6
|
|
65
|
-
"tailwindcss": "^4.3.
|
|
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.
|
|
72
|
+
"typescript-eslint": "^8.71.0",
|
|
68
73
|
"unplugin-icons": "^23.0.1",
|
|
69
|
-
"vite": "^8.
|
|
74
|
+
"vite": "^8.3.2"
|
|
70
75
|
},
|
|
71
|
-
"keywords": [
|
|
72
|
-
"svelte"
|
|
73
|
-
],
|
|
74
76
|
"dependencies": {
|
|
75
|
-
"@ark-ui/svelte": "^5.
|
|
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.
|
|
79
|
-
"tailwind-merge": "^3.
|
|
80
|
-
}
|
|
81
|
-
"license": "MIT"
|
|
80
|
+
"horizon-layout": "^1.0.3",
|
|
81
|
+
"tailwind-merge": "^3.7.0"
|
|
82
|
+
}
|
|
82
83
|
}
|
|
Binary file
|
package/dist/fonts/Lilex.woff2
DELETED
|
Binary file
|