@skewedaspect/sleekspace-ui 0.9.1 → 0.10.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/components/Accordion/context.d.ts +4 -0
- package/dist/components/Autocomplete/SkAutocomplete.vue.d.ts +87 -0
- package/dist/components/Autocomplete/SkAutocompleteEmpty.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteGroup.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteGroupLabel.vue.d.ts +17 -0
- package/dist/components/Autocomplete/SkAutocompleteItem.vue.d.ts +39 -0
- package/dist/components/Autocomplete/SkAutocompleteSeparator.vue.d.ts +2 -0
- package/dist/components/Autocomplete/index.d.ts +7 -0
- package/dist/components/Autocomplete/types.d.ts +3 -0
- package/dist/components/Breadcrumbs/context.d.ts +4 -0
- package/dist/components/Button/SkButton.vue.d.ts +8 -1
- package/dist/components/Button/types.d.ts +2 -0
- package/dist/components/Card/SkCard.vue.d.ts +1 -1
- package/dist/components/ContextMenu/context.d.ts +3 -0
- package/dist/components/Dropdown/SkDropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown/context.d.ts +3 -0
- package/dist/components/Field/SkField.vue.d.ts +7 -6
- package/dist/components/Input/SkInput.vue.d.ts +9 -2
- package/dist/components/Input/types.d.ts +2 -0
- package/dist/components/InputGroup/SkInputGroup.vue.d.ts +23 -0
- package/dist/components/InputGroup/SkInputGroupAddon.vue.d.ts +33 -0
- package/dist/components/InputGroup/types.d.ts +13 -0
- package/dist/components/NumberInput/SkNumberInput.vue.d.ts +7 -1
- package/dist/components/NumberInput/types.d.ts +2 -0
- package/dist/components/Pagination/context.d.ts +5 -0
- package/dist/components/Panel/SkPanel.vue.d.ts +1 -1
- package/dist/components/Panel/types.d.ts +2 -1
- package/dist/components/Radio/context.d.ts +4 -0
- package/dist/components/Select/SkSelect.vue.d.ts +7 -1
- package/dist/components/Select/types.d.ts +2 -0
- package/dist/components/Sidebar/SkSidebar.vue.d.ts +1 -1
- package/dist/components/Tabs/context.d.ts +6 -0
- package/dist/components/Textarea/SkTextarea.vue.d.ts +1 -1
- package/dist/components/Tooltip/SkTooltip.vue.d.ts +1 -1
- package/dist/composables/injectionKeys.d.ts +9 -0
- package/dist/global.d.ts +4 -0
- package/dist/index.d.ts +18 -0
- package/dist/sleekspace-ui.css +831 -277
- package/dist/sleekspace-ui.es.js +3693 -2514
- package/dist/sleekspace-ui.umd.js +3700 -2513
- package/dist/static/components/alert.d.ts +2 -1
- package/dist/static/components/avatar.d.ts +2 -1
- package/dist/static/components/breadcrumbs.d.ts +2 -1
- package/dist/static/components/button.d.ts +4 -2
- package/dist/static/components/card.d.ts +2 -1
- package/dist/static/components/checkbox.d.ts +2 -1
- package/dist/static/components/colorPicker.d.ts +2 -1
- package/dist/static/components/divider.d.ts +2 -1
- package/dist/static/components/dropdown.d.ts +2 -1
- package/dist/static/components/field.d.ts +2 -1
- package/dist/static/components/group.d.ts +2 -1
- package/dist/static/components/input.d.ts +4 -2
- package/dist/static/components/inputGroup.d.ts +8 -0
- package/dist/static/components/inputGroupAddon.d.ts +7 -0
- package/dist/static/components/navBar.d.ts +2 -1
- package/dist/static/components/numberInput.d.ts +4 -2
- package/dist/static/components/page.d.ts +2 -1
- package/dist/static/components/pagination.d.ts +2 -1
- package/dist/static/components/panel.d.ts +2 -1
- package/dist/static/components/progress.d.ts +2 -1
- package/dist/static/components/radio.d.ts +2 -1
- package/dist/static/components/select.d.ts +4 -2
- package/dist/static/components/sidebar.d.ts +2 -1
- package/dist/static/components/skeleton.d.ts +2 -1
- package/dist/static/components/slider.d.ts +2 -1
- package/dist/static/components/spinner.d.ts +2 -1
- package/dist/static/components/switchInput.d.ts +2 -1
- package/dist/static/components/table.d.ts +2 -1
- package/dist/static/components/tag.d.ts +2 -1
- package/dist/static/components/tagsInput.d.ts +2 -1
- package/dist/static/components/textarea.d.ts +2 -1
- package/dist/static/components/toolbar.d.ts +2 -1
- package/dist/static/components/tooltip.d.ts +2 -1
- package/dist/static/h.d.ts +2 -0
- package/dist/static/index.cjs.js +1 -1
- package/dist/static/index.d.ts +6 -0
- package/dist/static/index.es.js +366 -216
- package/dist/static/render.d.ts +2 -1
- package/dist/static/stringH.d.ts +2 -0
- package/dist/static/types.d.ts +5 -0
- package/dist/tailwind.css +222 -0
- package/dist/tokens.css +0 -223
- package/dist/types/corners.d.ts +1 -0
- package/llms-full.txt +14 -9
- package/package.json +6 -3
- package/src/components/Accordion/SkAccordion.vue +5 -2
- package/src/components/Accordion/SkAccordionItem.vue +7 -4
- package/src/components/Accordion/context.ts +23 -0
- package/src/components/Autocomplete/SkAutocomplete.test.ts +83 -0
- package/src/components/Autocomplete/SkAutocomplete.vue +305 -0
- package/src/components/Autocomplete/SkAutocompleteEmpty.vue +39 -0
- package/src/components/Autocomplete/SkAutocompleteGroup.vue +46 -0
- package/src/components/Autocomplete/SkAutocompleteGroupLabel.vue +39 -0
- package/src/components/Autocomplete/SkAutocompleteItem.vue +85 -0
- package/src/components/Autocomplete/SkAutocompleteSeparator.vue +39 -0
- package/src/components/Autocomplete/index.ts +13 -0
- package/src/components/Autocomplete/types.ts +10 -0
- package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +8 -3
- package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +8 -2
- package/src/components/Breadcrumbs/SkBreadcrumbs.vue +5 -2
- package/src/components/Breadcrumbs/context.ts +20 -0
- package/src/components/Button/SkButton.vue +46 -6
- package/src/components/Button/types.ts +6 -0
- package/src/components/ColorPicker/SkColorPicker.vue +27 -5
- package/src/components/ContextMenu/SkContextMenu.vue +4 -1
- package/src/components/ContextMenu/SkContextMenuSubmenu.vue +5 -2
- package/src/components/ContextMenu/context.ts +17 -0
- package/src/components/Dropdown/SkDropdown.vue +2 -1
- package/src/components/Dropdown/SkDropdownSubmenu.vue +4 -3
- package/src/components/Dropdown/context.ts +16 -0
- package/src/components/Field/SkField.test.ts +88 -0
- package/src/components/Field/SkField.vue +15 -7
- package/src/components/Input/SkInput.test.ts +61 -0
- package/src/components/Input/SkInput.vue +42 -7
- package/src/components/Input/types.ts +2 -0
- package/src/components/InputGroup/SkInputGroup.test.ts +171 -0
- package/src/components/InputGroup/SkInputGroup.vue +131 -0
- package/src/components/InputGroup/SkInputGroupAddon.test.ts +104 -0
- package/src/components/InputGroup/SkInputGroupAddon.vue +107 -0
- package/src/components/InputGroup/types.ts +27 -0
- package/src/components/Listbox/SkListbox.vue +27 -6
- package/src/components/NumberInput/SkNumberInput.vue +39 -7
- package/src/components/NumberInput/types.ts +2 -0
- package/src/components/Pagination/SkPagination.vue +6 -3
- package/src/components/Pagination/SkPaginationItem.vue +8 -5
- package/src/components/Pagination/context.ts +19 -0
- package/src/components/Panel/types.ts +3 -2
- package/src/components/Radio/SkRadio.vue +6 -3
- package/src/components/Radio/SkRadioGroup.vue +4 -2
- package/src/components/Radio/context.ts +17 -0
- package/src/components/Select/SkSelect.vue +39 -7
- package/src/components/Select/types.ts +2 -0
- package/src/components/Tabs/SkTab.vue +4 -2
- package/src/components/Tabs/SkTabList.vue +4 -2
- package/src/components/Tabs/SkTabs.vue +5 -3
- package/src/components/Tabs/context.ts +19 -0
- package/src/components/TagsInput/SkTagsInput.vue +28 -7
- package/src/components/Textarea/SkTextarea.vue +27 -6
- package/src/composables/injectionKeys.ts +52 -0
- package/src/index.ts +28 -0
- package/src/static/__tests__/parity.test.ts +2 -1
- package/src/static/__tests__/parityHarness.ts +5 -2
- package/src/static/components/__tests__/helpers.test.ts +191 -99
- package/src/static/components/alert.ts +12 -11
- package/src/static/components/avatar.ts +15 -16
- package/src/static/components/breadcrumbs.ts +3 -2
- package/src/static/components/button.ts +23 -27
- package/src/static/components/card.ts +3 -2
- package/src/static/components/checkbox.ts +11 -14
- package/src/static/components/colorPicker.ts +7 -9
- package/src/static/components/divider.ts +4 -3
- package/src/static/components/dropdown.ts +15 -6
- package/src/static/components/field.ts +32 -15
- package/src/static/components/group.ts +3 -2
- package/src/static/components/input.ts +20 -15
- package/src/static/components/inputGroup.ts +30 -0
- package/src/static/components/inputGroupAddon.ts +29 -0
- package/src/static/components/navBar.ts +30 -17
- package/src/static/components/numberInput.ts +17 -17
- package/src/static/components/page.ts +3 -2
- package/src/static/components/pagination.ts +3 -2
- package/src/static/components/panel.ts +3 -2
- package/src/static/components/progress.ts +3 -2
- package/src/static/components/radio.ts +14 -20
- package/src/static/components/select.ts +18 -15
- package/src/static/components/sidebar.ts +9 -13
- package/src/static/components/skeleton.ts +7 -10
- package/src/static/components/slider.ts +7 -9
- package/src/static/components/spinner.ts +22 -22
- package/src/static/components/switchInput.ts +12 -14
- package/src/static/components/table.ts +8 -10
- package/src/static/components/tag.ts +17 -11
- package/src/static/components/tagsInput.ts +3 -3
- package/src/static/components/textarea.ts +8 -13
- package/src/static/components/toolbar.ts +7 -10
- package/src/static/components/tooltip.ts +3 -2
- package/src/static/generated/defaults.ts +24 -9
- package/src/static/generated/propTypes.ts +18 -2
- package/src/static/h.ts +16 -0
- package/src/static/index.ts +8 -0
- package/src/static/render.test.ts +14 -10
- package/src/static/render.ts +33 -18
- package/src/static/specs.test.ts +1 -0
- package/src/static/specs.ts +22 -2
- package/src/static/stringH.ts +104 -0
- package/src/static/types.ts +25 -0
- package/src/styles/components/_autocomplete.scss +498 -0
- package/src/styles/components/_button.scss +55 -6
- package/src/styles/components/_index.scss +2 -0
- package/src/styles/components/_input-group.scss +292 -0
- package/src/styles/components/_input.scss +57 -9
- package/src/styles/components/_number-input.scss +84 -18
- package/src/styles/components/_select.scss +56 -9
- package/src/styles/mixins/_cut-border.scss +83 -0
- package/src/styles/tailwind.scss +262 -0
- package/src/styles/tokens.scss +8 -255
- package/src/types/corners.ts +10 -0
- package/src/utils/slots.test.ts +89 -0
- package/src/utils/slots.ts +6 -1
- package/web-types.json +382 -12
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../mixins/cut-border' as *;
|
|
2
|
+
@use '../mixins/dual-selector' as *;
|
|
2
3
|
@use '../theme/variables' as *;
|
|
3
4
|
|
|
4
5
|
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -11,6 +12,12 @@
|
|
|
11
12
|
--sk-select-color-base: var(--sk-neutral-base);
|
|
12
13
|
--sk-select-fg: var(--sk-neutral-text);
|
|
13
14
|
|
|
15
|
+
// Per-corner cut sizes (toggled on by .sk-cut-* / corners=)
|
|
16
|
+
--sk-select-cut-tl: 0px;
|
|
17
|
+
--sk-select-cut-tr: 0px;
|
|
18
|
+
--sk-select-cut-br: 0px;
|
|
19
|
+
--sk-select-cut-bl: 0px;
|
|
20
|
+
|
|
14
21
|
position: relative;
|
|
15
22
|
display: inline-flex;
|
|
16
23
|
width: 100%;
|
|
@@ -18,32 +25,32 @@
|
|
|
18
25
|
// Default: md when no sk-size-* class is present (zero-specificity, explicit class wins)
|
|
19
26
|
&:where(:not([class*="sk-size-"]))
|
|
20
27
|
{
|
|
21
|
-
--sk-select-cut: 0.
|
|
28
|
+
--sk-select-cut: 0.625rem;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
31
|
// Size variants
|
|
25
32
|
&.sk-sm,
|
|
26
33
|
&.sk-size-sm
|
|
27
34
|
{
|
|
28
|
-
--sk-select-cut: 0.
|
|
35
|
+
--sk-select-cut: 0.5rem;
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
&.sk-md,
|
|
32
39
|
&.sk-size-md
|
|
33
40
|
{
|
|
34
|
-
--sk-select-cut: 0.
|
|
41
|
+
--sk-select-cut: 0.625rem;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
&.sk-lg,
|
|
38
45
|
&.sk-size-lg
|
|
39
46
|
{
|
|
40
|
-
--sk-select-cut: 0.
|
|
47
|
+
--sk-select-cut: 0.75rem;
|
|
41
48
|
}
|
|
42
49
|
|
|
43
50
|
&.sk-xl,
|
|
44
51
|
&.sk-size-xl
|
|
45
52
|
{
|
|
46
|
-
--sk-select-cut: 0.
|
|
53
|
+
--sk-select-cut: 0.875rem;
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
// Kind variants
|
|
@@ -154,11 +161,13 @@
|
|
|
154
161
|
font-size: inherit;
|
|
155
162
|
text-align: left;
|
|
156
163
|
|
|
157
|
-
@include cut-border(
|
|
158
|
-
$
|
|
164
|
+
@include cut-border-vars(
|
|
165
|
+
$tl: var(--sk-select-cut-tl),
|
|
166
|
+
$tr: var(--sk-select-cut-tr),
|
|
167
|
+
$br: var(--sk-select-cut-br),
|
|
168
|
+
$bl: var(--sk-select-cut-bl),
|
|
159
169
|
$border-width: var(--sk-border-width-thin),
|
|
160
|
-
$border-color: var(--sk-select-color-base)
|
|
161
|
-
$corners: (top-right)
|
|
170
|
+
$border-color: var(--sk-select-color-base)
|
|
162
171
|
);
|
|
163
172
|
|
|
164
173
|
// Base styling
|
|
@@ -453,6 +462,44 @@
|
|
|
453
462
|
background: color-mix(in oklch, var(--sk-menu-color-base), transparent 70%);
|
|
454
463
|
}
|
|
455
464
|
|
|
465
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
466
|
+
// Default cut: top-right — fires when no sk-cut-* class is present and no corners attribute set.
|
|
467
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
468
|
+
|
|
469
|
+
@include defaults-when-absent('select', 'sk-cut-')
|
|
470
|
+
{
|
|
471
|
+
--sk-select-cut-tr: var(--sk-select-cut);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
@include defaults-when-no-attr('select', 'corners')
|
|
475
|
+
{
|
|
476
|
+
--sk-select-cut-tr: var(--sk-select-cut);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
480
|
+
// Per-corner classes / corners="..." values.
|
|
481
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
482
|
+
|
|
483
|
+
@include list-modifier('select', 'cut', 'top-left', 'corners')
|
|
484
|
+
{
|
|
485
|
+
--sk-select-cut-tl: var(--sk-select-cut);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@include list-modifier('select', 'cut', 'top-right', 'corners')
|
|
489
|
+
{
|
|
490
|
+
--sk-select-cut-tr: var(--sk-select-cut);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
@include list-modifier('select', 'cut', 'bottom-right', 'corners')
|
|
494
|
+
{
|
|
495
|
+
--sk-select-cut-br: var(--sk-select-cut);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@include list-modifier('select', 'cut', 'bottom-left', 'corners')
|
|
499
|
+
{
|
|
500
|
+
--sk-select-cut-bl: var(--sk-select-cut);
|
|
501
|
+
}
|
|
502
|
+
|
|
456
503
|
//----------------------------------------------------------------------------------------------------------------------
|
|
457
504
|
// Defaults-when-absent: kind — neutral when no explicit kind class is present.
|
|
458
505
|
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -266,3 +266,86 @@
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
//----------------------------------------------------------------------------------------------------------------------
|
|
269
|
+
// cut-border-vars
|
|
270
|
+
//
|
|
271
|
+
// Variant of cut-border that drives each corner from a CSS custom property reference (e.g.,
|
|
272
|
+
// `var(--sk-input-cut-tl)`) instead of a fixed SASS-time corner list. Set a corner's variable
|
|
273
|
+
// to 0px to render that corner square. This is what SkInputGroup uses to suppress interior
|
|
274
|
+
// corners at runtime via the cascade.
|
|
275
|
+
//
|
|
276
|
+
// $tl, $tr, $br, $bl: CSS values that resolve to a length (typically `var(--sk-foo-cut-XX)`).
|
|
277
|
+
// $border-width, $border-color: same as cut-border.
|
|
278
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
279
|
+
|
|
280
|
+
@mixin cut-border-vars(
|
|
281
|
+
$tl,
|
|
282
|
+
$tr,
|
|
283
|
+
$br,
|
|
284
|
+
$bl,
|
|
285
|
+
$border-width: var(--sk-border-width-thin),
|
|
286
|
+
$border-color: currentColor
|
|
287
|
+
)
|
|
288
|
+
{
|
|
289
|
+
@supports (corner-shape: bevel)
|
|
290
|
+
{
|
|
291
|
+
border: $border-width solid $border-color;
|
|
292
|
+
border-top-left-radius: $tl;
|
|
293
|
+
border-top-right-radius: $tr;
|
|
294
|
+
border-bottom-right-radius: $br;
|
|
295
|
+
border-bottom-left-radius: $bl;
|
|
296
|
+
corner-shape: bevel;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@supports not (corner-shape: bevel)
|
|
300
|
+
{
|
|
301
|
+
border: none;
|
|
302
|
+
|
|
303
|
+
// 8-point polygon — when a corner var is 0px, its two points collapse into the corner.
|
|
304
|
+
clip-path: polygon(
|
|
305
|
+
#{ $tl } 0,
|
|
306
|
+
calc(100% - #{ $tr }) 0,
|
|
307
|
+
100% #{ $tr },
|
|
308
|
+
100% calc(100% - #{ $br }),
|
|
309
|
+
calc(100% - #{ $br }) 100%,
|
|
310
|
+
#{ $bl } 100%,
|
|
311
|
+
0 calc(100% - #{ $bl }),
|
|
312
|
+
0 #{ $tl }
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
&::before
|
|
316
|
+
{
|
|
317
|
+
content: '';
|
|
318
|
+
position: absolute;
|
|
319
|
+
top: 0;
|
|
320
|
+
left: 0;
|
|
321
|
+
right: 0;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
background-color: $border-color;
|
|
324
|
+
z-index: -1;
|
|
325
|
+
|
|
326
|
+
// Outer polygon (clockwise) + inner polygon (counter-clockwise, inset by $border-width).
|
|
327
|
+
clip-path: polygon(
|
|
328
|
+
#{ $tl } 0,
|
|
329
|
+
calc(100% - #{ $tr }) 0,
|
|
330
|
+
100% #{ $tr },
|
|
331
|
+
100% calc(100% - #{ $br }),
|
|
332
|
+
calc(100% - #{ $br }) 100%,
|
|
333
|
+
#{ $bl } 100%,
|
|
334
|
+
0 calc(100% - #{ $bl }),
|
|
335
|
+
0 #{ $tl },
|
|
336
|
+
#{ $tl } 0,
|
|
337
|
+
calc(#{ $tl } + #{ $border-width }) #{ $border-width },
|
|
338
|
+
#{ $border-width } calc(#{ $tl } + #{ $border-width }),
|
|
339
|
+
#{ $border-width } calc(100% - #{ $bl } - #{ $border-width }),
|
|
340
|
+
calc(#{ $bl } + #{ $border-width }) calc(100% - #{ $border-width }),
|
|
341
|
+
calc(100% - #{ $br } - #{ $border-width }) calc(100% - #{ $border-width }),
|
|
342
|
+
calc(100% - #{ $border-width }) calc(100% - #{ $br } - #{ $border-width }),
|
|
343
|
+
calc(100% - #{ $border-width }) calc(#{ $tr } + #{ $border-width }),
|
|
344
|
+
calc(100% - #{ $tr } - #{ $border-width }) #{ $border-width },
|
|
345
|
+
calc(#{ $tl } + #{ $border-width }) #{ $border-width }
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// SleekSpace UI — Tailwind v4 Integration
|
|
3
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
4
|
+
// Maps SleekSpace CSS variables to Tailwind's @theme system so utilities like `bg-sk-primary`
|
|
5
|
+
// resolve to SleekSpace tokens. Use ONLY when integrating with Tailwind v4 — non-Tailwind
|
|
6
|
+
// consumers should import `tokens.css` instead, which contains no Tailwind-specific syntax.
|
|
7
|
+
//
|
|
8
|
+
// Usage with Tailwind v4:
|
|
9
|
+
//
|
|
10
|
+
// @import "tailwindcss";
|
|
11
|
+
// @import "@skewedaspect/sleekspace-ui/tokens.css";
|
|
12
|
+
// @import "@skewedaspect/sleekspace-ui/tailwind.css";
|
|
13
|
+
//
|
|
14
|
+
// Then use in your templates:
|
|
15
|
+
// <div class="bg-sk-primary text-sk-primary-text">SleekSpace + Tailwind!</div>
|
|
16
|
+
// <div class="bg-sk-purple-50 text-white">Neon purple</div>
|
|
17
|
+
//
|
|
18
|
+
// Or with arbitrary values (works without this file):
|
|
19
|
+
// <div class="bg-[var(--sk-primary-base)]">Direct CSS variable</div>
|
|
20
|
+
//----------------------------------------------------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
@theme inline {
|
|
23
|
+
/* Semantic Colors (theme-aware - change based on SkTheme) */
|
|
24
|
+
/* Each semantic color gets a full shade range using oklch lightness modifications */
|
|
25
|
+
|
|
26
|
+
/* Neutral */
|
|
27
|
+
--color-sk-neutral: var(--sk-neutral-base);
|
|
28
|
+
--color-sk-neutral-text: var(--sk-neutral-text);
|
|
29
|
+
--color-sk-neutral-5: oklch(from var(--sk-neutral-base) 0.95 c h);
|
|
30
|
+
--color-sk-neutral-10: oklch(from var(--sk-neutral-base) 0.90 c h);
|
|
31
|
+
--color-sk-neutral-20: oklch(from var(--sk-neutral-base) 0.85 c h);
|
|
32
|
+
--color-sk-neutral-30: oklch(from var(--sk-neutral-base) 0.80 c h);
|
|
33
|
+
--color-sk-neutral-40: oklch(from var(--sk-neutral-base) 0.75 c h);
|
|
34
|
+
--color-sk-neutral-50: var(--sk-neutral-base);
|
|
35
|
+
--color-sk-neutral-60: oklch(from var(--sk-neutral-base) calc(l * 0.85) c h);
|
|
36
|
+
--color-sk-neutral-70: oklch(from var(--sk-neutral-base) calc(l * 0.70) c h);
|
|
37
|
+
--color-sk-neutral-80: oklch(from var(--sk-neutral-base) calc(l * 0.55) c h);
|
|
38
|
+
--color-sk-neutral-90: oklch(from var(--sk-neutral-base) calc(l * 0.40) c h);
|
|
39
|
+
--color-sk-neutral-95: oklch(from var(--sk-neutral-base) calc(l * 0.25) c h);
|
|
40
|
+
|
|
41
|
+
/* Primary */
|
|
42
|
+
--color-sk-primary: var(--sk-primary-base);
|
|
43
|
+
--color-sk-primary-text: var(--sk-primary-text);
|
|
44
|
+
--color-sk-primary-5: oklch(from var(--sk-primary-base) 0.95 c h);
|
|
45
|
+
--color-sk-primary-10: oklch(from var(--sk-primary-base) 0.90 c h);
|
|
46
|
+
--color-sk-primary-20: oklch(from var(--sk-primary-base) 0.85 c h);
|
|
47
|
+
--color-sk-primary-30: oklch(from var(--sk-primary-base) 0.80 c h);
|
|
48
|
+
--color-sk-primary-40: oklch(from var(--sk-primary-base) 0.75 c h);
|
|
49
|
+
--color-sk-primary-50: var(--sk-primary-base);
|
|
50
|
+
--color-sk-primary-60: oklch(from var(--sk-primary-base) calc(l * 0.85) c h);
|
|
51
|
+
--color-sk-primary-70: oklch(from var(--sk-primary-base) calc(l * 0.70) c h);
|
|
52
|
+
--color-sk-primary-80: oklch(from var(--sk-primary-base) calc(l * 0.55) c h);
|
|
53
|
+
--color-sk-primary-90: oklch(from var(--sk-primary-base) calc(l * 0.40) c h);
|
|
54
|
+
--color-sk-primary-95: oklch(from var(--sk-primary-base) calc(l * 0.25) c h);
|
|
55
|
+
|
|
56
|
+
/* Accent */
|
|
57
|
+
--color-sk-accent: var(--sk-accent-base);
|
|
58
|
+
--color-sk-accent-text: var(--sk-accent-text);
|
|
59
|
+
--color-sk-accent-5: oklch(from var(--sk-accent-base) 0.95 c h);
|
|
60
|
+
--color-sk-accent-10: oklch(from var(--sk-accent-base) 0.90 c h);
|
|
61
|
+
--color-sk-accent-20: oklch(from var(--sk-accent-base) 0.85 c h);
|
|
62
|
+
--color-sk-accent-30: oklch(from var(--sk-accent-base) 0.80 c h);
|
|
63
|
+
--color-sk-accent-40: oklch(from var(--sk-accent-base) 0.75 c h);
|
|
64
|
+
--color-sk-accent-50: var(--sk-accent-base);
|
|
65
|
+
--color-sk-accent-60: oklch(from var(--sk-accent-base) calc(l * 0.85) c h);
|
|
66
|
+
--color-sk-accent-70: oklch(from var(--sk-accent-base) calc(l * 0.70) c h);
|
|
67
|
+
--color-sk-accent-80: oklch(from var(--sk-accent-base) calc(l * 0.55) c h);
|
|
68
|
+
--color-sk-accent-90: oklch(from var(--sk-accent-base) calc(l * 0.40) c h);
|
|
69
|
+
--color-sk-accent-95: oklch(from var(--sk-accent-base) calc(l * 0.25) c h);
|
|
70
|
+
|
|
71
|
+
/* Info */
|
|
72
|
+
--color-sk-info: var(--sk-info-base);
|
|
73
|
+
--color-sk-info-text: var(--sk-info-text);
|
|
74
|
+
--color-sk-info-5: oklch(from var(--sk-info-base) 0.95 c h);
|
|
75
|
+
--color-sk-info-10: oklch(from var(--sk-info-base) 0.90 c h);
|
|
76
|
+
--color-sk-info-20: oklch(from var(--sk-info-base) 0.85 c h);
|
|
77
|
+
--color-sk-info-30: oklch(from var(--sk-info-base) 0.80 c h);
|
|
78
|
+
--color-sk-info-40: oklch(from var(--sk-info-base) 0.75 c h);
|
|
79
|
+
--color-sk-info-50: var(--sk-info-base);
|
|
80
|
+
--color-sk-info-60: oklch(from var(--sk-info-base) calc(l * 0.85) c h);
|
|
81
|
+
--color-sk-info-70: oklch(from var(--sk-info-base) calc(l * 0.70) c h);
|
|
82
|
+
--color-sk-info-80: oklch(from var(--sk-info-base) calc(l * 0.55) c h);
|
|
83
|
+
--color-sk-info-90: oklch(from var(--sk-info-base) calc(l * 0.40) c h);
|
|
84
|
+
--color-sk-info-95: oklch(from var(--sk-info-base) calc(l * 0.25) c h);
|
|
85
|
+
|
|
86
|
+
/* Success */
|
|
87
|
+
--color-sk-success: var(--sk-success-base);
|
|
88
|
+
--color-sk-success-text: var(--sk-success-text);
|
|
89
|
+
--color-sk-success-5: oklch(from var(--sk-success-base) 0.95 c h);
|
|
90
|
+
--color-sk-success-10: oklch(from var(--sk-success-base) 0.90 c h);
|
|
91
|
+
--color-sk-success-20: oklch(from var(--sk-success-base) 0.85 c h);
|
|
92
|
+
--color-sk-success-30: oklch(from var(--sk-success-base) 0.80 c h);
|
|
93
|
+
--color-sk-success-40: oklch(from var(--sk-success-base) 0.75 c h);
|
|
94
|
+
--color-sk-success-50: var(--sk-success-base);
|
|
95
|
+
--color-sk-success-60: oklch(from var(--sk-success-base) calc(l * 0.85) c h);
|
|
96
|
+
--color-sk-success-70: oklch(from var(--sk-success-base) calc(l * 0.70) c h);
|
|
97
|
+
--color-sk-success-80: oklch(from var(--sk-success-base) calc(l * 0.55) c h);
|
|
98
|
+
--color-sk-success-90: oklch(from var(--sk-success-base) calc(l * 0.40) c h);
|
|
99
|
+
--color-sk-success-95: oklch(from var(--sk-success-base) calc(l * 0.25) c h);
|
|
100
|
+
|
|
101
|
+
/* Warning */
|
|
102
|
+
--color-sk-warning: var(--sk-warning-base);
|
|
103
|
+
--color-sk-warning-text: var(--sk-warning-text);
|
|
104
|
+
--color-sk-warning-5: oklch(from var(--sk-warning-base) 0.95 c h);
|
|
105
|
+
--color-sk-warning-10: oklch(from var(--sk-warning-base) 0.90 c h);
|
|
106
|
+
--color-sk-warning-20: oklch(from var(--sk-warning-base) 0.85 c h);
|
|
107
|
+
--color-sk-warning-30: oklch(from var(--sk-warning-base) 0.80 c h);
|
|
108
|
+
--color-sk-warning-40: oklch(from var(--sk-warning-base) 0.75 c h);
|
|
109
|
+
--color-sk-warning-50: var(--sk-warning-base);
|
|
110
|
+
--color-sk-warning-60: oklch(from var(--sk-warning-base) calc(l * 0.85) c h);
|
|
111
|
+
--color-sk-warning-70: oklch(from var(--sk-warning-base) calc(l * 0.70) c h);
|
|
112
|
+
--color-sk-warning-80: oklch(from var(--sk-warning-base) calc(l * 0.55) c h);
|
|
113
|
+
--color-sk-warning-90: oklch(from var(--sk-warning-base) calc(l * 0.40) c h);
|
|
114
|
+
--color-sk-warning-95: oklch(from var(--sk-warning-base) calc(l * 0.25) c h);
|
|
115
|
+
|
|
116
|
+
/* Danger */
|
|
117
|
+
--color-sk-danger: var(--sk-danger-base);
|
|
118
|
+
--color-sk-danger-text: var(--sk-danger-text);
|
|
119
|
+
--color-sk-danger-5: oklch(from var(--sk-danger-base) 0.95 c h);
|
|
120
|
+
--color-sk-danger-10: oklch(from var(--sk-danger-base) 0.90 c h);
|
|
121
|
+
--color-sk-danger-20: oklch(from var(--sk-danger-base) 0.85 c h);
|
|
122
|
+
--color-sk-danger-30: oklch(from var(--sk-danger-base) 0.80 c h);
|
|
123
|
+
--color-sk-danger-40: oklch(from var(--sk-danger-base) 0.75 c h);
|
|
124
|
+
--color-sk-danger-50: var(--sk-danger-base);
|
|
125
|
+
--color-sk-danger-60: oklch(from var(--sk-danger-base) calc(l * 0.85) c h);
|
|
126
|
+
--color-sk-danger-70: oklch(from var(--sk-danger-base) calc(l * 0.70) c h);
|
|
127
|
+
--color-sk-danger-80: oklch(from var(--sk-danger-base) calc(l * 0.55) c h);
|
|
128
|
+
--color-sk-danger-90: oklch(from var(--sk-danger-base) calc(l * 0.40) c h);
|
|
129
|
+
--color-sk-danger-95: oklch(from var(--sk-danger-base) calc(l * 0.25) c h);
|
|
130
|
+
|
|
131
|
+
/* Color Palette - Gray */
|
|
132
|
+
--color-sk-gray-5: var(--sk-color-gray-05);
|
|
133
|
+
--color-sk-gray-10: var(--sk-color-gray-10);
|
|
134
|
+
--color-sk-gray-20: var(--sk-color-gray-20);
|
|
135
|
+
--color-sk-gray-30: var(--sk-color-gray-30);
|
|
136
|
+
--color-sk-gray-40: var(--sk-color-gray-40);
|
|
137
|
+
--color-sk-gray-50: var(--sk-color-gray-50);
|
|
138
|
+
--color-sk-gray-60: var(--sk-color-gray-60);
|
|
139
|
+
--color-sk-gray-70: var(--sk-color-gray-70);
|
|
140
|
+
--color-sk-gray-80: var(--sk-color-gray-80);
|
|
141
|
+
--color-sk-gray-90: var(--sk-color-gray-90);
|
|
142
|
+
--color-sk-gray-95: var(--sk-color-gray-95);
|
|
143
|
+
|
|
144
|
+
/* Color Palette - Blue */
|
|
145
|
+
--color-sk-blue-5: var(--sk-color-blue-05);
|
|
146
|
+
--color-sk-blue-10: var(--sk-color-blue-10);
|
|
147
|
+
--color-sk-blue-20: var(--sk-color-blue-20);
|
|
148
|
+
--color-sk-blue-30: var(--sk-color-blue-30);
|
|
149
|
+
--color-sk-blue-40: var(--sk-color-blue-40);
|
|
150
|
+
--color-sk-blue-50: var(--sk-color-blue-50);
|
|
151
|
+
--color-sk-blue-60: var(--sk-color-blue-60);
|
|
152
|
+
--color-sk-blue-70: var(--sk-color-blue-70);
|
|
153
|
+
--color-sk-blue-80: var(--sk-color-blue-80);
|
|
154
|
+
--color-sk-blue-90: var(--sk-color-blue-90);
|
|
155
|
+
--color-sk-blue-95: var(--sk-color-blue-95);
|
|
156
|
+
|
|
157
|
+
/* Color Palette - Red */
|
|
158
|
+
--color-sk-red-5: var(--sk-color-red-05);
|
|
159
|
+
--color-sk-red-10: var(--sk-color-red-10);
|
|
160
|
+
--color-sk-red-20: var(--sk-color-red-20);
|
|
161
|
+
--color-sk-red-30: var(--sk-color-red-30);
|
|
162
|
+
--color-sk-red-40: var(--sk-color-red-40);
|
|
163
|
+
--color-sk-red-50: var(--sk-color-red-50);
|
|
164
|
+
--color-sk-red-60: var(--sk-color-red-60);
|
|
165
|
+
--color-sk-red-70: var(--sk-color-red-70);
|
|
166
|
+
--color-sk-red-80: var(--sk-color-red-80);
|
|
167
|
+
--color-sk-red-90: var(--sk-color-red-90);
|
|
168
|
+
--color-sk-red-95: var(--sk-color-red-95);
|
|
169
|
+
|
|
170
|
+
/* Color Palette - Orange */
|
|
171
|
+
--color-sk-orange-5: var(--sk-color-orange-05);
|
|
172
|
+
--color-sk-orange-10: var(--sk-color-orange-10);
|
|
173
|
+
--color-sk-orange-20: var(--sk-color-orange-20);
|
|
174
|
+
--color-sk-orange-30: var(--sk-color-orange-30);
|
|
175
|
+
--color-sk-orange-40: var(--sk-color-orange-40);
|
|
176
|
+
--color-sk-orange-50: var(--sk-color-orange-50);
|
|
177
|
+
--color-sk-orange-60: var(--sk-color-orange-60);
|
|
178
|
+
--color-sk-orange-70: var(--sk-color-orange-70);
|
|
179
|
+
--color-sk-orange-80: var(--sk-color-orange-80);
|
|
180
|
+
--color-sk-orange-90: var(--sk-color-orange-90);
|
|
181
|
+
--color-sk-orange-95: var(--sk-color-orange-95);
|
|
182
|
+
|
|
183
|
+
/* Color Palette - Yellow */
|
|
184
|
+
--color-sk-yellow-5: var(--sk-color-yellow-05);
|
|
185
|
+
--color-sk-yellow-10: var(--sk-color-yellow-10);
|
|
186
|
+
--color-sk-yellow-20: var(--sk-color-yellow-20);
|
|
187
|
+
--color-sk-yellow-30: var(--sk-color-yellow-30);
|
|
188
|
+
--color-sk-yellow-40: var(--sk-color-yellow-40);
|
|
189
|
+
--color-sk-yellow-50: var(--sk-color-yellow-50);
|
|
190
|
+
--color-sk-yellow-60: var(--sk-color-yellow-60);
|
|
191
|
+
--color-sk-yellow-70: var(--sk-color-yellow-70);
|
|
192
|
+
--color-sk-yellow-80: var(--sk-color-yellow-80);
|
|
193
|
+
--color-sk-yellow-90: var(--sk-color-yellow-90);
|
|
194
|
+
--color-sk-yellow-95: var(--sk-color-yellow-95);
|
|
195
|
+
|
|
196
|
+
/* Color Palette - Green */
|
|
197
|
+
--color-sk-green-5: var(--sk-color-green-05);
|
|
198
|
+
--color-sk-green-10: var(--sk-color-green-10);
|
|
199
|
+
--color-sk-green-20: var(--sk-color-green-20);
|
|
200
|
+
--color-sk-green-30: var(--sk-color-green-30);
|
|
201
|
+
--color-sk-green-40: var(--sk-color-green-40);
|
|
202
|
+
--color-sk-green-50: var(--sk-color-green-50);
|
|
203
|
+
--color-sk-green-60: var(--sk-color-green-60);
|
|
204
|
+
--color-sk-green-70: var(--sk-color-green-70);
|
|
205
|
+
--color-sk-green-80: var(--sk-color-green-80);
|
|
206
|
+
--color-sk-green-90: var(--sk-color-green-90);
|
|
207
|
+
--color-sk-green-95: var(--sk-color-green-95);
|
|
208
|
+
|
|
209
|
+
/* Color Palette - Mint */
|
|
210
|
+
--color-sk-mint-5: var(--sk-color-mint-05);
|
|
211
|
+
--color-sk-mint-10: var(--sk-color-mint-10);
|
|
212
|
+
--color-sk-mint-20: var(--sk-color-mint-20);
|
|
213
|
+
--color-sk-mint-30: var(--sk-color-mint-30);
|
|
214
|
+
--color-sk-mint-40: var(--sk-color-mint-40);
|
|
215
|
+
--color-sk-mint-50: var(--sk-color-mint-50);
|
|
216
|
+
--color-sk-mint-60: var(--sk-color-mint-60);
|
|
217
|
+
--color-sk-mint-70: var(--sk-color-mint-70);
|
|
218
|
+
--color-sk-mint-80: var(--sk-color-mint-80);
|
|
219
|
+
--color-sk-mint-90: var(--sk-color-mint-90);
|
|
220
|
+
--color-sk-mint-95: var(--sk-color-mint-95);
|
|
221
|
+
|
|
222
|
+
/* Color Palette - Cyan */
|
|
223
|
+
--color-sk-cyan-5: var(--sk-color-cyan-05);
|
|
224
|
+
--color-sk-cyan-10: var(--sk-color-cyan-10);
|
|
225
|
+
--color-sk-cyan-20: var(--sk-color-cyan-20);
|
|
226
|
+
--color-sk-cyan-30: var(--sk-color-cyan-30);
|
|
227
|
+
--color-sk-cyan-40: var(--sk-color-cyan-40);
|
|
228
|
+
--color-sk-cyan-50: var(--sk-color-cyan-50);
|
|
229
|
+
--color-sk-cyan-60: var(--sk-color-cyan-60);
|
|
230
|
+
--color-sk-cyan-70: var(--sk-color-cyan-70);
|
|
231
|
+
--color-sk-cyan-80: var(--sk-color-cyan-80);
|
|
232
|
+
--color-sk-cyan-90: var(--sk-color-cyan-90);
|
|
233
|
+
--color-sk-cyan-95: var(--sk-color-cyan-95);
|
|
234
|
+
|
|
235
|
+
/* Color Palette - Purple */
|
|
236
|
+
--color-sk-purple-5: var(--sk-color-purple-05);
|
|
237
|
+
--color-sk-purple-10: var(--sk-color-purple-10);
|
|
238
|
+
--color-sk-purple-20: var(--sk-color-purple-20);
|
|
239
|
+
--color-sk-purple-30: var(--sk-color-purple-30);
|
|
240
|
+
--color-sk-purple-40: var(--sk-color-purple-40);
|
|
241
|
+
--color-sk-purple-50: var(--sk-color-purple-50);
|
|
242
|
+
--color-sk-purple-60: var(--sk-color-purple-60);
|
|
243
|
+
--color-sk-purple-70: var(--sk-color-purple-70);
|
|
244
|
+
--color-sk-purple-80: var(--sk-color-purple-80);
|
|
245
|
+
--color-sk-purple-90: var(--sk-color-purple-90);
|
|
246
|
+
--color-sk-purple-95: var(--sk-color-purple-95);
|
|
247
|
+
|
|
248
|
+
/* Color Palette - Pink */
|
|
249
|
+
--color-sk-pink-5: var(--sk-color-pink-05);
|
|
250
|
+
--color-sk-pink-10: var(--sk-color-pink-10);
|
|
251
|
+
--color-sk-pink-20: var(--sk-color-pink-20);
|
|
252
|
+
--color-sk-pink-30: var(--sk-color-pink-30);
|
|
253
|
+
--color-sk-pink-40: var(--sk-color-pink-40);
|
|
254
|
+
--color-sk-pink-50: var(--sk-color-pink-50);
|
|
255
|
+
--color-sk-pink-60: var(--sk-color-pink-60);
|
|
256
|
+
--color-sk-pink-70: var(--sk-color-pink-70);
|
|
257
|
+
--color-sk-pink-80: var(--sk-color-pink-80);
|
|
258
|
+
--color-sk-pink-90: var(--sk-color-pink-90);
|
|
259
|
+
--color-sk-pink-95: var(--sk-color-pink-95);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
//----------------------------------------------------------------------------------------------------------------------
|