@knime/kds-styles 6.12.2 → 7.1.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 +10 -0
- package/README.md +3 -3
- package/dist/tokens/ts/border.js +50 -50
- package/dist/tokens/ts/box-shadow.js +2 -2
- package/dist/tokens/ts/color.js +458 -458
- package/dist/tokens/ts/elevation.js +14 -14
- package/dist/tokens/ts/fake-border.js +2 -2
- package/dist/tokens/ts/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ export const elevation = {
|
|
|
12
12
|
blur: { value: 0, unit: "px" },
|
|
13
13
|
spread: { value: 0, unit: "px" },
|
|
14
14
|
color: {
|
|
15
|
-
light: { h: 210, s: 0, l: 72.5,
|
|
16
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
15
|
+
light: { h: 210, s: 0, l: 72.5, a: 0.32 },
|
|
16
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.9 },
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
],
|
|
@@ -30,8 +30,8 @@ export const elevation = {
|
|
|
30
30
|
blur: { value: 1, unit: "px" },
|
|
31
31
|
spread: { value: 0, unit: "px" },
|
|
32
32
|
color: {
|
|
33
|
-
light: { h: 210, s: 0, l: 72.5,
|
|
34
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
33
|
+
light: { h: 210, s: 0, l: 72.5, a: 0.32 },
|
|
34
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.9 },
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -40,8 +40,8 @@ export const elevation = {
|
|
|
40
40
|
blur: { value: 1, unit: "px" },
|
|
41
41
|
spread: { value: 0, unit: "px" },
|
|
42
42
|
color: {
|
|
43
|
-
light: { h: 180, s: 0, l: 32.2,
|
|
44
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
43
|
+
light: { h: 180, s: 0, l: 32.2, a: 0.14 },
|
|
44
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.94 },
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -50,8 +50,8 @@ export const elevation = {
|
|
|
50
50
|
blur: { value: 8, unit: "px" },
|
|
51
51
|
spread: { value: 0, unit: "px" },
|
|
52
52
|
color: {
|
|
53
|
-
light: { h: 180, s: 0, l: 32.2,
|
|
54
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
53
|
+
light: { h: 180, s: 0, l: 32.2, a: 0.12 },
|
|
54
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.98 },
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
57
|
],
|
|
@@ -68,8 +68,8 @@ export const elevation = {
|
|
|
68
68
|
blur: { value: 4, unit: "px" },
|
|
69
69
|
spread: { value: 0, unit: "px" },
|
|
70
70
|
color: {
|
|
71
|
-
light: { h: 210, s: 0, l: 72.5,
|
|
72
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
71
|
+
light: { h: 210, s: 0, l: 72.5, a: 0.32 },
|
|
72
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.9 },
|
|
73
73
|
},
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -78,8 +78,8 @@ export const elevation = {
|
|
|
78
78
|
blur: { value: 8, unit: "px" },
|
|
79
79
|
spread: { value: 0, unit: "px" },
|
|
80
80
|
color: {
|
|
81
|
-
light: { h: 180, s: 0, l: 32.2,
|
|
82
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
81
|
+
light: { h: 180, s: 0, l: 32.2, a: 0.14 },
|
|
82
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.94 },
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -88,8 +88,8 @@ export const elevation = {
|
|
|
88
88
|
blur: { value: 20, unit: "px" },
|
|
89
89
|
spread: { value: 0, unit: "px" },
|
|
90
90
|
color: {
|
|
91
|
-
light: { h: 180, s: 0, l: 32.2,
|
|
92
|
-
dark: { h: 330, s: 0, l: 10.2,
|
|
91
|
+
light: { h: 180, s: 0, l: 32.2, a: 0.12 },
|
|
92
|
+
dark: { h: 330, s: 0, l: 10.2, a: 0.98 },
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
],
|
|
@@ -11,8 +11,8 @@ export const fakeBorder = {
|
|
|
11
11
|
blur: { value: 0, unit: "px" },
|
|
12
12
|
spread: { value: 0.5, unit: "px" },
|
|
13
13
|
color: {
|
|
14
|
-
light: { h: 330, s: 0, l: 10.2,
|
|
15
|
-
dark: { h: 330, s: 0, l: 99,
|
|
14
|
+
light: { h: 330, s: 0, l: 10.2, a: 0.2 },
|
|
15
|
+
dark: { h: 330, s: 0, l: 99, a: 0.2 },
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
],
|
|
@@ -25,14 +25,14 @@ export type KdsCssValue = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Resolved color value for a single mode, as separate HSL components:
|
|
27
27
|
* `h` in degrees (0-360), `s` and `l` in percent (0-100) and
|
|
28
|
-
* `
|
|
29
|
-
* `hsl(<h> <s>% <l>% / <
|
|
28
|
+
* `a` as fraction (0-1). Equivalent to the CSS color
|
|
29
|
+
* `hsl(<h> <s>% <l>% / <a>)`.
|
|
30
30
|
*/
|
|
31
31
|
export type KdsColorValue = {
|
|
32
32
|
readonly h: number;
|
|
33
33
|
readonly s: number;
|
|
34
34
|
readonly l: number;
|
|
35
|
-
readonly
|
|
35
|
+
readonly a: number;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* Light/dark pair of color values, as used inside composite tokens. Colors
|