@kenlo/kdls-design-system 2.26.0 → 2.27.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.
@@ -3577,9 +3577,11 @@
3577
3577
 
3578
3578
  /* ------------------------------------------------------------------------------ */
3579
3579
  /* -------------------------------RADIUS VARIANTS-------------------------------- */
3580
+ /* Same values as SDS (Rafael, 18 Nov 2026): flat 0, soft 4/8/16/28, medium 6/12/24/32,
3581
+ rounded 8/16/32/40. The Kenlo-only scheme stays in :root (data-radius="default"). */
3580
3582
  [data-radius="soft"] {
3581
- --corner-radius-x-small: 6px;
3582
- --corner-radius-small: 12px;
3583
+ --corner-radius-x-small: 4px;
3584
+ --corner-radius-small: 8px;
3583
3585
  --corner-radius-medium: 16px;
3584
3586
  --corner-radius-large: 28px;
3585
3587
  --corner-radius-full: 9999px;
@@ -3604,8 +3606,8 @@
3604
3606
  }
3605
3607
 
3606
3608
  [data-radius="medium"] {
3607
- --corner-radius-x-small: 8px;
3608
- --corner-radius-small: 16px;
3609
+ --corner-radius-x-small: 6px;
3610
+ --corner-radius-small: 12px;
3609
3611
  --corner-radius-medium: 24px;
3610
3612
  --corner-radius-large: 32px;
3611
3613
  --corner-radius-full: 9999px;
@@ -3651,4 +3653,73 @@
3651
3653
  --font-family-base: "Montserrat", sans-serif;
3652
3654
  }
3653
3655
 
3656
+ /* Stroke scheme: the thickness of every UI stroke (borders, dividers, outlines). 1px is the default;
3657
+ data-stroke="2|3|4" on <html> (or any ancestor) thickens all of them at once. Strokes drawn at 2px
3658
+ by design read max(2px, --stroke-width), so they never get thinner. Focus rings are not strokes. */
3659
+ :root {
3660
+ --stroke-width: 1px;
3661
+ }
3662
+
3663
+ [data-stroke="2"] {
3664
+ --stroke-width: 2px;
3665
+ }
3666
+
3667
+ [data-stroke="3"] {
3668
+ --stroke-width: 3px;
3669
+ }
3670
+
3671
+ [data-stroke="4"] {
3672
+ --stroke-width: 4px;
3673
+ }
3674
+
3675
+ /* Shadow scheme: "smooth" (default, the blurred shadows above) or "hard" — offset, no blur, in the
3676
+ strongest neutral (black in light, white in dark). Re-declared under a nested dark theme so the
3677
+ colour follows the theme where the shadow is painted. --shadow-on-primary stays as it is. */
3678
+ [data-shadow="hard"],
3679
+ [data-shadow="hard"] [data-theme="dark"],
3680
+ [data-shadow="hard"] [data-theme="light"] {
3681
+ --shadow-hard-color: var(--color-neutral-100);
3682
+ --shadow-drop-sm: 2px 2px 0 0 var(--shadow-hard-color);
3683
+ --shadow-drop-md: 4px 4px 0 0 var(--shadow-hard-color);
3684
+ --shadow-drop-lg: 6px 6px 0 0 var(--shadow-hard-color);
3685
+ --shadow-drop-md-hard: 4px 4px 0 0 var(--shadow-hard-color);
3686
+ --shadow-modal-hard: 8px 8px 0 0 var(--shadow-hard-color);
3687
+ --shadow-drawer-hard: -6px 0 0 0 var(--shadow-hard-color);
3688
+ --shadow-drawer-left-hard: 6px 0 0 0 var(--shadow-hard-color);
3689
+ --shadow-bar-hard: 0 -4px 0 0 var(--shadow-hard-color);
3690
+ }
3691
+
3692
+ /* Display font (optional second font): one font for title small (16px) and up, the base font for
3693
+ body and below. Off by default: every title rule reads --font-family-display and falls back to
3694
+ --font-family-base. data-font-display="<font>" turns it on. */
3695
+ [data-font-display="manrope"] {
3696
+ --font-family-display: "Manrope", sans-serif;
3697
+ --font-stretch-display: 100%;
3698
+ }
3699
+
3700
+ [data-font-display="inter"] {
3701
+ --font-family-display: "Inter", sans-serif;
3702
+ --font-stretch-display: 100%;
3703
+ }
3704
+
3705
+ [data-font-display="helvetica"] {
3706
+ --font-family-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
3707
+ --font-stretch-display: 100%;
3708
+ }
3709
+
3710
+ [data-font-display="source-sans"] {
3711
+ --font-family-display: "Source Sans 3", sans-serif;
3712
+ --font-stretch-display: 100%;
3713
+ }
3714
+
3715
+ [data-font-display="nunito"] {
3716
+ --font-family-display: "Nunito", sans-serif;
3717
+ --font-stretch-display: 100%;
3718
+ }
3719
+
3720
+ [data-font-display="montserrat"] {
3721
+ --font-family-display: "Montserrat", sans-serif;
3722
+ --font-stretch-display: 100%;
3723
+ }
3724
+
3654
3725
  /* ------------------------------------------------------------------------------ */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "package": {
3
3
  "name": "@kenlo/kdls-design-system",
4
- "version": "2.26.0"
4
+ "version": "2.27.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": 752,
18
- "tokens": 603,
19
- "api": 14,
18
+ "tokens": 612,
19
+ "api": 16,
20
20
  "icons": 49
21
21
  },
