@akcelik/strct 1.6.0 → 1.11.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/fesm2022/akcelik-strct.mjs +2830 -40
- package/fesm2022/akcelik-strct.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_tokens.scss +12 -0
- package/types/akcelik-strct.d.ts +736 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akcelik/strct",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
|
|
5
5
|
"author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
package/styles/_tokens.scss
CHANGED
|
@@ -14,6 +14,18 @@
|
|
|
14
14
|
|
|
15
15
|
// Default scheme (arctic / dark) so the library renders before any attribute is set.
|
|
16
16
|
:root,
|
|
17
|
+
// Tell the browser which scheme the theme is in, so NATIVE UI follows the
|
|
18
|
+
// tokens: datetime/date pickers and their popup calendars, select dropdowns,
|
|
19
|
+
// scrollbars, autofill. Without this the page darkens via CSS while Chromium
|
|
20
|
+
// still paints native widgets in the light system scheme (white fields in a
|
|
21
|
+
// dark console).
|
|
22
|
+
[data-theme='dark'] {
|
|
23
|
+
color-scheme: dark;
|
|
24
|
+
}
|
|
25
|
+
[data-theme='light'] {
|
|
26
|
+
color-scheme: light;
|
|
27
|
+
}
|
|
28
|
+
|
|
17
29
|
[data-palette='arctic'][data-theme='dark'] {
|
|
18
30
|
--font: 'DM Sans', -apple-system, system-ui, sans-serif;
|
|
19
31
|
--mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
|