@kenlo/kdls-design-system 2.28.3 → 2.29.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/components/Theme/Theme.d.ts +12 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +209 -201
- package/foundations/tokens.css +27 -0
- package/kdls-manifest.json +22 -3
- package/package.json +1 -1
package/foundations/tokens.css
CHANGED
|
@@ -3836,6 +3836,33 @@
|
|
|
3836
3836
|
--shadow-bar-hard: 0 -4px 0 0 var(--shadow-hard-color);
|
|
3837
3837
|
}
|
|
3838
3838
|
|
|
3839
|
+
/* Look "rede" (Kenlo Rede, data-look="rede"): the primary Button fills with the darker Kenlo
|
|
3840
|
+
blue so its white label (--color-on-primary) clears WCAG AA. Tone 50 under white is 3.7:1.
|
|
3841
|
+
Mirror-pinned: light reads tone 60 and dark reads tone 40, both #156CB7 (5.4:1); hover 70/30
|
|
3842
|
+
(#105189) and active 80/20 (#0A365C). Only the Kenlo blue: under any other data-color-scheme
|
|
3843
|
+
the variables are reset and the Button falls back to tone 50/60/70, as without the look.
|
|
3844
|
+
foundations/look-rede.contrast.test.ts locks the ratios. */
|
|
3845
|
+
[data-look="rede"],
|
|
3846
|
+
[data-look="rede"] [data-theme="light"] {
|
|
3847
|
+
--kdls-button-primary-bg: var(--color-primary-60);
|
|
3848
|
+
--kdls-button-primary-bg-hover: var(--color-primary-70);
|
|
3849
|
+
--kdls-button-primary-bg-active: var(--color-primary-80);
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
[data-look="rede"][data-theme="dark"],
|
|
3853
|
+
[data-look="rede"] [data-theme="dark"] {
|
|
3854
|
+
--kdls-button-primary-bg: var(--color-primary-40);
|
|
3855
|
+
--kdls-button-primary-bg-hover: var(--color-primary-30);
|
|
3856
|
+
--kdls-button-primary-bg-active: var(--color-primary-20);
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
[data-look="rede"][data-color-scheme],
|
|
3860
|
+
[data-look="rede"] [data-color-scheme] {
|
|
3861
|
+
--kdls-button-primary-bg: initial;
|
|
3862
|
+
--kdls-button-primary-bg-hover: initial;
|
|
3863
|
+
--kdls-button-primary-bg-active: initial;
|
|
3864
|
+
}
|
|
3865
|
+
|
|
3839
3866
|
/* Display font (optional second font): one font for title small (16px) and up, the base font for
|
|
3840
3867
|
body and below. Off by default: every title rule reads --font-family-display and falls back to
|
|
3841
3868
|
--font-family-base. data-font-display="<font>" turns it on. */
|
package/kdls-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": {
|
|
3
3
|
"name": "@kenlo/kdls-design-system",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.29.0"
|
|
5
5
|
},
|
|
6
6
|
"install": {
|
|
7
7
|
"add": "npm install @kenlo/kdls-design-system",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"components": 60,
|
|
16
16
|
"propsTables": 85,
|
|
17
17
|
"props": 754,
|
|
18
|
-
"tokens":
|
|
19
|
-
"api":
|
|
18
|
+
"tokens": 615,
|
|
19
|
+
"api": 17,
|
|
20
20
|
"icons": 49
|
|
21
21
|
},
|
|
22
22
|
"components": [
|
|
@@ -5972,6 +5972,11 @@
|
|
|
5972
5972
|
}
|
|
5973
5973
|
],
|
|
5974
5974
|
"api": [
|
|
5975
|
+
{
|
|
5976
|
+
"name": "KENLO_REDE",
|
|
5977
|
+
"import": "import { KENLO_REDE } from '@kenlo/kdls-design-system'",
|
|
5978
|
+
"from": "components/Theme/Theme.ts"
|
|
5979
|
+
},
|
|
5975
5980
|
{
|
|
5976
5981
|
"name": "NavContext",
|
|
5977
5982
|
"import": "import { NavContext } from '@kenlo/kdls-design-system'",
|
|
@@ -8400,6 +8405,20 @@
|
|
|
8400
8405
|
"value": "16px"
|
|
8401
8406
|
}
|
|
8402
8407
|
],
|
|
8408
|
+
"kdls": [
|
|
8409
|
+
{
|
|
8410
|
+
"name": "--kdls-button-primary-bg",
|
|
8411
|
+
"value": "var(--color-primary-60)"
|
|
8412
|
+
},
|
|
8413
|
+
{
|
|
8414
|
+
"name": "--kdls-button-primary-bg-active",
|
|
8415
|
+
"value": "var(--color-primary-80)"
|
|
8416
|
+
},
|
|
8417
|
+
{
|
|
8418
|
+
"name": "--kdls-button-primary-bg-hover",
|
|
8419
|
+
"value": "var(--color-primary-70)"
|
|
8420
|
+
}
|
|
8421
|
+
],
|
|
8403
8422
|
"label": [
|
|
8404
8423
|
{
|
|
8405
8424
|
"name": "--label-color",
|