22
22
  "components": [
@@ -5973,6 +5973,11 @@
5973
5973
  "import": "import { Toaster } from '@kenlo/kdls-design-system'",
5974
5974
  "from": "components/Toast/index.ts"
5975
5975
  },
5976
+ {
5977
+ "name": "applyComplementColor",
5978
+ "import": "import { applyComplementColor } from '@kenlo/kdls-design-system'",
5979
+ "from": "components/ColorScheme/ColorScheme.ts"
5980
+ },
5976
5981
  {
5977
5982
  "name": "applyCustomGradient",
5978
5983
  "import": "import { applyCustomGradient } from '@kenlo/kdls-design-system'",
@@ -5983,6 +5988,11 @@
5983
5988
  "import": "import { applyCustomScheme } from '@kenlo/kdls-design-system'",
5984
5989
  "from": "components/ColorScheme/ColorScheme.ts"
5985
5990
  },
5991
+ {
5992
+ "name": "clearComplementColor",
5993
+ "import": "import { clearComplementColor } from '@kenlo/kdls-design-system'",
5994
+ "from": "components/ColorScheme/ColorScheme.ts"
5995
+ },
5986
5996
  {
5987
5997
  "name": "clearCustomScheme",
5988
5998
  "import": "import { clearCustomScheme } from '@kenlo/kdls-design-system'",
@@ -8301,6 +8311,10 @@
8301
8311
  "name": "--font-family-base",
8302
8312
  "value": "\"Manrope\", -apple-system, BlinkMacSystemFont, sans-serif"
8303
8313
  },
8314
+ {
8315
+ "name": "--font-family-display",
8316
+ "value": "\"Manrope\", sans-serif"
8317
+ },
8304
8318
  {
8305
8319
  "name": "--font-size-body-md",
8306
8320
  "value": "16px"
@@ -8337,6 +8351,10 @@
8337
8351
  "name": "--font-size-title-sm",
8338
8352
  "value": "16px"
8339
8353
  },
8354
+ {
8355
+ "name": "--font-stretch-display",
8356
+ "value": "100%"
8357
+ },
8340
8358
  {
8341
8359
  "name": "--font-weight-bold",
8342
8360
  "value": "700"
@@ -8457,6 +8475,18 @@
8457
8475
  }
8458
8476
  ],
8459
8477
  "shadow": [
8478
+ {
8479
+ "name": "--shadow-bar-hard",
8480
+ "value": "0 -4px 0 0 var(--shadow-hard-color)"
8481
+ },
8482
+ {
8483
+ "name": "--shadow-drawer-hard",
8484
+ "value": "-6px 0 0 0 var(--shadow-hard-color)"
8485
+ },
8486
+ {
8487
+ "name": "--shadow-drawer-left-hard",
8488
+ "value": "6px 0 0 0 var(--shadow-hard-color)"
8489
+ },
8460
8490
  {
8461
8491
  "name": "--shadow-drop-lg",
8462
8492
  "value": "0 8px 24px 0 rgba(0, 0, 0, 0.16)"
@@ -8465,10 +8495,22 @@
8465
8495
  "name": "--shadow-drop-md",
8466
8496
  "value": "0 4px 12px 0 rgba(0, 0, 0, 0.12)"
8467
8497
  },
8498
+ {
8499
+ "name": "--shadow-drop-md-hard",
8500
+ "value": "4px 4px 0 0 var(--shadow-hard-color)"
8501
+ },
8468
8502
  {
8469
8503
  "name": "--shadow-drop-sm",
8470
8504
  "value": "0 1px 4px 0 rgba(0, 0, 0, 0.12)"
8471
8505
  },
8506
+ {
8507
+ "name": "--shadow-hard-color",
8508
+ "value": "var(--color-neutral-100)"
8509
+ },
8510
+ {
8511
+ "name": "--shadow-modal-hard",
8512
+ "value": "8px 8px 0 0 var(--shadow-hard-color)"
8513
+ },
8472
8514
  {
8473
8515
  "name": "--shadow-on-primary",
8474
8516
  "value": "0 1px 3px rgba(0, 0, 0, 0.36)"
@@ -8532,6 +8574,12 @@
8532
8574
  "value": "36px"
8533
8575
  }
8534
8576
  ],
8577
+ "stroke": [
8578
+ {
8579
+ "name": "--stroke-width",
8580
+ "value": "1px"
8581
+ }
8582
+ ],
8535
8583
  "title": [
8536
8584
  {
8537
8585
  "name": "--title-color",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenlo/kdls-design-system",
3
- "version": "2.26.0",
3
+ "version": "2.27.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "KDLS Design System — componentes React + TypeScript",