@knime/kds-styles 2.3.0 → 2.4.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/CHANGELOG.md +30 -0
- package/README.md +21 -0
- package/dist/tokens/css/_properties-legacy.css +220 -220
- package/dist/tokens/css/_properties.css +370 -370
- package/dist/tokens/css/_variables-legacy.css +220 -220
- package/dist/tokens/css/_variables.css +370 -370
- package/dist/tokens/ts/border-radius.d.ts +50 -0
- package/dist/tokens/ts/border-radius.js +88 -0
- package/dist/tokens/ts/border-width.d.ts +22 -0
- package/dist/tokens/ts/border-width.js +32 -0
- package/dist/tokens/ts/border.d.ts +118 -0
- package/dist/tokens/ts/border.js +316 -0
- package/dist/tokens/ts/box-shadow.d.ts +12 -0
- package/dist/tokens/ts/box-shadow.js +24 -0
- package/dist/tokens/ts/color.d.ts +880 -0
- package/dist/tokens/ts/color.js +1658 -0
- package/dist/tokens/ts/dimension.d.ts +196 -0
- package/dist/tokens/ts/dimension.js +362 -0
- package/dist/tokens/ts/elevation.d.ts +37 -0
- package/dist/tokens/ts/elevation.js +102 -0
- package/dist/tokens/ts/fake-border.d.ts +12 -0
- package/dist/tokens/ts/fake-border.js +24 -0
- package/dist/tokens/ts/font.d.ts +278 -0
- package/dist/tokens/ts/font.js +644 -0
- package/dist/tokens/ts/index.d.ts +17 -0
- package/dist/tokens/ts/index.js +16 -0
- package/dist/tokens/ts/sizing.d.ts +34 -0
- package/dist/tokens/ts/sizing.js +56 -0
- package/dist/tokens/ts/spacing.d.ts +90 -0
- package/dist/tokens/ts/spacing.js +115 -0
- package/dist/tokens/ts/types.d.ts +87 -0
- package/dist/tokens/ts/types.js +5 -0
- package/dist/tokens/ts/width.d.ts +14 -0
- package/dist/tokens/ts/width.js +16 -0
- package/package.json +5 -2
- package/dist/tokens/ts/_tokens.ts +0 -125
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
import type { KdsDimension } from "./types.js";
|
|
6
|
+
export type KdsBorderRadiusTokens = {
|
|
7
|
+
readonly container: {
|
|
8
|
+
/**
|
|
9
|
+
* Perfectly sharp corners. Use when elements demands no rounding. USED IN: ListContainer, TabBar-Item
|
|
10
|
+
*/
|
|
11
|
+
readonly none: KdsDimension;
|
|
12
|
+
/**
|
|
13
|
+
* Softens crisp elements while keeping a sharp feel.
|
|
14
|
+
*/
|
|
15
|
+
readonly "0.12x": KdsDimension;
|
|
16
|
+
/**
|
|
17
|
+
* Radius on small UI pieces and compact elements. USED IN: Xsmall buttons, checkboxes.
|
|
18
|
+
*/
|
|
19
|
+
readonly "0.25x": KdsDimension;
|
|
20
|
+
/**
|
|
21
|
+
* A touch rounder than previous radius. Use for elements that need a gentler feel. USED IN: Focus outlines on Xsmall buttons.
|
|
22
|
+
*/
|
|
23
|
+
readonly "0.31x": KdsDimension;
|
|
24
|
+
/**
|
|
25
|
+
* Balanced rounding for small to medium components. USED IN: small and medium buttons and input fields.
|
|
26
|
+
*/
|
|
27
|
+
readonly "0.37x": KdsDimension;
|
|
28
|
+
/**
|
|
29
|
+
* A touch rounder than previous radius. Use for elements that need a gentler feel. USED IN: Focus outlines on small and medium buttons.
|
|
30
|
+
*/
|
|
31
|
+
readonly "0.44x": KdsDimension;
|
|
32
|
+
/**
|
|
33
|
+
* Soft rounding for larger components. USED IN: large buttons.
|
|
34
|
+
*/
|
|
35
|
+
readonly "0.50x": KdsDimension;
|
|
36
|
+
/**
|
|
37
|
+
* A touch rounder than previous radius. Use for elements that need a gentler feel. USED IN: Focus outlines on large buttons.
|
|
38
|
+
*/
|
|
39
|
+
readonly "0.56x": KdsDimension;
|
|
40
|
+
/**
|
|
41
|
+
* Used on rounder corner for larger elements.
|
|
42
|
+
*/
|
|
43
|
+
readonly "1x": KdsDimension;
|
|
44
|
+
/**
|
|
45
|
+
* Makes circles or capsules. USED IN: radiobuttons and Badge.
|
|
46
|
+
*/
|
|
47
|
+
readonly pill: KdsDimension;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const borderRadius: KdsBorderRadiusTokens;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
export const borderRadius = {
|
|
6
|
+
container: {
|
|
7
|
+
none: {
|
|
8
|
+
value: 0,
|
|
9
|
+
unit: "px",
|
|
10
|
+
css: {
|
|
11
|
+
value: "0",
|
|
12
|
+
variable: "var(--kds-border-radius-container-none)",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
"0.12x": {
|
|
16
|
+
value: 2,
|
|
17
|
+
unit: "px",
|
|
18
|
+
css: {
|
|
19
|
+
value: "2px",
|
|
20
|
+
variable: "var(--kds-border-radius-container-0-12x)",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
"0.25x": {
|
|
24
|
+
value: 4,
|
|
25
|
+
unit: "px",
|
|
26
|
+
css: {
|
|
27
|
+
value: "4px",
|
|
28
|
+
variable: "var(--kds-border-radius-container-0-25x)",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
"0.31x": {
|
|
32
|
+
value: 5,
|
|
33
|
+
unit: "px",
|
|
34
|
+
css: {
|
|
35
|
+
value: "5px",
|
|
36
|
+
variable: "var(--kds-border-radius-container-0-31x)",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
"0.37x": {
|
|
40
|
+
value: 6,
|
|
41
|
+
unit: "px",
|
|
42
|
+
css: {
|
|
43
|
+
value: "6px",
|
|
44
|
+
variable: "var(--kds-border-radius-container-0-37x)",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
"0.44x": {
|
|
48
|
+
value: 7,
|
|
49
|
+
unit: "px",
|
|
50
|
+
css: {
|
|
51
|
+
value: "7px",
|
|
52
|
+
variable: "var(--kds-border-radius-container-0-44x)",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
"0.50x": {
|
|
56
|
+
value: 8,
|
|
57
|
+
unit: "px",
|
|
58
|
+
css: {
|
|
59
|
+
value: "8px",
|
|
60
|
+
variable: "var(--kds-border-radius-container-0-50x)",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
"0.56x": {
|
|
64
|
+
value: 9,
|
|
65
|
+
unit: "px",
|
|
66
|
+
css: {
|
|
67
|
+
value: "9px",
|
|
68
|
+
variable: "var(--kds-border-radius-container-0-56x)",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
"1x": {
|
|
72
|
+
value: 16,
|
|
73
|
+
unit: "px",
|
|
74
|
+
css: {
|
|
75
|
+
value: "16px",
|
|
76
|
+
variable: "var(--kds-border-radius-container-1x)",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
pill: {
|
|
80
|
+
value: 1000,
|
|
81
|
+
unit: "px",
|
|
82
|
+
css: {
|
|
83
|
+
value: "1000px",
|
|
84
|
+
variable: "var(--kds-border-radius-container-pill)",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
import type { KdsDimension } from "./types.js";
|
|
6
|
+
export type KdsBorderWidthTokens = {
|
|
7
|
+
readonly "icon-stroke": {
|
|
8
|
+
/**
|
|
9
|
+
* 1px vector stroke - default for XSmall and Small icons.
|
|
10
|
+
*/
|
|
11
|
+
readonly s: KdsDimension;
|
|
12
|
+
/**
|
|
13
|
+
* 1.25px - use when scaling icons to Medium size.
|
|
14
|
+
*/
|
|
15
|
+
readonly m: KdsDimension;
|
|
16
|
+
/**
|
|
17
|
+
* 1.5px - thick stroke, use when scaling icons to Large size.
|
|
18
|
+
*/
|
|
19
|
+
readonly l: KdsDimension;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const borderWidth: KdsBorderWidthTokens;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
export const borderWidth = {
|
|
6
|
+
"icon-stroke": {
|
|
7
|
+
s: {
|
|
8
|
+
value: 1,
|
|
9
|
+
unit: "px",
|
|
10
|
+
css: {
|
|
11
|
+
value: "1px",
|
|
12
|
+
variable: "var(--kds-border-width-icon-stroke-s)",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
m: {
|
|
16
|
+
value: 1.2496,
|
|
17
|
+
unit: "px",
|
|
18
|
+
css: {
|
|
19
|
+
value: "1.2496px",
|
|
20
|
+
variable: "var(--kds-border-width-icon-stroke-m)",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
l: {
|
|
24
|
+
value: 1.5,
|
|
25
|
+
unit: "px",
|
|
26
|
+
css: {
|
|
27
|
+
value: "1.5px",
|
|
28
|
+
variable: "var(--kds-border-width-icon-stroke-l)",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
import type { KdsBorder } from "./types.js";
|
|
6
|
+
export type KdsBorderTokens = {
|
|
7
|
+
readonly action: {
|
|
8
|
+
/**
|
|
9
|
+
* Invisible outline that still occupies stroke space. Use to avoid layout-shift when a border appears on other states/variants of the same component. Themable composite token referencing border tokens from the mode set.
|
|
10
|
+
*/
|
|
11
|
+
readonly transparent: KdsBorder;
|
|
12
|
+
/**
|
|
13
|
+
* Default 1px neutral outline for interactive controls (e.g outline buttons). Themable composite token referencing border tokens from the mode set.
|
|
14
|
+
*/
|
|
15
|
+
readonly default: KdsBorder;
|
|
16
|
+
/**
|
|
17
|
+
* Dimmed 1px outline (color.border.disabled). Indicates the component cant be interacted with. Themable composite token referencing border tokens from the mode set.
|
|
18
|
+
*/
|
|
19
|
+
readonly disabled: KdsBorder;
|
|
20
|
+
/**
|
|
21
|
+
* 2px focus ring (color.focus.outline) - appears on keyboard or programmatic focus. Meets accessibility contrast. Themable composite token referencing border tokens from the mode set.
|
|
22
|
+
*/
|
|
23
|
+
readonly focused: KdsBorder;
|
|
24
|
+
/**
|
|
25
|
+
* 1px teal outline (color.border.selected) - shows current selection (e.g. radio, checkbox, TabBar-Item). Themable composite token referencing border tokens from the mode set.
|
|
26
|
+
*/
|
|
27
|
+
readonly selected: KdsBorder;
|
|
28
|
+
/**
|
|
29
|
+
* 1px outline (color.border.selected) - shows current selection (e.g. table cell, node instance). Themable composite token referencing border tokens from the mode set.
|
|
30
|
+
*/
|
|
31
|
+
readonly "selected-accent": KdsBorder;
|
|
32
|
+
/**
|
|
33
|
+
* 1px strong red outline for invalid inputs or destructive elements. Themable composite token referencing border tokens from the mode set.
|
|
34
|
+
*/
|
|
35
|
+
readonly error: KdsBorder;
|
|
36
|
+
/**
|
|
37
|
+
* 1px bold-teal outline for elements using primary color. Themable composite token referencing border tokens from the mode set.
|
|
38
|
+
*/
|
|
39
|
+
readonly primary: KdsBorder;
|
|
40
|
+
/**
|
|
41
|
+
* Neutral 1px outline specifically tuned for input elements (e.g text-field and textarea, radio and checkbox components). Themable composite token referencing border tokens from the mode set.
|
|
42
|
+
*/
|
|
43
|
+
readonly input: KdsBorder;
|
|
44
|
+
};
|
|
45
|
+
readonly base: {
|
|
46
|
+
/**
|
|
47
|
+
* 1px neutral divider for most containers and separators.
|
|
48
|
+
*/
|
|
49
|
+
readonly default: KdsBorder;
|
|
50
|
+
/**
|
|
51
|
+
* 1px subtler neutral stroke for low-contrast sections and containers.
|
|
52
|
+
*/
|
|
53
|
+
readonly muted: KdsBorder;
|
|
54
|
+
/**
|
|
55
|
+
* 1px hairline neutral stroke (10% opacity). Use for the faintest elements (e.g dividers).
|
|
56
|
+
*/
|
|
57
|
+
readonly subtle: KdsBorder;
|
|
58
|
+
/**
|
|
59
|
+
* 1px brand-yellow bar - decorative accent to be used on branded elements e.g Desktop header.
|
|
60
|
+
*/
|
|
61
|
+
readonly brand: KdsBorder;
|
|
62
|
+
/**
|
|
63
|
+
* 1px red outline for critical inline messages and containers.
|
|
64
|
+
*/
|
|
65
|
+
readonly danger: KdsBorder;
|
|
66
|
+
/**
|
|
67
|
+
* 1px orange outline for warning inline messages and containers.
|
|
68
|
+
*/
|
|
69
|
+
readonly warning: KdsBorder;
|
|
70
|
+
/**
|
|
71
|
+
* 1px green outline for success inline messages and containers.
|
|
72
|
+
*/
|
|
73
|
+
readonly success: KdsBorder;
|
|
74
|
+
/**
|
|
75
|
+
* 1px blue outline for info inline messages and containers.
|
|
76
|
+
*/
|
|
77
|
+
readonly info: KdsBorder;
|
|
78
|
+
};
|
|
79
|
+
readonly "node-status": {
|
|
80
|
+
/**
|
|
81
|
+
* Border around node status.
|
|
82
|
+
*/
|
|
83
|
+
readonly empty: KdsBorder;
|
|
84
|
+
/**
|
|
85
|
+
* Border around node status.
|
|
86
|
+
*/
|
|
87
|
+
readonly error: KdsBorder;
|
|
88
|
+
/**
|
|
89
|
+
* Border around node status.
|
|
90
|
+
*/
|
|
91
|
+
readonly warning: KdsBorder;
|
|
92
|
+
/**
|
|
93
|
+
* Border around node status.
|
|
94
|
+
*/
|
|
95
|
+
readonly success: KdsBorder;
|
|
96
|
+
};
|
|
97
|
+
readonly ResizeHandle: {
|
|
98
|
+
/**
|
|
99
|
+
* Default border style for the ResizeHandle component.
|
|
100
|
+
*/
|
|
101
|
+
readonly initial: KdsBorder;
|
|
102
|
+
/**
|
|
103
|
+
* Border style for the ResizeHandle component on hover.
|
|
104
|
+
*/
|
|
105
|
+
readonly hover: KdsBorder;
|
|
106
|
+
/**
|
|
107
|
+
* Border style for the ResizeHandle component when active.
|
|
108
|
+
*/
|
|
109
|
+
readonly active: KdsBorder;
|
|
110
|
+
};
|
|
111
|
+
readonly ColorPickerHandle: {
|
|
112
|
+
/**
|
|
113
|
+
* Default border style for the ColorPickerHandle in colorspace.
|
|
114
|
+
*/
|
|
115
|
+
readonly initial: KdsBorder;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare const border: KdsBorderTokens;
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
export const border = {
|
|
6
|
+
action: {
|
|
7
|
+
transparent: {
|
|
8
|
+
color: {
|
|
9
|
+
light: { h: 345, s: 0, l: 11.4, alpha: 0 },
|
|
10
|
+
dark: { h: 345, s: 0, l: 11.4, alpha: 0 },
|
|
11
|
+
},
|
|
12
|
+
width: { value: 1, unit: "px" },
|
|
13
|
+
style: "solid",
|
|
14
|
+
css: {
|
|
15
|
+
value: "1px solid hsl(345 0% 11.4% / 0)",
|
|
16
|
+
variable: "var(--kds-border-action-transparent)",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
default: {
|
|
20
|
+
color: {
|
|
21
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.4 },
|
|
22
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.5 },
|
|
23
|
+
},
|
|
24
|
+
width: { value: 1, unit: "px" },
|
|
25
|
+
style: "solid",
|
|
26
|
+
css: {
|
|
27
|
+
value: "1px solid light-dark(hsl(330 0% 10.2% / 0.4), hsl(330 0% 99% / 0.5))",
|
|
28
|
+
variable: "var(--kds-border-action-default)",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
color: {
|
|
33
|
+
light: { h: 0, s: 0, l: 72.5, alpha: 1 },
|
|
34
|
+
dark: { h: 0, s: 0, l: 48.2, alpha: 1 },
|
|
35
|
+
},
|
|
36
|
+
width: { value: 1, unit: "px" },
|
|
37
|
+
style: "solid",
|
|
38
|
+
css: {
|
|
39
|
+
value: "1px solid light-dark(hsl(0, 0%, 72.5%), hsl(0, 0%, 48.2%))",
|
|
40
|
+
variable: "var(--kds-border-action-disabled)",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
focused: {
|
|
44
|
+
color: {
|
|
45
|
+
light: { h: 209.4, s: 57.3, l: 49.6, alpha: 1 },
|
|
46
|
+
dark: { h: 213.6, s: 91.6, l: 76.7, alpha: 1 },
|
|
47
|
+
},
|
|
48
|
+
width: { value: 2, unit: "px" },
|
|
49
|
+
style: "solid",
|
|
50
|
+
css: {
|
|
51
|
+
value: "2px solid light-dark(hsl(209.4, 57.3%, 49.6%), hsl(213.6, 91.6%, 76.7%))",
|
|
52
|
+
variable: "var(--kds-border-action-focused)",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
selected: {
|
|
56
|
+
color: {
|
|
57
|
+
light: { h: 171.8, s: 27, l: 47.8, alpha: 1 },
|
|
58
|
+
dark: { h: 168, s: 46.7, l: 85.3, alpha: 1 },
|
|
59
|
+
},
|
|
60
|
+
width: { value: 1, unit: "px" },
|
|
61
|
+
style: "solid",
|
|
62
|
+
css: {
|
|
63
|
+
value: "1px solid light-dark(hsl(171.8, 27%, 47.8%), hsl(168, 46.7%, 85.3%))",
|
|
64
|
+
variable: "var(--kds-border-action-selected)",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
"selected-accent": {
|
|
68
|
+
color: {
|
|
69
|
+
light: { h: 209.4, s: 57.3, l: 49.6, alpha: 1 },
|
|
70
|
+
dark: { h: 213.6, s: 91.6, l: 76.7, alpha: 1 },
|
|
71
|
+
},
|
|
72
|
+
width: { value: 1, unit: "px" },
|
|
73
|
+
style: "solid",
|
|
74
|
+
css: {
|
|
75
|
+
value: "1px solid light-dark(hsl(209.4, 57.3%, 49.6%), hsl(213.6, 91.6%, 76.7%))",
|
|
76
|
+
variable: "var(--kds-border-action-selected-accent)",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
error: {
|
|
80
|
+
color: {
|
|
81
|
+
light: { h: 348.8, s: 90.9, l: 34.5, alpha: 1 },
|
|
82
|
+
dark: { h: 3.5, s: 100, l: 79.6, alpha: 1 },
|
|
83
|
+
},
|
|
84
|
+
width: { value: 1, unit: "px" },
|
|
85
|
+
style: "solid",
|
|
86
|
+
css: {
|
|
87
|
+
value: "1px solid light-dark(hsl(348.8, 90.9%, 34.5%), hsl(3.5, 100%, 79.6%))",
|
|
88
|
+
variable: "var(--kds-border-action-error)",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
primary: {
|
|
92
|
+
color: {
|
|
93
|
+
light: { h: 176.7, s: 82, l: 17.5, alpha: 1 },
|
|
94
|
+
dark: { h: 176.7, s: 82, l: 17.5, alpha: 1 },
|
|
95
|
+
},
|
|
96
|
+
width: { value: 1, unit: "px" },
|
|
97
|
+
style: "solid",
|
|
98
|
+
css: {
|
|
99
|
+
value: "1px solid hsl(176.7, 82%, 17.5%)",
|
|
100
|
+
variable: "var(--kds-border-action-primary)",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
input: {
|
|
104
|
+
color: {
|
|
105
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.4 },
|
|
106
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.5 },
|
|
107
|
+
},
|
|
108
|
+
width: { value: 1, unit: "px" },
|
|
109
|
+
style: "solid",
|
|
110
|
+
css: {
|
|
111
|
+
value: "1px solid light-dark(hsl(330 0% 10.2% / 0.4), hsl(330 0% 99% / 0.5))",
|
|
112
|
+
variable: "var(--kds-border-action-input)",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
base: {
|
|
117
|
+
default: {
|
|
118
|
+
color: {
|
|
119
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.4 },
|
|
120
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.5 },
|
|
121
|
+
},
|
|
122
|
+
width: { value: 1, unit: "px" },
|
|
123
|
+
style: "solid",
|
|
124
|
+
css: {
|
|
125
|
+
value: "1px solid light-dark(hsl(330 0% 10.2% / 0.4), hsl(330 0% 99% / 0.5))",
|
|
126
|
+
variable: "var(--kds-border-base-default)",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
muted: {
|
|
130
|
+
color: {
|
|
131
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.2 },
|
|
132
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.2 },
|
|
133
|
+
},
|
|
134
|
+
width: { value: 1, unit: "px" },
|
|
135
|
+
style: "solid",
|
|
136
|
+
css: {
|
|
137
|
+
value: "1px solid light-dark(hsl(330 0% 10.2% / 0.2), hsl(330 0% 99% / 0.2))",
|
|
138
|
+
variable: "var(--kds-border-base-muted)",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
subtle: {
|
|
142
|
+
color: {
|
|
143
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.1 },
|
|
144
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.1 },
|
|
145
|
+
},
|
|
146
|
+
width: { value: 1, unit: "px" },
|
|
147
|
+
style: "solid",
|
|
148
|
+
css: {
|
|
149
|
+
value: "1px solid light-dark(hsl(330 0% 10.2% / 0.1), hsl(330 0% 99% / 0.1))",
|
|
150
|
+
variable: "var(--kds-border-base-subtle)",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
brand: {
|
|
154
|
+
color: {
|
|
155
|
+
light: { h: 50.8, s: 100, l: 50, alpha: 1 },
|
|
156
|
+
dark: { h: 50.8, s: 100, l: 50, alpha: 1 },
|
|
157
|
+
},
|
|
158
|
+
width: { value: 1, unit: "px" },
|
|
159
|
+
style: "solid",
|
|
160
|
+
css: {
|
|
161
|
+
value: "1px solid hsl(50.8, 100%, 50%)",
|
|
162
|
+
variable: "var(--kds-border-base-brand)",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
danger: {
|
|
166
|
+
color: {
|
|
167
|
+
light: { h: 3.4, s: 100, l: 86.1, alpha: 1 },
|
|
168
|
+
dark: { h: 348, s: 94.3, l: 20.8, alpha: 1 },
|
|
169
|
+
},
|
|
170
|
+
width: { value: 1, unit: "px" },
|
|
171
|
+
style: "solid",
|
|
172
|
+
css: {
|
|
173
|
+
value: "1px solid light-dark(hsl(3.4, 100%, 86.1%), hsl(348, 94.3%, 20.8%))",
|
|
174
|
+
variable: "var(--kds-border-base-danger)",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
warning: {
|
|
178
|
+
color: {
|
|
179
|
+
light: { h: 30.8, s: 79.3, l: 73.5, alpha: 1 },
|
|
180
|
+
dark: { h: 13.1, s: 66.1, l: 23.1, alpha: 1 },
|
|
181
|
+
},
|
|
182
|
+
width: { value: 1, unit: "px" },
|
|
183
|
+
style: "solid",
|
|
184
|
+
css: {
|
|
185
|
+
value: "1px solid light-dark(hsl(30.8, 79.3%, 73.5%), hsl(13.1, 66.1%, 23.1%))",
|
|
186
|
+
variable: "var(--kds-border-base-warning)",
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
success: {
|
|
190
|
+
color: {
|
|
191
|
+
light: { h: 112, s: 56.5, l: 71.2, alpha: 1 },
|
|
192
|
+
dark: { h: 123.7, s: 46.7, l: 20.6, alpha: 1 },
|
|
193
|
+
},
|
|
194
|
+
width: { value: 1, unit: "px" },
|
|
195
|
+
style: "solid",
|
|
196
|
+
css: {
|
|
197
|
+
value: "1px solid light-dark(hsl(112, 56.5%, 71.2%), hsl(123.7, 46.7%, 20.6%))",
|
|
198
|
+
variable: "var(--kds-border-base-success)",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
info: {
|
|
202
|
+
color: {
|
|
203
|
+
light: { h: 214.5, s: 100, l: 84.3, alpha: 1 },
|
|
204
|
+
dark: { h: 210, s: 50, l: 27.5, alpha: 1 },
|
|
205
|
+
},
|
|
206
|
+
width: { value: 1, unit: "px" },
|
|
207
|
+
style: "solid",
|
|
208
|
+
css: {
|
|
209
|
+
value: "1px solid light-dark(hsl(214.5, 100%, 84.3%), hsl(210, 50%, 27.5%))",
|
|
210
|
+
variable: "var(--kds-border-base-info)",
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
"node-status": {
|
|
215
|
+
empty: {
|
|
216
|
+
color: {
|
|
217
|
+
light: { h: 0, s: 0, l: 90.2, alpha: 1 },
|
|
218
|
+
dark: { h: 0, s: 0, l: 32.2, alpha: 1 },
|
|
219
|
+
},
|
|
220
|
+
width: { value: 1, unit: "px" },
|
|
221
|
+
style: "solid",
|
|
222
|
+
css: {
|
|
223
|
+
value: "1px solid light-dark(hsl(0, 0%, 90.2%), hsl(0, 0%, 32.2%))",
|
|
224
|
+
variable: "var(--kds-border-node-status-empty)",
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
error: {
|
|
228
|
+
color: {
|
|
229
|
+
light: { h: 348, s: 94.3, l: 20.8, alpha: 1 },
|
|
230
|
+
dark: { h: 2.6, s: 100, l: 72.4, alpha: 1 },
|
|
231
|
+
},
|
|
232
|
+
width: { value: 1, unit: "px" },
|
|
233
|
+
style: "solid",
|
|
234
|
+
css: {
|
|
235
|
+
value: "1px solid light-dark(hsl(348, 94.3%, 20.8%), hsl(2.6, 100%, 72.4%))",
|
|
236
|
+
variable: "var(--kds-border-node-status-error)",
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
warning: {
|
|
240
|
+
color: {
|
|
241
|
+
light: { h: 19, s: 63.1, l: 38.2, alpha: 1 },
|
|
242
|
+
dark: { h: 49.1, s: 99.1, l: 43.7, alpha: 1 },
|
|
243
|
+
},
|
|
244
|
+
width: { value: 1, unit: "px" },
|
|
245
|
+
style: "solid",
|
|
246
|
+
css: {
|
|
247
|
+
value: "1px solid light-dark(hsl(19, 63.1%, 38.2%), hsl(49.1, 99.1%, 43.7%))",
|
|
248
|
+
variable: "var(--kds-border-node-status-warning)",
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
success: {
|
|
252
|
+
color: {
|
|
253
|
+
light: { h: 116.1, s: 46.6, l: 25.7, alpha: 1 },
|
|
254
|
+
dark: { h: 106.5, s: 42.6, l: 54.9, alpha: 1 },
|
|
255
|
+
},
|
|
256
|
+
width: { value: 1, unit: "px" },
|
|
257
|
+
style: "solid",
|
|
258
|
+
css: {
|
|
259
|
+
value: "1px solid light-dark(hsl(116.1, 46.6%, 25.7%), hsl(106.5, 42.6%, 54.9%))",
|
|
260
|
+
variable: "var(--kds-border-node-status-success)",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
ResizeHandle: {
|
|
265
|
+
initial: {
|
|
266
|
+
color: {
|
|
267
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.4 },
|
|
268
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.4 },
|
|
269
|
+
},
|
|
270
|
+
width: { value: 2, unit: "px" },
|
|
271
|
+
style: "solid",
|
|
272
|
+
css: {
|
|
273
|
+
value: "2px solid light-dark(hsl(330 0% 10.2% / 0.4), hsl(330 0% 99% / 0.4))",
|
|
274
|
+
variable: "var(--kds-border-resize-handle-initial)",
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
hover: {
|
|
278
|
+
color: {
|
|
279
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.64 },
|
|
280
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.58 },
|
|
281
|
+
},
|
|
282
|
+
width: { value: 2, unit: "px" },
|
|
283
|
+
style: "solid",
|
|
284
|
+
css: {
|
|
285
|
+
value: "2px solid light-dark(hsl(330 0% 10.2% / 0.64), hsl(330 0% 99% / 0.58))",
|
|
286
|
+
variable: "var(--kds-border-resize-handle-hover)",
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
active: {
|
|
290
|
+
color: {
|
|
291
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.74 },
|
|
292
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.68 },
|
|
293
|
+
},
|
|
294
|
+
width: { value: 2, unit: "px" },
|
|
295
|
+
style: "solid",
|
|
296
|
+
css: {
|
|
297
|
+
value: "2px solid light-dark(hsl(330 0% 10.2% / 0.74), hsl(330 0% 99% / 0.68))",
|
|
298
|
+
variable: "var(--kds-border-resize-handle-active)",
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
ColorPickerHandle: {
|
|
303
|
+
initial: {
|
|
304
|
+
color: {
|
|
305
|
+
light: { h: 0, s: 0, l: 99, alpha: 1 },
|
|
306
|
+
dark: { h: 0, s: 0, l: 99, alpha: 1 },
|
|
307
|
+
},
|
|
308
|
+
width: { value: 2, unit: "px" },
|
|
309
|
+
style: "solid",
|
|
310
|
+
css: {
|
|
311
|
+
value: "2px solid hsl(0, 0%, 99%)",
|
|
312
|
+
variable: "var(--kds-border-color-picker-handle-initial)",
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
import type { KdsShadow } from "./types.js";
|
|
6
|
+
export type KdsBoxShadowTokens = {
|
|
7
|
+
/**
|
|
8
|
+
* Drop shadow for knob elements like the ToggleSwitch handle.
|
|
9
|
+
*/
|
|
10
|
+
readonly knob: KdsShadow;
|
|
11
|
+
};
|
|
12
|
+
export declare const boxShadow: KdsBoxShadowTokens;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
export const boxShadow = {
|
|
6
|
+
knob: {
|
|
7
|
+
layers: [
|
|
8
|
+
{
|
|
9
|
+
offsetX: { value: 0, unit: "px" },
|
|
10
|
+
offsetY: { value: 1, unit: "px" },
|
|
11
|
+
blur: { value: 2, unit: "px" },
|
|
12
|
+
spread: { value: 0, unit: "px" },
|
|
13
|
+
color: {
|
|
14
|
+
light: { h: 180, s: 0, l: 32.2, alpha: 0.5 },
|
|
15
|
+
dark: { h: 330, s: 0, l: 10.2, alpha: 0.6 },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
css: {
|
|
20
|
+
value: "0 1px 2px 0 light-dark(hsl(180 0% 32.2% / 0.5), hsl(330 0% 10.2% / 0.6))",
|
|
21
|
+
variable: "var(--kds-box-shadow-knob)",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|