@knime/kds-styles 2.9.0 → 4.0.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 +16 -0
- package/README.md +0 -1
- package/dist/css/fonts.css +1 -1
- package/dist/tokens/css/_properties.css +20 -2
- package/dist/tokens/css/_variables.css +5 -2
- package/dist/tokens/ts/font.js +5 -5
- package/dist/tokens/ts/spacing.d.ts +8 -0
- package/dist/tokens/ts/spacing.js +16 -0
- package/package.json +1 -2
- package/dist/tokens/css/_properties-legacy.css +0 -1539
- package/dist/tokens/css/_variables-legacy.css +0 -262
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @knime/kds-styles
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
## 3.0.0
|
|
6
|
+
|
|
7
|
+
### Major Changes
|
|
8
|
+
|
|
9
|
+
- 356af93: Remove the KDS legacy theme.
|
|
10
|
+
|
|
11
|
+
BREAKING CHANGES:
|
|
12
|
+
|
|
13
|
+
- Removed the `kds-legacy-theme.css` export (`@import "@knime/kds-styles/kds-legacy-theme.css"`) and the generated legacy token files. Remove the import.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 13cbb42: `kds.font.base.code.small` and `kds.font.base.code.xsmall` now use the light (300) weight of Roboto Mono. Adds a `kds.core.font-weight.light` (300) primitive token.
|
|
18
|
+
|
|
3
19
|
## 2.9.0
|
|
4
20
|
|
|
5
21
|
## 2.8.2
|
package/README.md
CHANGED
|
@@ -35,7 +35,6 @@ The design system uses the Roboto, Roboto Condensed and Roboto Mono fonts for ty
|
|
|
35
35
|
To use the design tokens and basic CSS you can simply import the following into a central CSS of your project:
|
|
36
36
|
|
|
37
37
|
- `@import "@knime/kds-styles/kds-variables.css";`: Imports all built design tokens as CSS variables, including the colors in light and dark mode
|
|
38
|
-
- `@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
|
|
39
38
|
- `@import "@knime/kds-styles/fonts.css"`: Import CSS font definitions for Roboto and Roboto Mono
|
|
40
39
|
- `@import "@knime/kds-styles/fonts-workflows.css"`: Import CSS font definitions for Roboto Condensed which is only used in the context of workflow editing
|
|
41
40
|
|
package/dist/css/fonts.css
CHANGED
|
@@ -1106,6 +1106,12 @@ syntax: "<string>#";
|
|
|
1106
1106
|
initial-value: 'Roboto Mono', monospace;
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
+
@property --kds-core-font-weight-light {
|
|
1110
|
+
syntax: "<number>";
|
|
1111
|
+
inherits: true;
|
|
1112
|
+
initial-value: 300;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1109
1115
|
@property --kds-core-font-weight-regular {
|
|
1110
1116
|
syntax: "<number>";
|
|
1111
1117
|
inherits: true;
|
|
@@ -2822,6 +2828,18 @@ syntax: "<length>";
|
|
|
2822
2828
|
initial-value: -4px;
|
|
2823
2829
|
}
|
|
2824
2830
|
|
|
2831
|
+
@property --kds-spacing-container-negative-0-375x {
|
|
2832
|
+
syntax: "<length>";
|
|
2833
|
+
inherits: false;
|
|
2834
|
+
initial-value: -6px;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
@property --kds-spacing-container-negative-0-5x {
|
|
2838
|
+
syntax: "<length>";
|
|
2839
|
+
inherits: false;
|
|
2840
|
+
initial-value: -8px;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2825
2843
|
@property --kds-spacing-container-none {
|
|
2826
2844
|
syntax: "<length>";
|
|
2827
2845
|
inherits: false;
|
|
@@ -3401,13 +3419,13 @@ syntax: "<string>";
|
|
|
3401
3419
|
@property --kds-font-base-code-xsmall {
|
|
3402
3420
|
syntax: "<string>";
|
|
3403
3421
|
inherits: true;
|
|
3404
|
-
initial-value:
|
|
3422
|
+
initial-value: 300 10px/normal 'Roboto Mono', monospace;
|
|
3405
3423
|
}
|
|
3406
3424
|
|
|
3407
3425
|
@property --kds-font-base-code-small {
|
|
3408
3426
|
syntax: "<string>";
|
|
3409
3427
|
inherits: true;
|
|
3410
|
-
initial-value:
|
|
3428
|
+
initial-value: 300 12px/normal 'Roboto Mono', monospace;
|
|
3411
3429
|
}
|
|
3412
3430
|
|
|
3413
3431
|
@property --kds-font-workflow-annotation-headline-h1 {
|
|
@@ -187,6 +187,7 @@
|
|
|
187
187
|
--kds-core-font-family-roboto: Roboto, sans-serif;
|
|
188
188
|
--kds-core-font-family-roboto-condensed: 'Roboto Condensed', sans-serif;
|
|
189
189
|
--kds-core-font-family-roboto-mono: 'Roboto Mono', monospace;
|
|
190
|
+
--kds-core-font-weight-light: 300;
|
|
190
191
|
--kds-core-font-weight-regular: 400;
|
|
191
192
|
--kds-core-font-weight-regular-italic-weight: 400;
|
|
192
193
|
--kds-core-font-weight-regular-italic-style: italic;
|
|
@@ -473,6 +474,8 @@
|
|
|
473
474
|
--kds-sizing-viewport-breakpoints-1400: 1400px;
|
|
474
475
|
--kds-sizing-viewport-breakpoints-1728: 1728px;
|
|
475
476
|
--kds-spacing-container-negative-0-25x: -4px;
|
|
477
|
+
--kds-spacing-container-negative-0-375x: -6px;
|
|
478
|
+
--kds-spacing-container-negative-0-5x: -8px;
|
|
476
479
|
--kds-spacing-container-none: 0;
|
|
477
480
|
--kds-spacing-container-0-10x: 1px;
|
|
478
481
|
--kds-spacing-container-0-12x: 2px;
|
|
@@ -569,8 +572,8 @@
|
|
|
569
572
|
--kds-font-base-interactive-medium-strong: 500 14px/normal Roboto, sans-serif;
|
|
570
573
|
--kds-font-base-interactive-large: 400 16px/normal Roboto, sans-serif;
|
|
571
574
|
--kds-font-base-interactive-large-strong: 500 16px/normal Roboto, sans-serif;
|
|
572
|
-
--kds-font-base-code-xsmall:
|
|
573
|
-
--kds-font-base-code-small:
|
|
575
|
+
--kds-font-base-code-xsmall: 300 10px/normal 'Roboto Mono', monospace;
|
|
576
|
+
--kds-font-base-code-small: 300 12px/normal 'Roboto Mono', monospace;
|
|
574
577
|
--kds-font-workflow-annotation-headline-h1: 700 36px/1.5 'Roboto Condensed', sans-serif;
|
|
575
578
|
--kds-font-workflow-annotation-headline-h2: 700 30px/1.5 'Roboto Condensed', sans-serif;
|
|
576
579
|
--kds-font-workflow-annotation-headline-h3: 700 26px/1.5 'Roboto Condensed', sans-serif;
|
package/dist/tokens/ts/font.js
CHANGED
|
@@ -340,21 +340,21 @@ export const font = {
|
|
|
340
340
|
code: {
|
|
341
341
|
xsmall: {
|
|
342
342
|
fontFamily: "Roboto Mono",
|
|
343
|
-
fontWeight:
|
|
343
|
+
fontWeight: 300,
|
|
344
344
|
fontSize: { value: 10, unit: "px" },
|
|
345
345
|
lineHeight: "normal",
|
|
346
346
|
css: {
|
|
347
|
-
value: "
|
|
347
|
+
value: "300 10px/normal 'Roboto Mono', monospace",
|
|
348
348
|
variable: "var(--kds-font-base-code-xsmall)",
|
|
349
349
|
},
|
|
350
350
|
},
|
|
351
351
|
small: {
|
|
352
352
|
fontFamily: "Roboto Mono",
|
|
353
|
-
fontWeight:
|
|
354
|
-
fontSize: { value:
|
|
353
|
+
fontWeight: 300,
|
|
354
|
+
fontSize: { value: 12, unit: "px" },
|
|
355
355
|
lineHeight: "normal",
|
|
356
356
|
css: {
|
|
357
|
-
value: "
|
|
357
|
+
value: "300 12px/normal 'Roboto Mono', monospace",
|
|
358
358
|
variable: "var(--kds-font-base-code-small)",
|
|
359
359
|
},
|
|
360
360
|
},
|
|
@@ -10,6 +10,14 @@ export type KdsSpacingTokens = {
|
|
|
10
10
|
* Negative spacing (-4px). Used for overlapping elements like the KdsAvatarGroup component.
|
|
11
11
|
*/
|
|
12
12
|
readonly "0.25x": KdsDimension;
|
|
13
|
+
/**
|
|
14
|
+
* Negative spacing (-6px). Used for overlapping elements like the KdsPromptInput component.
|
|
15
|
+
*/
|
|
16
|
+
readonly "0.375x": KdsDimension;
|
|
17
|
+
/**
|
|
18
|
+
* Negative spacing (-8px). Used for overlapping elements like the KdsPromptInput component.
|
|
19
|
+
*/
|
|
20
|
+
readonly "0.5x": KdsDimension;
|
|
13
21
|
};
|
|
14
22
|
/**
|
|
15
23
|
* No spacing (0px). Use when no gap or padding is needed.
|
|
@@ -13,6 +13,22 @@ export const spacing = {
|
|
|
13
13
|
variable: "var(--kds-spacing-container-negative-0-25x)",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
+
"0.375x": {
|
|
17
|
+
value: -6,
|
|
18
|
+
unit: "px",
|
|
19
|
+
css: {
|
|
20
|
+
value: "-6px",
|
|
21
|
+
variable: "var(--kds-spacing-container-negative-0-375x)",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
"0.5x": {
|
|
25
|
+
value: -8,
|
|
26
|
+
unit: "px",
|
|
27
|
+
css: {
|
|
28
|
+
value: "-8px",
|
|
29
|
+
variable: "var(--kds-spacing-container-negative-0-5x)",
|
|
30
|
+
},
|
|
31
|
+
},
|
|
16
32
|
},
|
|
17
33
|
none: {
|
|
18
34
|
value: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Package containing the design tokens and icons for the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"./fonts.css": "./dist/css/fonts.css",
|
|
36
36
|
"./kds-variables.css": "./dist/tokens/css/_variables.css",
|
|
37
37
|
"./kds-properties.css": "./dist/tokens/css/_properties.css",
|
|
38
|
-
"./kds-legacy-theme.css": "./dist/tokens/css/_variables-legacy.css",
|
|
39
38
|
"./img/*": "./dist/img/*.svg",
|
|
40
39
|
"./img/*/def": "./dist/img/*/def.ts",
|
|
41
40
|
"./tokens": {
|