@knime/kds-styles 13.0.1 → 13.0.2
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 +6 -0
- package/dist/css/basics.css +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/css/basics.css
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* `:host` lets a shadow root that adopts these styles render like the document. */
|
|
2
|
+
:root,
|
|
3
|
+
:host {
|
|
2
4
|
font-family: var(--kds-core-font-family-roboto), sans-serif;
|
|
5
|
+
}
|
|
3
6
|
|
|
7
|
+
/* Not on `:host`: shadow roots inherit it, so an explicit preference reaches them. */
|
|
8
|
+
:root {
|
|
4
9
|
/*
|
|
5
10
|
* Follow the device preference. The color tokens resolve via `light-dark()`,
|
|
6
11
|
* so this needs no JavaScript and applies on the first paint.
|
|
@@ -10,7 +15,8 @@
|
|
|
10
15
|
color-scheme: light dark;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
|
-
body
|
|
18
|
+
body,
|
|
19
|
+
:host {
|
|
14
20
|
font: var(--kds-font-base-body-medium);
|
|
15
21
|
color: var(--kds-color-text-and-icon-neutral);
|
|
16
22
|
}
|