@fkui/theme-default 6.22.0 → 6.23.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/dist/deprecated-variables.json +34 -1
- package/dist/fkui-css-variables-deprecated.css +33 -0
- package/dist/fkui-css-variables-deprecated.js +1 -1
- package/dist/fkui-css-variables.css +63 -96
- package/dist/fkui-css-variables.js +1 -1
- package/dist/metadata.mjs +0 -180
- package/dist/palette-variables.css +1 -0
- package/dist/palette-variables.js +1 -0
- package/dist/theme-auto.css +508 -0
- package/dist/theme-auto.js +1 -0
- package/dist/theme-dark.css +249 -0
- package/dist/theme-dark.js +1 -0
- package/dist/theme-light.css +249 -0
- package/dist/theme-light.js +1 -0
- package/package.json +5 -5
- package/src/_default.scss +28 -0
- package/src/_version.scss +1 -1
- package/src/auto/_theme.scss +17 -0
- package/src/dark/_theme.scss +10 -0
- package/src/dark/_variables.scss +85 -0
- package/src/deprecated-variables.json +34 -1
- package/src/fkui-css-variables-deprecated.scss +36 -1
- package/src/fkui-css-variables.scss +4 -9
- package/src/light/_theme.scss +10 -0
- package/src/{_semantic-tokens.scss → light/_variables.scss} +2 -38
- package/src/{_css-variables.scss → shared/_index.scss} +3 -5
- package/src/theme-auto.scss +7 -0
- package/src/theme-dark.scss +7 -0
- package/src/theme-light.scss +7 -0
- /package/src/{_palette-variables.scss → palette-variables.scss} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@use "../palette-variables" as *;
|
|
2
|
+
|
|
3
|
+
@mixin variables {
|
|
4
|
+
// TEXT
|
|
5
|
+
--fkds-color-text-primary: #{$palette-color-fk-black-15};
|
|
6
|
+
--fkds-color-text-secondary: #{$palette-color-fk-black-30};
|
|
7
|
+
--fkds-color-text-inverted: #{$palette-color-fk-black-100};
|
|
8
|
+
--fkds-color-text-disabled: #{$palette-color-fk-black-50};
|
|
9
|
+
|
|
10
|
+
// BACKGROUND
|
|
11
|
+
--fkds-color-background-primary: #{$palette-color-fk-black-100};
|
|
12
|
+
--fkds-color-background-secondary: #{$palette-color-fk-black-100};
|
|
13
|
+
--fkds-color-background-tertiary: #{$palette-color-fk-black-50};
|
|
14
|
+
--fkds-color-background-disabled: #{$palette-color-fk-black-70};
|
|
15
|
+
|
|
16
|
+
// BORDER
|
|
17
|
+
--fkds-color-border-primary: #{$palette-color-fk-black-30};
|
|
18
|
+
--fkds-color-border-strong: #{$palette-color-fk-black-15};
|
|
19
|
+
--fkds-color-border-weak: #{$palette-color-fk-black-50};
|
|
20
|
+
--fkds-color-border-disabled: #{$palette-color-fk-black-30};
|
|
21
|
+
--fkds-color-border-inverted: #{$palette-color-fk-black-100};
|
|
22
|
+
|
|
23
|
+
// ACTION - TEXT
|
|
24
|
+
--fkds-color-action-text-primary-default: #{$palette-color-bluebell-50};
|
|
25
|
+
--fkds-color-action-text-primary-hover: #{$palette-color-bluebell-15};
|
|
26
|
+
--fkds-color-action-text-primary-active: #{$palette-color-bluebell-15};
|
|
27
|
+
--fkds-color-action-text-primary-focus: #{$palette-color-bluebell-15};
|
|
28
|
+
--fkds-color-action-text-secondary-default: #{$palette-color-fk-black-15};
|
|
29
|
+
--fkds-color-action-text-secondary-hover: #{$palette-color-bluebell-15};
|
|
30
|
+
--fkds-color-action-text-secondary-active: #{$palette-color-bluebell-15};
|
|
31
|
+
--fkds-color-action-text-secondary-focus: #{$palette-color-bluebell-5};
|
|
32
|
+
--fkds-color-action-text-inverted-default: #{$palette-color-fk-black-100};
|
|
33
|
+
--fkds-color-action-text-inverted-hover: #{$palette-color-fk-black-100};
|
|
34
|
+
--fkds-color-action-text-inverted-active: #{$palette-color-fk-black-100};
|
|
35
|
+
--fkds-color-action-text-inverted-focus: #{$palette-color-fk-black-100};
|
|
36
|
+
|
|
37
|
+
// ACTION - BACKGROUND
|
|
38
|
+
--fkds-color-action-background-primary-default: #{$palette-color-bluebell-50};
|
|
39
|
+
--fkds-color-action-background-primary-hover: #{$palette-color-bluebell-15};
|
|
40
|
+
--fkds-color-action-background-primary-active: #{$palette-color-bluebell-15};
|
|
41
|
+
--fkds-color-action-background-primary-focus: #{$palette-color-bluebell-15};
|
|
42
|
+
--fkds-color-action-background-secondary-default: #{$palette-color-fk-black-100};
|
|
43
|
+
--fkds-color-action-background-secondary-hover: #{$palette-color-fk-black-70};
|
|
44
|
+
--fkds-color-action-background-secondary-active: #{$palette-color-fk-black-70};
|
|
45
|
+
--fkds-color-action-background-secondary-focus: #{$palette-color-fk-black-70};
|
|
46
|
+
|
|
47
|
+
// ACTION - BORDER
|
|
48
|
+
--fkds-color-action-border-primary-default: #{$palette-color-bluebell-50};
|
|
49
|
+
--fkds-color-action-border-primary-hover: #{$palette-color-bluebell-15};
|
|
50
|
+
--fkds-color-action-border-primary-active: #{$palette-color-bluebell-15};
|
|
51
|
+
--fkds-color-action-border-primary-focus: #{$palette-color-bluebell-15};
|
|
52
|
+
|
|
53
|
+
// FEEDBACK - BACKGROUND
|
|
54
|
+
--fkds-color-feedback-background-neutral: #{$palette-color-fk-black-100};
|
|
55
|
+
--fkds-color-feedback-background-neutral-strong: #{$palette-color-fk-black-30};
|
|
56
|
+
--fkds-color-feedback-background-info: #{$palette-color-fk-black-100};
|
|
57
|
+
--fkds-color-feedback-background-info-strong: #{$palette-color-bluebell-50};
|
|
58
|
+
--fkds-color-feedback-background-positive: #{$palette-color-fk-black-100};
|
|
59
|
+
--fkds-color-feedback-background-positive-strong: #{$palette-color-green-a-50};
|
|
60
|
+
--fkds-color-feedback-background-warning: #{$palette-color-fk-black-100};
|
|
61
|
+
--fkds-color-feedback-background-warning-strong: #{$palette-color-yellow-50};
|
|
62
|
+
--fkds-color-feedback-background-negative: #{$palette-color-fk-black-100};
|
|
63
|
+
--fkds-color-feedback-background-negative-strong: #{$palette-color-red-50};
|
|
64
|
+
|
|
65
|
+
// FEEDBACK - BORDER
|
|
66
|
+
--fkds-color-feedback-border-neutral: #{$palette-color-fk-black-50};
|
|
67
|
+
--fkds-color-feedback-border-info: #{$palette-color-bluebell-50};
|
|
68
|
+
--fkds-color-feedback-border-positive: #{$palette-color-green-a-50};
|
|
69
|
+
--fkds-color-feedback-border-warning: #{$palette-color-yellow-50};
|
|
70
|
+
--fkds-color-feedback-border-negative: #{$palette-color-red-50};
|
|
71
|
+
|
|
72
|
+
// FEEDBACK - TEXT
|
|
73
|
+
--fkds-color-feedback-text-negative: #{$palette-color-red-50};
|
|
74
|
+
--fkds-color-feedback-text-positive: #{$palette-color-green-a-50};
|
|
75
|
+
|
|
76
|
+
// SELECT - BACKGROUND
|
|
77
|
+
--fkds-color-select-background-primary-default: #{$palette-color-bluebell-50};
|
|
78
|
+
--fkds-color-select-background-primary-hover: #{$palette-color-bluebell-85};
|
|
79
|
+
--fkds-color-select-background-primary-active: #{$palette-color-bluebell-85};
|
|
80
|
+
--fkds-color-select-background-primary-focus: #{$palette-color-bluebell-85};
|
|
81
|
+
--fkds-color-select-background-secondary-default: #{$palette-color-green-a-50};
|
|
82
|
+
--fkds-color-select-background-secondary-hover: #{$palette-color-green-a-85};
|
|
83
|
+
--fkds-color-select-background-secondary-active: #{$palette-color-green-a-85};
|
|
84
|
+
--fkds-color-select-background-secondary-focus: #{$palette-color-green-a-85};
|
|
85
|
+
}
|
|
@@ -202,5 +202,38 @@
|
|
|
202
202
|
"--f-text-color-button-discrete-disabled",
|
|
203
203
|
"--f-text-color-button-discrete-inverted",
|
|
204
204
|
"--f-text-color-button-discrete-inverted-disabled",
|
|
205
|
-
"
|
|
205
|
+
"--f-icon-color-discrete",
|
|
206
|
+
"--fkds-icon-color-action-content-primary-default",
|
|
207
|
+
"--fkds-icon-color-action-content-primary-hover",
|
|
208
|
+
"--fkds-icon-color-action-content-primary-active",
|
|
209
|
+
"--fkds-icon-color-action-content-primary-focus",
|
|
210
|
+
"--fkds-icon-color-action-content-secondary-default",
|
|
211
|
+
"--fkds-icon-color-action-content-secondary-hover",
|
|
212
|
+
"--fkds-icon-color-action-content-secondary-active",
|
|
213
|
+
"--fkds-icon-color-action-content-secondary-focus",
|
|
214
|
+
"--fkds-icon-color-action-content-weak-default",
|
|
215
|
+
"--fkds-icon-color-action-content-inverted-default",
|
|
216
|
+
"--fkds-icon-color-action-content-inverted-hover",
|
|
217
|
+
"--fkds-icon-color-action-content-inverted-active",
|
|
218
|
+
"--fkds-icon-color-action-content-inverted-focus",
|
|
219
|
+
"--fkds-icon-color-feedback-content-info",
|
|
220
|
+
"--fkds-icon-color-feedback-content-positive",
|
|
221
|
+
"--fkds-icon-color-feedback-content-warning",
|
|
222
|
+
"--fkds-icon-color-feedback-content-negative",
|
|
223
|
+
"--fkds-icon-color-feedback-background-info",
|
|
224
|
+
"--fkds-icon-color-feedback-background-positive",
|
|
225
|
+
"--fkds-icon-color-feedback-background-warning",
|
|
226
|
+
"--fkds-icon-color-feedback-background-negative",
|
|
227
|
+
"--fkds-icon-color-feedback-border-info",
|
|
228
|
+
"--fkds-icon-color-feedback-border-positive",
|
|
229
|
+
"--fkds-icon-color-feedback-border-warning",
|
|
230
|
+
"--fkds-icon-color-feedback-border-negative",
|
|
231
|
+
"--fkds-icon-color-content-primary",
|
|
232
|
+
"--fkds-icon-color-background-primary",
|
|
233
|
+
"--fkds-icon-color-border-primary",
|
|
234
|
+
"--fkds-icon-color-content-disabled",
|
|
235
|
+
"--fkds-icon-color-content-inverted",
|
|
236
|
+
"--f-icon-color-error",
|
|
237
|
+
"--f-text-color-error",
|
|
238
|
+
"--f-icon-color-info"
|
|
206
239
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// stylelint-disable custom-property-empty-line-before -- technical debt, should just add a comment before each block
|
|
2
2
|
|
|
3
|
-
@use "
|
|
3
|
+
@use "palette-variables" as *;
|
|
4
4
|
|
|
5
5
|
$global: true !default;
|
|
6
6
|
$palette-color-red-10: #fdeaea !default;
|
|
@@ -313,6 +313,41 @@ $palette-color-hav-20: #dbe0ec !default;
|
|
|
313
313
|
--f-text-color-button-discrete-disabled: #{$palette-color-fk-black-50};
|
|
314
314
|
--f-text-color-button-discrete-inverted: #{$palette-color-white-100};
|
|
315
315
|
--f-text-color-button-discrete-inverted-disabled: #{$palette-color-bluebell-15};
|
|
316
|
+
|
|
317
|
+
// Deprecated since v6.23.0
|
|
318
|
+
--fkds-icon-color-action-content-primary-default: #{$palette-color-bluebell-100};
|
|
319
|
+
--fkds-icon-color-action-content-primary-hover: #{$palette-color-bluebell-120};
|
|
320
|
+
--fkds-icon-color-action-content-primary-active: #{$palette-color-bluebell-120};
|
|
321
|
+
--fkds-icon-color-action-content-primary-focus: #{$palette-color-bluebell-120};
|
|
322
|
+
--fkds-icon-color-action-content-secondary-default: #{$palette-color-fk-black-100};
|
|
323
|
+
--fkds-icon-color-action-content-secondary-hover: #{$palette-color-bluebell-120};
|
|
324
|
+
--fkds-icon-color-action-content-secondary-active: #{$palette-color-bluebell-120};
|
|
325
|
+
--fkds-icon-color-action-content-secondary-focus: #{$palette-color-bluebell-120};
|
|
326
|
+
--fkds-icon-color-action-content-weak-default: #{$palette-color-fk-black-70};
|
|
327
|
+
--fkds-icon-color-action-content-inverted-default: #{$palette-color-white-100};
|
|
328
|
+
--fkds-icon-color-action-content-inverted-hover: #{$palette-color-white-100};
|
|
329
|
+
--fkds-icon-color-action-content-inverted-active: #{$palette-color-white-100};
|
|
330
|
+
--fkds-icon-color-action-content-inverted-focus: #{$palette-color-white-100};
|
|
331
|
+
--fkds-icon-color-feedback-content-info: #{$palette-color-fk-black-100};
|
|
332
|
+
--fkds-icon-color-feedback-content-positive: #{$palette-color-fk-black-100};
|
|
333
|
+
--fkds-icon-color-feedback-content-warning: #{$palette-color-fk-black-100};
|
|
334
|
+
--fkds-icon-color-feedback-content-negative: #{$palette-color-fk-black-100};
|
|
335
|
+
--fkds-icon-color-feedback-background-info: #{$palette-color-bluebell-5};
|
|
336
|
+
--fkds-icon-color-feedback-background-positive: #{$palette-color-green-a-5};
|
|
337
|
+
--fkds-icon-color-feedback-background-warning: #{$palette-color-yellow-5};
|
|
338
|
+
--fkds-icon-color-feedback-background-negative: #{$palette-color-red-5};
|
|
339
|
+
--fkds-icon-color-feedback-border-info: #{$palette-color-bluebell-100};
|
|
340
|
+
--fkds-icon-color-feedback-border-positive: #{$palette-color-green-a-85};
|
|
341
|
+
--fkds-icon-color-feedback-border-warning: #{$palette-color-yellow-100};
|
|
342
|
+
--fkds-icon-color-feedback-border-negative: #{$palette-color-red-100};
|
|
343
|
+
--fkds-icon-color-content-primary: #{$palette-color-fk-black-100};
|
|
344
|
+
--fkds-icon-color-background-primary: #{$palette-color-white-100};
|
|
345
|
+
--fkds-icon-color-border-primary: #{$palette-color-fk-black-100};
|
|
346
|
+
--fkds-icon-color-content-disabled: #{$palette-color-fk-black-50};
|
|
347
|
+
--fkds-icon-color-content-inverted: #{$palette-color-white-100};
|
|
348
|
+
--f-icon-color-error: #{$palette-color-red-100};
|
|
349
|
+
--f-text-color-error: #{$palette-color-red-85};
|
|
350
|
+
--f-icon-color-info: #{$palette-color-bluebell-100};
|
|
316
351
|
}
|
|
317
352
|
|
|
318
353
|
@if $global {
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
// stylelint-disable custom-property-empty-line-before -- technical debt, should just add a comment before each block
|
|
2
2
|
|
|
3
|
-
@use "
|
|
4
|
-
@use "semantic-tokens" as semantic-tokens;
|
|
5
|
-
@use "css-variables" as css-variables;
|
|
6
|
-
|
|
7
|
-
$global: true !default;
|
|
3
|
+
@use "light/theme" as light;
|
|
8
4
|
|
|
9
5
|
@mixin css-variables {
|
|
10
|
-
@include
|
|
11
|
-
@include css-variables.css-variables;
|
|
6
|
+
@include light.theme;
|
|
12
7
|
}
|
|
13
8
|
|
|
9
|
+
$global: true !default;
|
|
10
|
+
|
|
14
11
|
@if $global {
|
|
15
12
|
:root {
|
|
16
|
-
--fkui-theme-default-version: "#{$version}";
|
|
17
|
-
|
|
18
13
|
@include css-variables;
|
|
19
14
|
}
|
|
20
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use "palette-variables" as *;
|
|
1
|
+
@use "../palette-variables" as *;
|
|
2
2
|
|
|
3
|
-
@mixin
|
|
3
|
+
@mixin variables {
|
|
4
4
|
// TEXT
|
|
5
5
|
--fkds-color-text-primary: #{$palette-color-fk-black-100};
|
|
6
6
|
--fkds-color-text-secondary: #{$palette-color-fk-black-70};
|
|
@@ -82,40 +82,4 @@
|
|
|
82
82
|
--fkds-color-select-background-secondary-hover: #{$palette-color-green-a-15};
|
|
83
83
|
--fkds-color-select-background-secondary-active: #{$palette-color-green-a-15};
|
|
84
84
|
--fkds-color-select-background-secondary-focus: #{$palette-color-green-a-15};
|
|
85
|
-
|
|
86
|
-
// ICON
|
|
87
|
-
--fkds-icon-color-content-primary: #{$palette-color-fk-black-100};
|
|
88
|
-
--fkds-icon-color-background-primary: #{$palette-color-white-100};
|
|
89
|
-
--fkds-icon-color-border-primary: #{$palette-color-fk-black-100};
|
|
90
|
-
--fkds-icon-color-content-disabled: #{$palette-color-fk-black-50};
|
|
91
|
-
--fkds-icon-color-content-inverted: #{$palette-color-white-100};
|
|
92
|
-
|
|
93
|
-
// ICON - ACTION
|
|
94
|
-
--fkds-icon-color-action-content-primary-default: #{$palette-color-bluebell-100};
|
|
95
|
-
--fkds-icon-color-action-content-primary-hover: #{$palette-color-bluebell-120};
|
|
96
|
-
--fkds-icon-color-action-content-primary-active: #{$palette-color-bluebell-120};
|
|
97
|
-
--fkds-icon-color-action-content-primary-focus: #{$palette-color-bluebell-120};
|
|
98
|
-
--fkds-icon-color-action-content-secondary-default: #{$palette-color-fk-black-100};
|
|
99
|
-
--fkds-icon-color-action-content-secondary-hover: #{$palette-color-bluebell-120};
|
|
100
|
-
--fkds-icon-color-action-content-secondary-active: #{$palette-color-bluebell-120};
|
|
101
|
-
--fkds-icon-color-action-content-secondary-focus: #{$palette-color-bluebell-120};
|
|
102
|
-
--fkds-icon-color-action-content-weak-default: #{$palette-color-fk-black-70};
|
|
103
|
-
--fkds-icon-color-action-content-inverted-default: #{$palette-color-white-100};
|
|
104
|
-
--fkds-icon-color-action-content-inverted-hover: #{$palette-color-white-100};
|
|
105
|
-
--fkds-icon-color-action-content-inverted-active: #{$palette-color-white-100};
|
|
106
|
-
--fkds-icon-color-action-content-inverted-focus: #{$palette-color-white-100};
|
|
107
|
-
|
|
108
|
-
// ICON - FEEDBACK
|
|
109
|
-
--fkds-icon-color-feedback-content-info: #{$palette-color-fk-black-100};
|
|
110
|
-
--fkds-icon-color-feedback-content-positive: #{$palette-color-fk-black-100};
|
|
111
|
-
--fkds-icon-color-feedback-content-warning: #{$palette-color-fk-black-100};
|
|
112
|
-
--fkds-icon-color-feedback-content-negative: #{$palette-color-fk-black-100};
|
|
113
|
-
--fkds-icon-color-feedback-background-info: #{$palette-color-bluebell-5};
|
|
114
|
-
--fkds-icon-color-feedback-background-positive: #{$palette-color-green-a-5};
|
|
115
|
-
--fkds-icon-color-feedback-background-warning: #{$palette-color-yellow-5};
|
|
116
|
-
--fkds-icon-color-feedback-background-negative: #{$palette-color-red-5};
|
|
117
|
-
--fkds-icon-color-feedback-border-info: #{$palette-color-bluebell-100};
|
|
118
|
-
--fkds-icon-color-feedback-border-positive: #{$palette-color-green-a-85};
|
|
119
|
-
--fkds-icon-color-feedback-border-warning: #{$palette-color-yellow-100};
|
|
120
|
-
--fkds-icon-color-feedback-border-negative: #{$palette-color-red-100};
|
|
121
85
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
// stylelint-disable custom-property-empty-line-before -- technical debt, should just add a comment before each block
|
|
2
2
|
|
|
3
|
-
@use "palette-variables" as *;
|
|
3
|
+
@use "../palette-variables" as *;
|
|
4
4
|
|
|
5
|
-
@mixin
|
|
5
|
+
@mixin variables {
|
|
6
6
|
// ***********
|
|
7
7
|
// TEXT COLORS
|
|
8
8
|
// ***********
|
|
9
9
|
--f-text-color-default: #{$palette-color-fk-black-100}; // global
|
|
10
10
|
--f-text-color-default-inverted: #{$palette-color-white-100}; // global
|
|
11
11
|
--f-text-color-discrete: #{$palette-color-fk-black-70}; // label, table
|
|
12
|
-
--f-text-color-error: #{$palette-color-red-85}; // label, error-list
|
|
13
12
|
|
|
14
13
|
--f-text-color-link: #{$palette-color-bluebell-100};
|
|
15
14
|
--f-text-color-link-hover: #{$palette-color-fk-black-100};
|
|
@@ -39,10 +38,9 @@
|
|
|
39
38
|
// ICON COLORS
|
|
40
39
|
// ***********
|
|
41
40
|
--f-icon-color-white: #{$palette-color-white-100}; // global
|
|
42
|
-
|
|
41
|
+
|
|
43
42
|
--f-icon-color-primary: #{$palette-color-bluebell-100}; // select-field, file-item, file-selector, calendar
|
|
44
43
|
--f-icon-color-success: #{$palette-color-green-a-85}; // message-box, text-field, form-step
|
|
45
|
-
--f-icon-color-error: #{$palette-color-red-100}; // message-box, text-field, textarea, modal, file-item
|
|
46
44
|
--f-icon-color-notice: #{$palette-color-tegel-100}; // expandable-panel
|
|
47
45
|
--f-icon-color-loader: #{$palette-color-green-a-85};
|
|
48
46
|
--f-icon-color-expandable-panel: #{$palette-color-white-100};
|
|
File without changes
|