@knime/kds-styles 2.2.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 +32 -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,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 KdsFakeBorderTokens = {
|
|
7
|
+
/**
|
|
8
|
+
* 0.5px inner border implemented as shadow for proper alignment in layout. re-uses the muted border color for light and dark. Used in value switch, array, preview list for a11y.
|
|
9
|
+
*/
|
|
10
|
+
readonly "xs-muted": KdsShadow;
|
|
11
|
+
};
|
|
12
|
+
export declare const fakeBorder: KdsFakeBorderTokens;
|
|
@@ -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 fakeBorder = {
|
|
6
|
+
"xs-muted": {
|
|
7
|
+
layers: [
|
|
8
|
+
{
|
|
9
|
+
offsetX: { value: 0, unit: "px" },
|
|
10
|
+
offsetY: { value: 0, unit: "px" },
|
|
11
|
+
blur: { value: 0, unit: "px" },
|
|
12
|
+
spread: { value: 0.5, unit: "px" },
|
|
13
|
+
color: {
|
|
14
|
+
light: { h: 330, s: 0, l: 10.2, alpha: 0.2 },
|
|
15
|
+
dark: { h: 330, s: 0, l: 99, alpha: 0.2 },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
css: {
|
|
20
|
+
value: "0 0 0 0.5px light-dark(hsl(330 0% 10.2% / 0.2), hsl(330 0% 99% / 0.2))",
|
|
21
|
+
variable: "var(--kds-fake-border-xs-muted)",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated
|
|
3
|
+
* from the design token sources in src/tokens.
|
|
4
|
+
*/
|
|
5
|
+
import type { KdsTypography } from "./types.js";
|
|
6
|
+
export type KdsFontTokens = {
|
|
7
|
+
readonly base: {
|
|
8
|
+
readonly display: {
|
|
9
|
+
/**
|
|
10
|
+
* Can be used for large headlines in components that require a multi-line setup (xsmall).
|
|
11
|
+
*/
|
|
12
|
+
readonly xsmall: KdsTypography;
|
|
13
|
+
/**
|
|
14
|
+
* Main Headlines on Hub and Website. Only used on fullscreen, not used inside Sidepanels (small).
|
|
15
|
+
*/
|
|
16
|
+
readonly small: KdsTypography;
|
|
17
|
+
/**
|
|
18
|
+
* Main Headlines on Hub and Website. Only used on fullscreen, not used inside Sidepanels (medium).
|
|
19
|
+
*/
|
|
20
|
+
readonly medium: KdsTypography;
|
|
21
|
+
/**
|
|
22
|
+
* Main Headlines on Hub and Website. Only used on fullscreen, not used inside Sidepanels (large).
|
|
23
|
+
*/
|
|
24
|
+
readonly large: KdsTypography;
|
|
25
|
+
/**
|
|
26
|
+
* Main Headlines on Hub and Website. Only used on fullscreen, not used inside Sidepanels (xlarge).
|
|
27
|
+
*/
|
|
28
|
+
readonly xlarge: KdsTypography;
|
|
29
|
+
};
|
|
30
|
+
readonly title: {
|
|
31
|
+
/**
|
|
32
|
+
* Single-line text, used inside component headers (xsmall).
|
|
33
|
+
*/
|
|
34
|
+
readonly xsmall: KdsTypography;
|
|
35
|
+
/**
|
|
36
|
+
* Single-line text, used inside component headers (small).
|
|
37
|
+
*/
|
|
38
|
+
readonly small: KdsTypography;
|
|
39
|
+
/**
|
|
40
|
+
* Single-line text, used inside component headers (small-strong).
|
|
41
|
+
*/
|
|
42
|
+
readonly "small-strong": KdsTypography;
|
|
43
|
+
/**
|
|
44
|
+
* Single-line text, used inside component headers (medium).
|
|
45
|
+
*/
|
|
46
|
+
readonly medium: KdsTypography;
|
|
47
|
+
/**
|
|
48
|
+
* Single-line text, used inside component headers (medium-strong).
|
|
49
|
+
*/
|
|
50
|
+
readonly "medium-strong": KdsTypography;
|
|
51
|
+
/**
|
|
52
|
+
* Single-line text, used inside component headers (large).
|
|
53
|
+
*/
|
|
54
|
+
readonly large: KdsTypography;
|
|
55
|
+
/**
|
|
56
|
+
* Single-line text, used inside component headers (large-strong).
|
|
57
|
+
*/
|
|
58
|
+
readonly "large-strong": KdsTypography;
|
|
59
|
+
};
|
|
60
|
+
readonly body: {
|
|
61
|
+
/**
|
|
62
|
+
* Multiline text, used for paragraphs inside components, pages or panels (small).
|
|
63
|
+
*/
|
|
64
|
+
readonly small: KdsTypography;
|
|
65
|
+
/**
|
|
66
|
+
* Multiline text, used for paragraphs inside components, pages or panels (small-italic).
|
|
67
|
+
*/
|
|
68
|
+
readonly "small-italic": KdsTypography;
|
|
69
|
+
/**
|
|
70
|
+
* Multiline text, used for paragraphs inside components, pages or panels (small-strong).
|
|
71
|
+
*/
|
|
72
|
+
readonly "small-strong": KdsTypography;
|
|
73
|
+
/**
|
|
74
|
+
* Multiline text, used for paragraphs inside components, pages or panels (small-strong-italic).
|
|
75
|
+
*/
|
|
76
|
+
readonly "small-strong-italic": KdsTypography;
|
|
77
|
+
/**
|
|
78
|
+
* Multiline text, used for paragraphs inside components, pages or panels (medium).
|
|
79
|
+
*/
|
|
80
|
+
readonly medium: KdsTypography;
|
|
81
|
+
/**
|
|
82
|
+
* Multiline text, used for paragraphs inside components, pages or panels (medium).
|
|
83
|
+
*/
|
|
84
|
+
readonly "medium-strong": KdsTypography;
|
|
85
|
+
/**
|
|
86
|
+
* Multiline text, used for paragraphs inside components, pages or panels (large).
|
|
87
|
+
*/
|
|
88
|
+
readonly large: KdsTypography;
|
|
89
|
+
/**
|
|
90
|
+
* Multiline text, used for paragraphs inside components, pages or panels (large).
|
|
91
|
+
*/
|
|
92
|
+
readonly "large-strong": KdsTypography;
|
|
93
|
+
/**
|
|
94
|
+
* Multiline text, used for paragraphs inside components, pages or panels (xlarge).
|
|
95
|
+
*/
|
|
96
|
+
readonly xlarge: KdsTypography;
|
|
97
|
+
};
|
|
98
|
+
readonly subtext: {
|
|
99
|
+
/**
|
|
100
|
+
* Caption is used for disclosing extra information or smaller items in hierarchical relationships of text. Examples: Input helping Text, Character Count, # Columns in Twinlist, Datatypes (xsmall).
|
|
101
|
+
*/
|
|
102
|
+
readonly xsmall: KdsTypography;
|
|
103
|
+
/**
|
|
104
|
+
* Caption is used for disclosing extra information or smaller items in hierarchical relationships of text. Examples: Input helping Text, Character Count, # Columns in Twinlist, Datatypes (small).
|
|
105
|
+
*/
|
|
106
|
+
readonly small: KdsTypography;
|
|
107
|
+
/**
|
|
108
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (medium).
|
|
109
|
+
*/
|
|
110
|
+
readonly medium: KdsTypography;
|
|
111
|
+
};
|
|
112
|
+
readonly interactive: {
|
|
113
|
+
/**
|
|
114
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (xsmall-strong).
|
|
115
|
+
*/
|
|
116
|
+
readonly "xsmall-strong": KdsTypography;
|
|
117
|
+
/**
|
|
118
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (small).
|
|
119
|
+
*/
|
|
120
|
+
readonly small: KdsTypography;
|
|
121
|
+
/**
|
|
122
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (small-italic).
|
|
123
|
+
*/
|
|
124
|
+
readonly "small-italic": KdsTypography;
|
|
125
|
+
/**
|
|
126
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (small-strong).
|
|
127
|
+
*/
|
|
128
|
+
readonly "small-strong": KdsTypography;
|
|
129
|
+
/**
|
|
130
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (medium).
|
|
131
|
+
*/
|
|
132
|
+
readonly medium: KdsTypography;
|
|
133
|
+
/**
|
|
134
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (medium-strong).
|
|
135
|
+
*/
|
|
136
|
+
readonly "medium-strong": KdsTypography;
|
|
137
|
+
/**
|
|
138
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (large).
|
|
139
|
+
*/
|
|
140
|
+
readonly large: KdsTypography;
|
|
141
|
+
/**
|
|
142
|
+
* Singleline text, used for button labels, breadcrumbs, chips and everything that is clickable (large-strong).
|
|
143
|
+
*/
|
|
144
|
+
readonly "large-strong": KdsTypography;
|
|
145
|
+
};
|
|
146
|
+
readonly code: {
|
|
147
|
+
/**
|
|
148
|
+
* Singleline code, used for code snippets (xsmall).
|
|
149
|
+
*/
|
|
150
|
+
readonly xsmall: KdsTypography;
|
|
151
|
+
/**
|
|
152
|
+
* Code blocks (small).
|
|
153
|
+
*/
|
|
154
|
+
readonly small: KdsTypography;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly workflow: {
|
|
158
|
+
readonly annotation: {
|
|
159
|
+
readonly headline: {
|
|
160
|
+
/**
|
|
161
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
162
|
+
*/
|
|
163
|
+
readonly H1: KdsTypography;
|
|
164
|
+
/**
|
|
165
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
166
|
+
*/
|
|
167
|
+
readonly H2: KdsTypography;
|
|
168
|
+
/**
|
|
169
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
170
|
+
*/
|
|
171
|
+
readonly H3: KdsTypography;
|
|
172
|
+
/**
|
|
173
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
174
|
+
*/
|
|
175
|
+
readonly H4: KdsTypography;
|
|
176
|
+
/**
|
|
177
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
178
|
+
*/
|
|
179
|
+
readonly H5: KdsTypography;
|
|
180
|
+
/**
|
|
181
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
182
|
+
*/
|
|
183
|
+
readonly "H1-italic": KdsTypography;
|
|
184
|
+
/**
|
|
185
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
186
|
+
*/
|
|
187
|
+
readonly "H2-italic": KdsTypography;
|
|
188
|
+
/**
|
|
189
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
190
|
+
*/
|
|
191
|
+
readonly "H3-italic": KdsTypography;
|
|
192
|
+
/**
|
|
193
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
194
|
+
*/
|
|
195
|
+
readonly "H4-italic": KdsTypography;
|
|
196
|
+
/**
|
|
197
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
198
|
+
*/
|
|
199
|
+
readonly "H5-italic": KdsTypography;
|
|
200
|
+
/**
|
|
201
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
202
|
+
*/
|
|
203
|
+
readonly H6: KdsTypography;
|
|
204
|
+
/**
|
|
205
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
206
|
+
*/
|
|
207
|
+
readonly "H6-italic": KdsTypography;
|
|
208
|
+
};
|
|
209
|
+
readonly body: {
|
|
210
|
+
/**
|
|
211
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
212
|
+
*/
|
|
213
|
+
readonly small: KdsTypography;
|
|
214
|
+
/**
|
|
215
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
216
|
+
*/
|
|
217
|
+
readonly "small-italic": KdsTypography;
|
|
218
|
+
/**
|
|
219
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
220
|
+
*/
|
|
221
|
+
readonly "small-strong": KdsTypography;
|
|
222
|
+
/**
|
|
223
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
224
|
+
*/
|
|
225
|
+
readonly "small-strong-Italic": KdsTypography;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
readonly node: {
|
|
229
|
+
/**
|
|
230
|
+
* Typography for workflow node names.
|
|
231
|
+
*/
|
|
232
|
+
readonly name: KdsTypography;
|
|
233
|
+
/**
|
|
234
|
+
* Typography for workflow node labels.
|
|
235
|
+
*/
|
|
236
|
+
readonly label: KdsTypography;
|
|
237
|
+
/**
|
|
238
|
+
* Typography for workflow node status text.
|
|
239
|
+
*/
|
|
240
|
+
readonly status: KdsTypography;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly dataapp: {
|
|
244
|
+
/**
|
|
245
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
246
|
+
*/
|
|
247
|
+
readonly H1: KdsTypography;
|
|
248
|
+
/**
|
|
249
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
250
|
+
*/
|
|
251
|
+
readonly H2: KdsTypography;
|
|
252
|
+
/**
|
|
253
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
254
|
+
*/
|
|
255
|
+
readonly H3: KdsTypography;
|
|
256
|
+
/**
|
|
257
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
258
|
+
*/
|
|
259
|
+
readonly H4: KdsTypography;
|
|
260
|
+
/**
|
|
261
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
262
|
+
*/
|
|
263
|
+
readonly H5: KdsTypography;
|
|
264
|
+
/**
|
|
265
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
266
|
+
*/
|
|
267
|
+
readonly H6: KdsTypography;
|
|
268
|
+
/**
|
|
269
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
270
|
+
*/
|
|
271
|
+
readonly body: KdsTypography;
|
|
272
|
+
/**
|
|
273
|
+
* Fixed Fontformats for Workflow annotations and in Rich Text editor and Data Apps. Properties of this tokengroup cannot be changed easily because of their impact in layout of Workflows and Data Apps.
|
|
274
|
+
*/
|
|
275
|
+
readonly "body-small": KdsTypography;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
export declare const font: KdsFontTokens;
|