@knime/kds-styles 0.0.16 → 0.1.1
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 +12 -1
- package/dist/css/basics.css +11 -0
- package/dist/css/fonts-workflows.css +10 -0
- package/dist/css/fonts.css +13 -0
- package/dist/css/index.css +1 -0
- package/dist/tokens/css/_properties-legacy.css +31 -97
- package/dist/tokens/css/_properties.css +45 -99
- package/dist/tokens/css/_variables-legacy.css +12 -23
- package/dist/tokens/css/_variables.css +15 -24
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -24,9 +24,20 @@ All token values are fully calculated, ensuring that no variable references rema
|
|
|
24
24
|
|
|
25
25
|
Two sets of files are generated for light and dark mode. Subsequently, the CSS files are merged to contain all variables only once. For variables that use different color values in light and dark mode, the `light-dark()` function is employed.
|
|
26
26
|
|
|
27
|
+
## Fonts
|
|
28
|
+
|
|
29
|
+
The design system uses the Roboto, Roboto Condensed and Roboto Mono fonts for typography. When using `@knime/kds-styles` as a dependency the fonts will automatically be installed, no separate dependency is needed.
|
|
30
|
+
|
|
27
31
|
## Usage
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
To use the design tokens and basic CSS you can simply import the following into a central CSS of your project:
|
|
34
|
+
|
|
35
|
+
- `@import "@knime/kds-styles/kds-variables.css";`: Imports all built design tokens as CSS variables, including the colors in light and dark mode
|
|
36
|
+
- `@import "@knime/kds-styles/kds-legacy-theme.css";`: Imports a legacy theme, which should be used to roll out design system components and tokens into an existing project, styles are adopted so old webapps-common components and new components can be used side by side
|
|
37
|
+
- `@import "@knime/kds-styles/fonts.css"`: Import CSS font definitions for Roboto and Roboto Mono
|
|
38
|
+
- `@import "@knime/kds-styles/fonts-workflows.css"`: Import CSS font definitions for Roboto Condensed which is only used in the context of workflow editing
|
|
39
|
+
|
|
40
|
+
- `@import "@knime/kds-styles/index.css"`: Bundles all previous imports and adds basic core style rules, e.g. uses modern-normalize for browser reset. **Important:** Use only for new projects, or if conversion is already at a point where core styles can be replaced.
|
|
30
41
|
|
|
31
42
|
## Important Scripts
|
|
32
43
|
|
package/dist/css/basics.css
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
font-family: var(--kds-core-font-family-roboto), sans-serif;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
body {
|
|
2
6
|
font: var(--kds-font-base-body-medium);
|
|
3
7
|
color: var(--kds-color-text-and-icon-neutral);
|
|
@@ -7,6 +11,13 @@ a {
|
|
|
7
11
|
color: inherit;
|
|
8
12
|
}
|
|
9
13
|
|
|
14
|
+
pre,
|
|
15
|
+
code,
|
|
16
|
+
tt,
|
|
17
|
+
samp {
|
|
18
|
+
font-family: var(--kds-core-font-family-roboto-mono), monospace;
|
|
19
|
+
}
|
|
20
|
+
|
|
10
21
|
svg {
|
|
11
22
|
shape-rendering: geometricPrecision;
|
|
12
23
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fonts for workflows.
|
|
3
|
+
*
|
|
4
|
+
* Import only the weights and styles that are required:
|
|
5
|
+
* Sync with dist/tokens/css/_variables.css
|
|
6
|
+
* Search for --kds-font- to find all font related CSS variables.
|
|
7
|
+
*/
|
|
8
|
+
@import "./fonts.css";
|
|
9
|
+
@import "@fontsource/roboto-condensed/400";
|
|
10
|
+
@import "@fontsource/roboto-condensed/700";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Import only the weights and styles that are required:
|
|
3
|
+
* Sync with dist/tokens/css/_variables.css
|
|
4
|
+
* Search for --kds-font- to find all font related CSS variables.
|
|
5
|
+
*
|
|
6
|
+
* Roboto Condensed is not imported here as it's only rarely used,
|
|
7
|
+
* it's imported in fonts-workflows.css instead.
|
|
8
|
+
*/
|
|
9
|
+
@import "@fontsource/roboto";
|
|
10
|
+
@import "@fontsource/roboto/400-italic";
|
|
11
|
+
@import "@fontsource/roboto/500";
|
|
12
|
+
@import "@fontsource/roboto/700";
|
|
13
|
+
@import "@fontsource/roboto-mono/300";
|
package/dist/css/index.css
CHANGED
|
@@ -20,7 +20,7 @@ syntax: "<color>";
|
|
|
20
20
|
initial-value: hsl(0 0% 90%);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@property --kds-color-
|
|
23
|
+
@property --kds-color-page-default {
|
|
24
24
|
syntax: "<color>";
|
|
25
25
|
inherits: true;
|
|
26
26
|
initial-value: hsl(0 0% 99%);
|
|
@@ -137,7 +137,7 @@ syntax: "<color>";
|
|
|
137
137
|
@property --kds-color-background-danger-initial {
|
|
138
138
|
syntax: "<color>";
|
|
139
139
|
inherits: true;
|
|
140
|
-
initial-value: hsl(
|
|
140
|
+
initial-value: hsl(0 100% 97%);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
@property --kds-color-background-danger-hover {
|
|
@@ -170,58 +170,40 @@ syntax: "<color>";
|
|
|
170
170
|
initial-value: hsl(348 94% 21%);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
@property --kds-color-background-
|
|
174
|
-
syntax: "<color>";
|
|
175
|
-
inherits: true;
|
|
176
|
-
initial-value: hsl(29.514 98.554% 96.838%);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
@property --kds-color-background-warning-hover {
|
|
180
|
-
syntax: "<color>";
|
|
181
|
-
inherits: true;
|
|
182
|
-
initial-value: hsl(29.512 39.352% 92.463%);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@property --kds-color-background-warning-active {
|
|
186
|
-
syntax: "<color>";
|
|
187
|
-
inherits: true;
|
|
188
|
-
initial-value: hsl(29.51 23.726% 88.128%);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
@property --kds-color-background-warning-bold-initial {
|
|
173
|
+
@property --kds-color-background-input-initial {
|
|
192
174
|
syntax: "<color>";
|
|
193
175
|
inherits: true;
|
|
194
|
-
initial-value: hsl(
|
|
176
|
+
initial-value: hsl(0 0% 99%);
|
|
195
177
|
}
|
|
196
178
|
|
|
197
|
-
@property --kds-color-background-
|
|
179
|
+
@property --kds-color-background-input-hover {
|
|
198
180
|
syntax: "<color>";
|
|
199
181
|
inherits: true;
|
|
200
|
-
initial-value: hsl(
|
|
182
|
+
initial-value: hsl(330 0% 94.521%);
|
|
201
183
|
}
|
|
202
184
|
|
|
203
|
-
@property --kds-color-background-
|
|
185
|
+
@property --kds-color-background-input-active {
|
|
204
186
|
syntax: "<color>";
|
|
205
187
|
inherits: true;
|
|
206
|
-
initial-value: hsl(
|
|
188
|
+
initial-value: hsl(330 0% 85.683%);
|
|
207
189
|
}
|
|
208
190
|
|
|
209
|
-
@property --kds-color-background-
|
|
191
|
+
@property --kds-color-background-disabled-default {
|
|
210
192
|
syntax: "<color>";
|
|
211
193
|
inherits: true;
|
|
212
|
-
initial-value: hsl(
|
|
194
|
+
initial-value: hsl(180 0% 48% / 0.48);
|
|
213
195
|
}
|
|
214
196
|
|
|
215
|
-
@property --kds-color-background-
|
|
197
|
+
@property --kds-color-background-disabled-primary {
|
|
216
198
|
syntax: "<color>";
|
|
217
199
|
inherits: true;
|
|
218
|
-
initial-value: hsl(
|
|
200
|
+
initial-value: hsl(0 0% 48%);
|
|
219
201
|
}
|
|
220
202
|
|
|
221
|
-
@property --kds-color-background-
|
|
203
|
+
@property --kds-color-background-disabled-danger {
|
|
222
204
|
syntax: "<color>";
|
|
223
205
|
inherits: true;
|
|
224
|
-
initial-value: hsl(
|
|
206
|
+
initial-value: hsl(1.5788 43.542% 37.998%);
|
|
225
207
|
}
|
|
226
208
|
|
|
227
209
|
@property --kds-color-background-success-bold-initial {
|
|
@@ -230,108 +212,60 @@ syntax: "<color>";
|
|
|
230
212
|
initial-value: hsl(111 48% 31%);
|
|
231
213
|
}
|
|
232
214
|
|
|
233
|
-
@property --kds-color-background-
|
|
215
|
+
@property --kds-color-background-static-info {
|
|
234
216
|
syntax: "<color>";
|
|
235
217
|
inherits: true;
|
|
236
|
-
initial-value: hsl(
|
|
218
|
+
initial-value: hsl(217 100% 97%);
|
|
237
219
|
}
|
|
238
220
|
|
|
239
|
-
@property --kds-color-background-
|
|
221
|
+
@property --kds-color-background-static-info-muted {
|
|
240
222
|
syntax: "<color>";
|
|
241
223
|
inherits: true;
|
|
242
|
-
initial-value: hsl(
|
|
224
|
+
initial-value: hsl(217.11 100.13% 97.725%);
|
|
243
225
|
}
|
|
244
226
|
|
|
245
|
-
@property --kds-color-background-
|
|
227
|
+
@property --kds-color-background-static-warning {
|
|
246
228
|
syntax: "<color>";
|
|
247
229
|
inherits: true;
|
|
248
|
-
initial-value: hsl(
|
|
230
|
+
initial-value: hsl(30 95% 92%);
|
|
249
231
|
}
|
|
250
232
|
|
|
251
|
-
@property --kds-color-background-
|
|
233
|
+
@property --kds-color-background-static-warning-muted {
|
|
252
234
|
syntax: "<color>";
|
|
253
235
|
inherits: true;
|
|
254
|
-
initial-value: hsl(
|
|
236
|
+
initial-value: hsl(29.611 97.821% 95.88%);
|
|
255
237
|
}
|
|
256
238
|
|
|
257
|
-
@property --kds-color-background-
|
|
239
|
+
@property --kds-color-background-static-danger {
|
|
258
240
|
syntax: "<color>";
|
|
259
241
|
inherits: true;
|
|
260
|
-
initial-value: hsl(
|
|
242
|
+
initial-value: hsl(2 100% 92%);
|
|
261
243
|
}
|
|
262
244
|
|
|
263
|
-
@property --kds-color-background-
|
|
245
|
+
@property --kds-color-background-static-danger-muted {
|
|
264
246
|
syntax: "<color>";
|
|
265
247
|
inherits: true;
|
|
266
|
-
initial-value: hsl(
|
|
248
|
+
initial-value: hsl(0 100% 97%);
|
|
267
249
|
}
|
|
268
250
|
|
|
269
|
-
@property --kds-color-background-
|
|
251
|
+
@property --kds-color-background-static-success {
|
|
270
252
|
syntax: "<color>";
|
|
271
253
|
inherits: true;
|
|
272
|
-
initial-value: hsl(
|
|
254
|
+
initial-value: hsl(119.44 95.797% 93.942%);
|
|
273
255
|
}
|
|
274
256
|
|
|
275
|
-
@property --kds-color-background-
|
|
257
|
+
@property --kds-color-background-static-success-muted {
|
|
276
258
|
syntax: "<color>";
|
|
277
259
|
inherits: true;
|
|
278
|
-
initial-value: hsl(
|
|
260
|
+
initial-value: hsl(124.89 65.088% 97.723%);
|
|
279
261
|
}
|
|
280
262
|
|
|
281
|
-
@property --kds-color-background-brand
|
|
263
|
+
@property --kds-color-background-static-brand {
|
|
282
264
|
syntax: "<color>";
|
|
283
265
|
inherits: true;
|
|
284
266
|
initial-value: hsl(51 100% 50%);
|
|
285
267
|
}
|
|
286
268
|
|
|
287
|
-
@property --kds-color-background-brand-hover {
|
|
288
|
-
syntax: "<color>";
|
|
289
|
-
inherits: true;
|
|
290
|
-
initial-value: hsl(50.165 84.159% 44.695%);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@property --kds-color-background-brand-active {
|
|
294
|
-
syntax: "<color>";
|
|
295
|
-
inherits: true;
|
|
296
|
-
initial-value: hsl(49.385 73.102% 35.333%);
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
@property --kds-color-background-input-initial {
|
|
300
|
-
syntax: "<color>";
|
|
301
|
-
inherits: true;
|
|
302
|
-
initial-value: hsl(0 0% 99%);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
@property --kds-color-background-input-hover {
|
|
306
|
-
syntax: "<color>";
|
|
307
|
-
inherits: true;
|
|
308
|
-
initial-value: hsl(330 0% 94.521%);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
@property --kds-color-background-input-active {
|
|
312
|
-
syntax: "<color>";
|
|
313
|
-
inherits: true;
|
|
314
|
-
initial-value: hsl(330 0% 85.683%);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
@property --kds-color-background-disabled-default {
|
|
318
|
-
syntax: "<color>";
|
|
319
|
-
inherits: true;
|
|
320
|
-
initial-value: hsl(180 0% 48% / 0.48);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
@property --kds-color-background-disabled-primary {
|
|
324
|
-
syntax: "<color>";
|
|
325
|
-
inherits: true;
|
|
326
|
-
initial-value: hsl(0 0% 48%);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
@property --kds-color-background-disabled-danger {
|
|
330
|
-
syntax: "<color>";
|
|
331
|
-
inherits: true;
|
|
332
|
-
initial-value: hsl(1.5788 43.542% 37.998%);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
269
|
@property --kds-color-text-and-icon-neutral {
|
|
336
270
|
syntax: "<color>";
|
|
337
271
|
inherits: true;
|
|
@@ -1202,7 +1202,7 @@ syntax: "<color>";
|
|
|
1202
1202
|
initial-value: light-dark(hsl(0 0% 90%), hsl(0 0% 22%));
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
|
-
@property --kds-color-
|
|
1205
|
+
@property --kds-color-page-default {
|
|
1206
1206
|
syntax: "<color>";
|
|
1207
1207
|
inherits: true;
|
|
1208
1208
|
initial-value: light-dark(hsl(0 0% 99%), hsl(0 0% 13%));
|
|
@@ -1319,7 +1319,7 @@ syntax: "<color>";
|
|
|
1319
1319
|
@property --kds-color-background-danger-initial {
|
|
1320
1320
|
syntax: "<color>";
|
|
1321
1321
|
inherits: true;
|
|
1322
|
-
initial-value: light-dark(hsl(
|
|
1322
|
+
initial-value: light-dark(hsl(0 100% 97%), hsl(356.66 65.093% 15.235%));
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
1325
|
@property --kds-color-background-danger-hover {
|
|
@@ -1352,168 +1352,102 @@ syntax: "<color>";
|
|
|
1352
1352
|
initial-value: light-dark(hsl(348 94% 21%), hsl(356 77% 54% / 0.8));
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
|
-
@property --kds-color-background-
|
|
1356
|
-
syntax: "<color>";
|
|
1357
|
-
inherits: true;
|
|
1358
|
-
initial-value: light-dark(hsl(29.514 98.554% 96.838%), hsl(14.626 60.206% 14.715%));
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
@property --kds-color-background-warning-hover {
|
|
1362
|
-
syntax: "<color>";
|
|
1363
|
-
inherits: true;
|
|
1364
|
-
initial-value: light-dark(hsl(29.512 39.352% 92.463%), hsl(14.171 48.783% 17.797%));
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
@property --kds-color-background-warning-active {
|
|
1368
|
-
syntax: "<color>";
|
|
1369
|
-
inherits: true;
|
|
1370
|
-
initial-value: light-dark(hsl(29.51 23.726% 88.128%), hsl(14.532 35.821% 23.829%));
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
@property --kds-color-background-warning-bold-initial {
|
|
1355
|
+
@property --kds-color-background-input-initial {
|
|
1374
1356
|
syntax: "<color>";
|
|
1375
1357
|
inherits: true;
|
|
1376
|
-
initial-value: light-dark(hsl(
|
|
1358
|
+
initial-value: light-dark(hsl(0 0% 99%), hsl(0 0% 22%));
|
|
1377
1359
|
}
|
|
1378
1360
|
|
|
1379
|
-
@property --kds-color-background-
|
|
1361
|
+
@property --kds-color-background-input-hover {
|
|
1380
1362
|
syntax: "<color>";
|
|
1381
1363
|
inherits: true;
|
|
1382
|
-
initial-value: light-dark(hsl(
|
|
1364
|
+
initial-value: light-dark(hsl(330 0% 94.521%), hsl(330 0% 30.187%));
|
|
1383
1365
|
}
|
|
1384
1366
|
|
|
1385
|
-
@property --kds-color-background-
|
|
1367
|
+
@property --kds-color-background-input-active {
|
|
1386
1368
|
syntax: "<color>";
|
|
1387
1369
|
inherits: true;
|
|
1388
|
-
initial-value: light-dark(hsl(
|
|
1370
|
+
initial-value: light-dark(hsl(330 0% 85.683%), hsl(336 0% 38.771%));
|
|
1389
1371
|
}
|
|
1390
1372
|
|
|
1391
|
-
@property --kds-color-background-
|
|
1373
|
+
@property --kds-color-background-disabled-default {
|
|
1392
1374
|
syntax: "<color>";
|
|
1393
1375
|
inherits: true;
|
|
1394
|
-
initial-value:
|
|
1376
|
+
initial-value: hsl(180 0% 48% / 0.48);
|
|
1395
1377
|
}
|
|
1396
1378
|
|
|
1397
|
-
@property --kds-color-background-
|
|
1379
|
+
@property --kds-color-background-disabled-primary {
|
|
1398
1380
|
syntax: "<color>";
|
|
1399
1381
|
inherits: true;
|
|
1400
|
-
initial-value:
|
|
1382
|
+
initial-value: hsl(173.77 18.031% 40.307%);
|
|
1401
1383
|
}
|
|
1402
1384
|
|
|
1403
|
-
@property --kds-color-background-
|
|
1385
|
+
@property --kds-color-background-disabled-danger {
|
|
1404
1386
|
syntax: "<color>";
|
|
1405
1387
|
inherits: true;
|
|
1406
|
-
initial-value:
|
|
1388
|
+
initial-value: hsl(1.5788 43.542% 37.998%);
|
|
1407
1389
|
}
|
|
1408
1390
|
|
|
1409
1391
|
@property --kds-color-background-success-bold-initial {
|
|
1410
1392
|
syntax: "<color>";
|
|
1411
1393
|
inherits: true;
|
|
1412
|
-
initial-value: light-dark(hsl(111 48% 31%), hsl(
|
|
1394
|
+
initial-value: light-dark(hsl(111 48% 31%), hsl(124 47% 21%));
|
|
1413
1395
|
}
|
|
1414
1396
|
|
|
1415
|
-
@property --kds-color-background-
|
|
1397
|
+
@property --kds-color-background-static-info {
|
|
1416
1398
|
syntax: "<color>";
|
|
1417
1399
|
inherits: true;
|
|
1418
|
-
initial-value: light-dark(hsl(
|
|
1400
|
+
initial-value: light-dark(hsl(217 100% 97%), hsl(210 50% 28%));
|
|
1419
1401
|
}
|
|
1420
1402
|
|
|
1421
|
-
@property --kds-color-background-
|
|
1403
|
+
@property --kds-color-background-static-info-muted {
|
|
1422
1404
|
syntax: "<color>";
|
|
1423
1405
|
inherits: true;
|
|
1424
|
-
initial-value: light-dark(hsl(
|
|
1406
|
+
initial-value: light-dark(hsl(217.11 100.13% 97.725%), hsl(211.86 41.035% 17.864%));
|
|
1425
1407
|
}
|
|
1426
1408
|
|
|
1427
|
-
@property --kds-color-background-
|
|
1409
|
+
@property --kds-color-background-static-warning {
|
|
1428
1410
|
syntax: "<color>";
|
|
1429
1411
|
inherits: true;
|
|
1430
|
-
initial-value: light-dark(hsl(
|
|
1412
|
+
initial-value: light-dark(hsl(30 95% 92%), hsl(13 66% 23%));
|
|
1431
1413
|
}
|
|
1432
1414
|
|
|
1433
|
-
@property --kds-color-background-
|
|
1415
|
+
@property --kds-color-background-static-warning-muted {
|
|
1434
1416
|
syntax: "<color>";
|
|
1435
1417
|
inherits: true;
|
|
1436
|
-
initial-value: light-dark(hsl(
|
|
1418
|
+
initial-value: light-dark(hsl(29.611 97.821% 95.88%), hsl(14.626 60.206% 14.715%));
|
|
1437
1419
|
}
|
|
1438
1420
|
|
|
1439
|
-
@property --kds-color-background-
|
|
1421
|
+
@property --kds-color-background-static-danger {
|
|
1440
1422
|
syntax: "<color>";
|
|
1441
1423
|
inherits: true;
|
|
1442
|
-
initial-value: light-dark(hsl(
|
|
1424
|
+
initial-value: light-dark(hsl(2 100% 92%), hsl(348 97% 27%));
|
|
1443
1425
|
}
|
|
1444
1426
|
|
|
1445
|
-
@property --kds-color-background-
|
|
1427
|
+
@property --kds-color-background-static-danger-muted {
|
|
1446
1428
|
syntax: "<color>";
|
|
1447
1429
|
inherits: true;
|
|
1448
|
-
initial-value:
|
|
1430
|
+
initial-value: hsl(0 100% 97%);
|
|
1449
1431
|
}
|
|
1450
1432
|
|
|
1451
|
-
@property --kds-color-background-
|
|
1433
|
+
@property --kds-color-background-static-success {
|
|
1452
1434
|
syntax: "<color>";
|
|
1453
1435
|
inherits: true;
|
|
1454
|
-
initial-value: light-dark(hsl(
|
|
1436
|
+
initial-value: light-dark(hsl(119.44 95.797% 93.942%), hsl(124 47% 21%));
|
|
1455
1437
|
}
|
|
1456
1438
|
|
|
1457
|
-
@property --kds-color-background-
|
|
1439
|
+
@property --kds-color-background-static-success-muted {
|
|
1458
1440
|
syntax: "<color>";
|
|
1459
1441
|
inherits: true;
|
|
1460
|
-
initial-value: light-dark(hsl(
|
|
1442
|
+
initial-value: light-dark(hsl(124.89 65.088% 97.723%), hsl(128.09 38.652% 10.529%));
|
|
1461
1443
|
}
|
|
1462
1444
|
|
|
1463
|
-
@property --kds-color-background-brand
|
|
1445
|
+
@property --kds-color-background-static-brand {
|
|
1464
1446
|
syntax: "<color>";
|
|
1465
1447
|
inherits: true;
|
|
1466
1448
|
initial-value: hsl(51 100% 50%);
|
|
1467
1449
|
}
|
|
1468
1450
|
|
|
1469
|
-
@property --kds-color-background-brand-hover {
|
|
1470
|
-
syntax: "<color>";
|
|
1471
|
-
inherits: true;
|
|
1472
|
-
initial-value: light-dark(hsl(50.165 84.159% 44.695%), hsl(48.411 100% 65.242%));
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
@property --kds-color-background-brand-active {
|
|
1476
|
-
syntax: "<color>";
|
|
1477
|
-
inherits: true;
|
|
1478
|
-
initial-value: light-dark(hsl(49.385 73.102% 35.333%), hsl(47.704 100% 69.488%));
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
@property --kds-color-background-input-initial {
|
|
1482
|
-
syntax: "<color>";
|
|
1483
|
-
inherits: true;
|
|
1484
|
-
initial-value: light-dark(hsl(0 0% 99%), hsl(0 0% 22%));
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
@property --kds-color-background-input-hover {
|
|
1488
|
-
syntax: "<color>";
|
|
1489
|
-
inherits: true;
|
|
1490
|
-
initial-value: light-dark(hsl(330 0% 94.521%), hsl(330 0% 30.187%));
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
@property --kds-color-background-input-active {
|
|
1494
|
-
syntax: "<color>";
|
|
1495
|
-
inherits: true;
|
|
1496
|
-
initial-value: light-dark(hsl(330 0% 85.683%), hsl(336 0% 38.771%));
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
@property --kds-color-background-disabled-default {
|
|
1500
|
-
syntax: "<color>";
|
|
1501
|
-
inherits: true;
|
|
1502
|
-
initial-value: hsl(180 0% 48% / 0.48);
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
@property --kds-color-background-disabled-primary {
|
|
1506
|
-
syntax: "<color>";
|
|
1507
|
-
inherits: true;
|
|
1508
|
-
initial-value: hsl(173.77 18.031% 40.307%);
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
@property --kds-color-background-disabled-danger {
|
|
1512
|
-
syntax: "<color>";
|
|
1513
|
-
inherits: true;
|
|
1514
|
-
initial-value: hsl(1.5788 43.542% 37.998%);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
1451
|
@property --kds-color-text-and-icon-neutral {
|
|
1518
1452
|
syntax: "<color>";
|
|
1519
1453
|
inherits: true;
|
|
@@ -1769,7 +1703,7 @@ syntax: "<color>";
|
|
|
1769
1703
|
@property --kds-color-blanket-default {
|
|
1770
1704
|
syntax: "<color>";
|
|
1771
1705
|
inherits: true;
|
|
1772
|
-
initial-value:
|
|
1706
|
+
initial-value: hsl(330 0% 11% / 0.8);
|
|
1773
1707
|
}
|
|
1774
1708
|
|
|
1775
1709
|
@property --kds-color-nodes-and-variables-flow-variable {
|
|
@@ -2714,6 +2648,12 @@ syntax: "<length>";
|
|
|
2714
2648
|
initial-value: 720px;
|
|
2715
2649
|
}
|
|
2716
2650
|
|
|
2651
|
+
@property --kds-dimension-component-width-61x {
|
|
2652
|
+
syntax: "<length>";
|
|
2653
|
+
inherits: false;
|
|
2654
|
+
initial-value: 976px;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2717
2657
|
@property --kds-dimension-icon-0-56x {
|
|
2718
2658
|
syntax: "<length>";
|
|
2719
2659
|
inherits: false;
|
|
@@ -3048,4 +2988,10 @@ syntax: "*";
|
|
|
3048
2988
|
syntax: "*";
|
|
3049
2989
|
inherits: false;
|
|
3050
2990
|
initial-value: 0 1px 2px 0 light-dark(hsl(330 0% 32% / 0.5), hsl(345 0% 10% / 0.6));
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
@property --kds-color-background-static-danger-bold {
|
|
2994
|
+
syntax: "<color>";
|
|
2995
|
+
inherits: true;
|
|
2996
|
+
initial-value: hsl(356.66 65.093% 15.235%);
|
|
3051
2997
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--kds-color-surface-default: hsl(0 0% 98%);
|
|
7
7
|
--kds-color-surface-muted: hsl(0 0% 94%);
|
|
8
8
|
--kds-color-surface-subtle: hsl(0 0% 90%);
|
|
9
|
-
--kds-color-
|
|
9
|
+
--kds-color-page-default: hsl(0 0% 99%);
|
|
10
10
|
--kds-color-background-neutral-initial: hsl(330 0% 11% / 0);
|
|
11
11
|
--kds-color-background-neutral-hover: hsl(180 0% 48% / 0.16);
|
|
12
12
|
--kds-color-background-neutral-active: hsl(180 0% 48% / 0.32);
|
|
@@ -25,39 +25,28 @@
|
|
|
25
25
|
--kds-color-background-selected-bold-initial: hsl(0 0% 19%);
|
|
26
26
|
--kds-color-background-selected-bold-hover: hsl(0 0% 16%);
|
|
27
27
|
--kds-color-background-selected-bold-active: hsl(0 0% 13%);
|
|
28
|
-
--kds-color-background-danger-initial: hsl(
|
|
28
|
+
--kds-color-background-danger-initial: hsl(0 100% 97%);
|
|
29
29
|
--kds-color-background-danger-hover: hsl(3 100% 86%);
|
|
30
30
|
--kds-color-background-danger-active: hsl(4 100% 80%);
|
|
31
31
|
--kds-color-background-danger-bold-initial: hsl(349 91% 35%);
|
|
32
32
|
--kds-color-background-danger-bold-hover: hsl(348 97% 27%);
|
|
33
33
|
--kds-color-background-danger-bold-active: hsl(348 94% 21%);
|
|
34
|
-
--kds-color-background-warning-initial: hsl(29.514 98.554% 96.838%);
|
|
35
|
-
--kds-color-background-warning-hover: hsl(29.512 39.352% 92.463%);
|
|
36
|
-
--kds-color-background-warning-active: hsl(29.51 23.726% 88.128%);
|
|
37
|
-
--kds-color-background-warning-bold-initial: hsl(22 60% 45%);
|
|
38
|
-
--kds-color-background-warning-bold-hover: hsl(21.929 58.367% 37.68%);
|
|
39
|
-
--kds-color-background-warning-bold-active: hsl(21.825 55.638% 28.836%);
|
|
40
|
-
--kds-color-background-success-initial: hsl(118.68 97.025% 96.828%);
|
|
41
|
-
--kds-color-background-success-hover: hsl(118.68 38.813% 92.454%);
|
|
42
|
-
--kds-color-background-success-active: hsl(118.67 23.411% 88.119%);
|
|
43
|
-
--kds-color-background-success-bold-initial: hsl(111 48% 31%);
|
|
44
|
-
--kds-color-background-success-bold-hover: hsl(110.47 45.877% 26.246%);
|
|
45
|
-
--kds-color-background-success-bold-active: hsl(109.63 42.516% 20.454%);
|
|
46
|
-
--kds-color-background-info-initial: hsl(216.77 100% 96.851%);
|
|
47
|
-
--kds-color-background-info-hover: hsl(216.77 39.826% 92.476%);
|
|
48
|
-
--kds-color-background-info-active: hsl(216.78 23.993% 88.14%);
|
|
49
|
-
--kds-color-background-info-bold-initial: hsl(208 63% 41%);
|
|
50
|
-
--kds-color-background-info-bold-hover: hsl(208.92 58.259% 34.934%);
|
|
51
|
-
--kds-color-background-info-bold-active: hsl(210.19 52% 27.273%);
|
|
52
|
-
--kds-color-background-brand-initial: hsl(51 100% 50%);
|
|
53
|
-
--kds-color-background-brand-hover: hsl(50.165 84.159% 44.695%);
|
|
54
|
-
--kds-color-background-brand-active: hsl(49.385 73.102% 35.333%);
|
|
55
34
|
--kds-color-background-input-initial: hsl(0 0% 99%);
|
|
56
35
|
--kds-color-background-input-hover: hsl(330 0% 94.521%);
|
|
57
36
|
--kds-color-background-input-active: hsl(330 0% 85.683%);
|
|
58
37
|
--kds-color-background-disabled-default: hsl(180 0% 48% / 0.48);
|
|
59
38
|
--kds-color-background-disabled-primary: hsl(0 0% 48%);
|
|
60
39
|
--kds-color-background-disabled-danger: hsl(1.5788 43.542% 37.998%);
|
|
40
|
+
--kds-color-background-success-bold-initial: hsl(111 48% 31%);
|
|
41
|
+
--kds-color-background-static-info: hsl(217 100% 97%);
|
|
42
|
+
--kds-color-background-static-info-muted: hsl(217.11 100.13% 97.725%);
|
|
43
|
+
--kds-color-background-static-warning: hsl(30 95% 92%);
|
|
44
|
+
--kds-color-background-static-warning-muted: hsl(29.611 97.821% 95.88%);
|
|
45
|
+
--kds-color-background-static-danger: hsl(2 100% 92%);
|
|
46
|
+
--kds-color-background-static-danger-muted: hsl(0 100% 97%);
|
|
47
|
+
--kds-color-background-static-success: hsl(119.44 95.797% 93.942%);
|
|
48
|
+
--kds-color-background-static-success-muted: hsl(124.89 65.088% 97.723%);
|
|
49
|
+
--kds-color-background-static-brand: hsl(51 100% 50%);
|
|
61
50
|
--kds-color-text-and-icon-neutral: hsl(0 0% 16%);
|
|
62
51
|
--kds-color-text-and-icon-muted: hsl(0 0% 32%);
|
|
63
52
|
--kds-color-text-and-icon-subtle: hsl(0 0% 43%);
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
--kds-color-surface-default: light-dark(hsl(0 0% 98%), hsl(0 0% 16%));
|
|
204
204
|
--kds-color-surface-muted: light-dark(hsl(0 0% 94%), hsl(0 0% 19%));
|
|
205
205
|
--kds-color-surface-subtle: light-dark(hsl(0 0% 90%), hsl(0 0% 22%));
|
|
206
|
-
--kds-color-
|
|
206
|
+
--kds-color-page-default: light-dark(hsl(0 0% 99%), hsl(0 0% 13%));
|
|
207
207
|
--kds-color-background-neutral-initial: hsl(330 0% 11% / 0);
|
|
208
208
|
--kds-color-background-neutral-hover: light-dark(hsl(180 0% 48% / 0.16), hsl(300 0% 90% / 0.16));
|
|
209
209
|
--kds-color-background-neutral-active: light-dark(hsl(180 0% 48% / 0.32), hsl(180 0% 48% / 0.56));
|
|
@@ -222,39 +222,28 @@
|
|
|
222
222
|
--kds-color-background-selected-bold-initial: light-dark(hsl(174 48% 31%), hsl(176 67% 22%));
|
|
223
223
|
--kds-color-background-selected-bold-hover: light-dark(hsl(176 67% 22%), hsl(174 48% 31%));
|
|
224
224
|
--kds-color-background-selected-bold-active: light-dark(hsl(177 82% 18%), hsl(172 27% 48%));
|
|
225
|
-
--kds-color-background-danger-initial: light-dark(hsl(
|
|
225
|
+
--kds-color-background-danger-initial: light-dark(hsl(0 100% 97%), hsl(356.66 65.093% 15.235%));
|
|
226
226
|
--kds-color-background-danger-hover: light-dark(hsl(3 100% 86%), hsl(349 91% 35% / 0.72));
|
|
227
227
|
--kds-color-background-danger-active: light-dark(hsl(4 100% 80%), hsl(353 75% 45% / 0.72));
|
|
228
228
|
--kds-color-background-danger-bold-initial: light-dark(hsl(349 91% 35%), hsl(348 97% 27%));
|
|
229
229
|
--kds-color-background-danger-bold-hover: light-dark(hsl(348 97% 27%), hsl(353 75% 45% / 0.8));
|
|
230
230
|
--kds-color-background-danger-bold-active: light-dark(hsl(348 94% 21%), hsl(356 77% 54% / 0.8));
|
|
231
|
-
--kds-color-background-warning-initial: light-dark(hsl(29.514 98.554% 96.838%), hsl(14.626 60.206% 14.715%));
|
|
232
|
-
--kds-color-background-warning-hover: light-dark(hsl(29.512 39.352% 92.463%), hsl(14.171 48.783% 17.797%));
|
|
233
|
-
--kds-color-background-warning-active: light-dark(hsl(29.51 23.726% 88.128%), hsl(14.532 35.821% 23.829%));
|
|
234
|
-
--kds-color-background-warning-bold-initial: light-dark(hsl(22 60% 45%), hsl(19 63% 38%));
|
|
235
|
-
--kds-color-background-warning-bold-hover: light-dark(hsl(21.929 58.367% 37.68%), hsl(19.04 44.421% 47.984%));
|
|
236
|
-
--kds-color-background-warning-bold-active: light-dark(hsl(21.825 55.638% 28.836%), hsl(19.038 42.206% 52.935%));
|
|
237
|
-
--kds-color-background-success-initial: light-dark(hsl(118.68 97.025% 96.828%), hsl(128.09 38.652% 10.529%));
|
|
238
|
-
--kds-color-background-success-hover: light-dark(hsl(118.68 38.813% 92.454%), hsl(126.93 29.012% 13.533%));
|
|
239
|
-
--kds-color-background-success-active: light-dark(hsl(118.67 23.411% 88.119%), hsl(125.21 18.669% 19.69%));
|
|
240
|
-
--kds-color-background-success-bold-initial: light-dark(hsl(111 48% 31%), hsl(116 47% 26%));
|
|
241
|
-
--kds-color-background-success-bold-hover: light-dark(hsl(110.47 45.877% 26.246%), hsl(112.26 28.404% 37.07%));
|
|
242
|
-
--kds-color-background-success-bold-active: light-dark(hsl(109.63 42.516% 20.454%), hsl(111.19 22.717% 42.67%));
|
|
243
|
-
--kds-color-background-info-initial: light-dark(hsl(216.77 100% 96.851%), hsl(211.86 41.035% 17.864%));
|
|
244
|
-
--kds-color-background-info-hover: light-dark(hsl(216.77 39.826% 92.476%), hsl(212.68 33.733% 20.806%));
|
|
245
|
-
--kds-color-background-info-active: light-dark(hsl(216.78 23.993% 88.14%), hsl(213.81 24.237% 26.721%));
|
|
246
|
-
--kds-color-background-info-bold-initial: light-dark(hsl(208 63% 41%), hsl(208 61% 34%));
|
|
247
|
-
--kds-color-background-info-bold-hover: light-dark(hsl(208.92 58.259% 34.934%), hsl(211.76 34.965% 45.77%));
|
|
248
|
-
--kds-color-background-info-bold-active: light-dark(hsl(210.19 52% 27.273%), hsl(212.8 29.174% 51.036%));
|
|
249
|
-
--kds-color-background-brand-initial: hsl(51 100% 50%);
|
|
250
|
-
--kds-color-background-brand-hover: light-dark(hsl(50.165 84.159% 44.695%), hsl(48.411 100% 65.242%));
|
|
251
|
-
--kds-color-background-brand-active: light-dark(hsl(49.385 73.102% 35.333%), hsl(47.704 100% 69.488%));
|
|
252
231
|
--kds-color-background-input-initial: light-dark(hsl(0 0% 99%), hsl(0 0% 22%));
|
|
253
232
|
--kds-color-background-input-hover: light-dark(hsl(330 0% 94.521%), hsl(330 0% 30.187%));
|
|
254
233
|
--kds-color-background-input-active: light-dark(hsl(330 0% 85.683%), hsl(336 0% 38.771%));
|
|
255
234
|
--kds-color-background-disabled-default: hsl(180 0% 48% / 0.48);
|
|
256
235
|
--kds-color-background-disabled-primary: hsl(173.77 18.031% 40.307%);
|
|
257
236
|
--kds-color-background-disabled-danger: hsl(1.5788 43.542% 37.998%);
|
|
237
|
+
--kds-color-background-success-bold-initial: light-dark(hsl(111 48% 31%), hsl(124 47% 21%));
|
|
238
|
+
--kds-color-background-static-info: light-dark(hsl(217 100% 97%), hsl(210 50% 28%));
|
|
239
|
+
--kds-color-background-static-info-muted: light-dark(hsl(217.11 100.13% 97.725%), hsl(211.86 41.035% 17.864%));
|
|
240
|
+
--kds-color-background-static-warning: light-dark(hsl(30 95% 92%), hsl(13 66% 23%));
|
|
241
|
+
--kds-color-background-static-warning-muted: light-dark(hsl(29.611 97.821% 95.88%), hsl(14.626 60.206% 14.715%));
|
|
242
|
+
--kds-color-background-static-danger: light-dark(hsl(2 100% 92%), hsl(348 97% 27%));
|
|
243
|
+
--kds-color-background-static-danger-muted: hsl(0 100% 97%);
|
|
244
|
+
--kds-color-background-static-success: light-dark(hsl(119.44 95.797% 93.942%), hsl(124 47% 21%));
|
|
245
|
+
--kds-color-background-static-success-muted: light-dark(hsl(124.89 65.088% 97.723%), hsl(128.09 38.652% 10.529%));
|
|
246
|
+
--kds-color-background-static-brand: hsl(51 100% 50%);
|
|
258
247
|
--kds-color-text-and-icon-neutral: light-dark(hsl(0 0% 16%), hsl(0 0% 94%));
|
|
259
248
|
--kds-color-text-and-icon-muted: light-dark(hsl(0 0% 32%), hsl(0 0% 73%));
|
|
260
249
|
--kds-color-text-and-icon-subtle: light-dark(hsl(0 0% 43%), hsl(0 0% 73%));
|
|
@@ -297,7 +286,7 @@
|
|
|
297
286
|
--kds-color-border-neutral-bold-active: light-dark(hsl(345 0% 10% / 0.74), hsl(330 0% 99% / 0.68));
|
|
298
287
|
--kds-color-focus-outline: light-dark(hsl(209 57% 50%), hsl(214 92% 77%));
|
|
299
288
|
--kds-color-focus-background: light-dark(hsl(217 100% 97%), hsl(211.86 41.035% 17.864%));
|
|
300
|
-
--kds-color-blanket-default:
|
|
289
|
+
--kds-color-blanket-default: hsl(330 0% 11% / 0.8);
|
|
301
290
|
--kds-color-nodes-and-variables-flow-variable: light-dark(hsl(360 84% 63%), hsl(0 100% 66%));
|
|
302
291
|
--kds-color-nodes-and-variables-loop: hsl(188 52% 77%);
|
|
303
292
|
--kds-color-nodes-and-variables-manipulator: hsl(51 100% 50%);
|
|
@@ -455,6 +444,7 @@
|
|
|
455
444
|
--kds-dimension-component-width-25x: 400px;
|
|
456
445
|
--kds-dimension-component-width-32x: 512px;
|
|
457
446
|
--kds-dimension-component-width-45x: 720px;
|
|
447
|
+
--kds-dimension-component-width-61x: 976px;
|
|
458
448
|
--kds-dimension-icon-0-56x: 9px;
|
|
459
449
|
--kds-dimension-icon-0-75x: 12px;
|
|
460
450
|
--kds-dimension-icon-1x: 16px;
|
|
@@ -511,4 +501,5 @@
|
|
|
511
501
|
--kds-elevation-level-1: 0 1px 1px 0 light-dark(hsl(330 0% 73% / 0.32), hsl(345 0% 10% / 0.9)), 0 0 1px 0 light-dark(hsl(330 0% 32% / 0.14), hsl(345 0% 10% / 0.94)), 0 0 8px 0 light-dark(hsl(330 0% 32% / 0.12), hsl(345 0% 10% / 0.98));
|
|
512
502
|
--kds-elevation-level-3: 0 2px 4px 0 light-dark(hsl(330 0% 73% / 0.32), hsl(345 0% 10% / 0.9)), 0 4px 8px 0 light-dark(hsl(330 0% 32% / 0.14), hsl(345 0% 10% / 0.94)), 0 0 20px 0 light-dark(hsl(330 0% 32% / 0.12), hsl(345 0% 10% / 0.98));
|
|
513
503
|
--kds-box-shadow-knob: 0 1px 2px 0 light-dark(hsl(330 0% 32% / 0.5), hsl(345 0% 10% / 0.6));
|
|
504
|
+
--kds-color-background-static-danger-bold: hsl(356.66 65.093% 15.235%);
|
|
514
505
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-styles",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Package containing the design tokens and icons for the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"author": "KNIME AG, Zurich, Switzerland",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@fontsource/roboto": "5.2.8",
|
|
15
|
+
"@fontsource/roboto-condensed": "5.2.8",
|
|
16
|
+
"@fontsource/roboto-mono": "5.2.8",
|
|
14
17
|
"modern-normalize": "3.0.1"
|
|
15
18
|
},
|
|
16
19
|
"devDependencies": {
|
|
@@ -29,6 +32,8 @@
|
|
|
29
32
|
],
|
|
30
33
|
"exports": {
|
|
31
34
|
"./index.css": "./dist/css/index.css",
|
|
35
|
+
"./fonts.css": "./dist/css/fonts.css",
|
|
36
|
+
"./fonts-workflows.css": "./dist/css/fonts-workflows.css",
|
|
32
37
|
"./kds-variables.css": "./dist/tokens/css/_variables.css",
|
|
33
38
|
"./kds-properties.css": "./dist/tokens/css/_properties.css",
|
|
34
39
|
"./kds-legacy-theme.css": "./dist/tokens/css/_variables-legacy.css",
|