@digiko-npm/designsystem 0.9.7 → 0.9.9

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.
@@ -1,4 +1,4 @@
1
- /* @ds/designsystem v0.9.7 */
1
+ /* @ds/designsystem v0.9.8 */
2
2
  /* ==========================================================================
3
3
  @digiko-npm/designsystem
4
4
 
@@ -68,6 +68,8 @@
68
68
  /* --- Interactive --- */
69
69
  --ds-color-interactive: #3f3f46;
70
70
  --ds-color-interactive-hover: #27272a;
71
+ --ds-color-interactive-subtle: rgba(63, 63, 70, 0.1);
72
+ --ds-color-interactive-border: rgba(63, 63, 70, 0.2);
71
73
 
72
74
  /* --- Overlays --- */
73
75
  --ds-color-overlay: rgba(0, 0, 0, 0.5);
@@ -101,7 +103,7 @@
101
103
  --ds-color-bg: #09090b;
102
104
  --ds-color-bg-subtle: #0f0f11;
103
105
  --ds-color-bg-muted: #18181b;
104
- --ds-color-bg-elevated: #1c1c20;
106
+ --ds-color-bg-elevated: #27272a;
105
107
 
106
108
  --ds-color-surface: #0f0f11;
107
109
  --ds-color-surface-hover: #18181b;
@@ -132,6 +134,8 @@
132
134
  /* --- Interactive --- */
133
135
  --ds-color-interactive: #d4d4d8;
134
136
  --ds-color-interactive-hover: #fafafa;
137
+ --ds-color-interactive-subtle: rgba(212, 212, 216, 0.1);
138
+ --ds-color-interactive-border: rgba(212, 212, 216, 0.2);
135
139
 
136
140
  /* --- Overlays --- */
137
141
  --ds-color-overlay: rgba(0, 0, 0, 0.7);
@@ -161,6 +165,10 @@
161
165
 
162
166
  /* Shared tokens (same in both themes) */
163
167
  :root {
168
+ /* --- Static (theme-independent, never change between light/dark) --- */
169
+ --ds-color-static-white: #fafafa;
170
+ --ds-color-static-black: #09090b;
171
+
164
172
  /* --- Semantic Status --- */
165
173
  --ds-color-success: #16a34a;
166
174
  --ds-color-success-subtle: rgba(22, 163, 74, 0.1);
@@ -331,6 +339,10 @@
331
339
  --ds-size-3: 2.5rem;
332
340
  --ds-size-4: 3rem;
333
341
 
342
+ /* --- Component-Specific Heights --- */
343
+ --ds-search-bar-height: 3.5rem;
344
+ --ds-toolbar-row-height: 2.5rem;
345
+
334
346
  /* --- Section Padding (responsive, generous) --- */
335
347
  --ds-section-padding: clamp(80px, 12vw, 160px);
336
348
 
@@ -2857,7 +2869,7 @@ hr {
2857
2869
  height: 1.25rem;
2858
2870
  border: none;
2859
2871
  background: none;
2860
- border-radius: var(--ds-radius-default);
2872
+ border-radius: var(--ds-radius-md);
2861
2873
  color: var(--ds-color-text-tertiary);
2862
2874
  cursor: pointer;
2863
2875
  font-size: var(--ds-text-xs);
@@ -3099,7 +3111,7 @@ hr {
3099
3111
  border: 2px solid var(--ds-color-surface);
3100
3112
  box-shadow: var(--ds-shadow-sm);
3101
3113
  cursor: pointer;
3102
- transition: transform var(--ds-duration-fast) var(--ds-ease);
3114
+ transition: transform var(--ds-duration-fast) var(--ds-ease-default);
3103
3115
  }
3104
3116
  .ds-slider input[type="range"]::-moz-range-thumb {
3105
3117
 
@@ -3110,7 +3122,7 @@ hr {
3110
3122
  border: 2px solid var(--ds-color-surface);
3111
3123
  box-shadow: var(--ds-shadow-sm);
3112
3124
  cursor: pointer;
3113
- transition: transform var(--ds-duration-fast) var(--ds-ease);
3125
+ transition: transform var(--ds-duration-fast) var(--ds-ease-default);
3114
3126
  }
3115
3127
  .ds-slider input[type="range"]:hover::-webkit-slider-thumb {
3116
3128
 
@@ -3723,9 +3735,9 @@ hr {
3723
3735
  }
3724
3736
  .ds-tag--purple {
3725
3737
 
3726
- background-color: var(--ds-color-purple-subtle, var(--ds-color-bg-elevated));
3727
- color: var(--ds-color-purple, var(--ds-color-interactive));
3728
- border-color: var(--ds-color-purple-border, var(--ds-color-purple, var(--ds-color-interactive)));
3738
+ background-color: var(--ds-color-accent-purple-subtle, var(--ds-color-bg-elevated));
3739
+ color: var(--ds-color-accent-purple, var(--ds-color-interactive));
3740
+ border-color: var(--ds-color-accent-purple-border, var(--ds-color-accent-purple, var(--ds-color-interactive)));
3729
3741
  }
3730
3742
  .ds-tag--removable {
3731
3743
 
@@ -3799,7 +3811,7 @@ hr {
3799
3811
 
3800
3812
 
3801
3813
  /* Tags used as <button> for selection — no focus ring on click */
3802
- button.ds-tag:focus-visible {
3814
+ .ds-tag:focus-visible {
3803
3815
  outline: none;
3804
3816
  box-shadow: 0 0 0 var(--ds-ring-width) var(--ds-ring-color);
3805
3817
  scroll-margin-block: var(--ds-space-16, 4rem);
@@ -3854,7 +3866,7 @@ button.ds-tag:focus-visible {
3854
3866
  .ds-chip--logic {
3855
3867
 
3856
3868
  cursor: pointer;
3857
- font-weight: 600;
3869
+ font-weight: var(--ds-weight-semibold);
3858
3870
  color: var(--ds-color-text-tertiary);
3859
3871
  background: transparent;
3860
3872
  border-color: var(--ds-color-border);
@@ -6317,7 +6329,7 @@ button.ds-tag:focus-visible {
6317
6329
  height: 2.25rem;
6318
6330
  border-radius: var(--ds-radius-full);
6319
6331
  background: var(--ds-color-text);
6320
- color: var(--ds-color-bg-base);
6332
+ color: var(--ds-color-bg);
6321
6333
  }
6322
6334
 
6323
6335
 
@@ -6490,7 +6502,7 @@ button.ds-tag:focus-visible {
6490
6502
  height: 1rem;
6491
6503
  padding: 0 0.25rem;
6492
6504
  font-size: 0.625rem;
6493
- font-weight: 600;
6505
+ font-weight: var(--ds-weight-semibold);
6494
6506
  line-height: 1;
6495
6507
  color: var(--ds-color-on-inverted);
6496
6508
  background: var(--ds-color-interactive);
@@ -8017,8 +8029,8 @@ button.ds-tag:focus-visible {
8017
8029
  visibility: hidden;
8018
8030
  transform: scale(0.96);
8019
8031
  transition:
8020
- opacity var(--ds-duration-fast) var(--ds-ease),
8021
- visibility var(--ds-duration-fast) var(--ds-ease),
8032
+ opacity var(--ds-duration-fast) var(--ds-ease-default),
8033
+ visibility var(--ds-duration-fast) var(--ds-ease-default),
8022
8034
  transform var(--ds-duration-fast) var(--ds-ease-out-expo);
8023
8035
 
8024
8036
  /* Size: small */
@@ -8317,8 +8329,8 @@ button.ds-tag:focus-visible {
8317
8329
  opacity: 0;
8318
8330
  visibility: hidden;
8319
8331
  transition:
8320
- opacity var(--ds-duration-fast) var(--ds-ease),
8321
- visibility var(--ds-duration-fast) var(--ds-ease);
8332
+ opacity var(--ds-duration-fast) var(--ds-ease-default),
8333
+ visibility var(--ds-duration-fast) var(--ds-ease-default);
8322
8334
 
8323
8335
  /* Open state */
8324
8336
 
@@ -8445,8 +8457,8 @@ button.ds-tag:focus-visible {
8445
8457
  font-size: var(--ds-text-sm);
8446
8458
  color: var(--ds-color-text-secondary);
8447
8459
  transition:
8448
- background-color var(--ds-duration-fast) var(--ds-ease),
8449
- color var(--ds-duration-fast) var(--ds-ease);
8460
+ background-color var(--ds-duration-fast) var(--ds-ease-default),
8461
+ color var(--ds-duration-fast) var(--ds-ease-default);
8450
8462
 
8451
8463
  /* Item hover & active states */
8452
8464
 
@@ -9390,7 +9402,7 @@ button.ds-tag:focus-visible {
9390
9402
  border: none;
9391
9403
  border-radius: var(--ds-radius-full);
9392
9404
  background-color: rgba(255, 255, 255, 0.15);
9393
- color: #fff;
9405
+ color: var(--ds-color-on-inverted);
9394
9406
  font-size: var(--ds-text-xl);
9395
9407
  cursor: pointer;
9396
9408
  transition: background-color var(--ds-duration-fast) var(--ds-ease-default);
@@ -9422,7 +9434,7 @@ button.ds-tag:focus-visible {
9422
9434
  border: none;
9423
9435
  border-radius: var(--ds-radius-full);
9424
9436
  background-color: rgba(255, 255, 255, 0.15);
9425
- color: #fff;
9437
+ color: var(--ds-color-on-inverted);
9426
9438
  font-size: var(--ds-text-2xl);
9427
9439
  cursor: pointer;
9428
9440
  transition: background-color var(--ds-duration-fast) var(--ds-ease-default);
@@ -9467,7 +9479,7 @@ button.ds-tag:focus-visible {
9467
9479
  padding: var(--ds-space-1) var(--ds-space-3);
9468
9480
  border-radius: var(--ds-radius-full);
9469
9481
  background-color: rgba(0, 0, 0, 0.6);
9470
- color: #fff;
9482
+ color: var(--ds-color-on-inverted);
9471
9483
  font-size: var(--ds-text-sm);
9472
9484
  font-family: var(--ds-font-sans);
9473
9485
  font-variant-numeric: tabular-nums;
@@ -9489,17 +9501,17 @@ button.ds-tag:focus-visible {
9489
9501
  Full-width hero section with background image, gradient overlay,
9490
9502
  and optional frosted glass backdrop.
9491
9503
 
9492
- Intentionally uses theme-independent colors for text on photo backgrounds.
9493
- The overlay uses color-mix() with --ds-color-bg for theme-aware darkening
9494
- while title/subtitle stay white for readability on any photo.
9504
+ The overlay uses color-mix() with --ds-color-bg for theme-aware darkening.
9505
+ Text color is NOT forced — use ds-text-always-white or ds-text-primary
9506
+ depending on your background.
9495
9507
 
9496
9508
  Usage:
9497
9509
  <section class="ds-hero" style="background-image: url(...)">
9498
9510
  <div class="ds-hero__overlay"></div>
9499
9511
  <div class="ds-hero__content ds-container">
9500
9512
  <div class="ds-hero__backdrop">
9501
- <h1 class="ds-hero__title ds-hero-title">Heading</h1>
9502
- <p class="ds-hero__subtitle">Subheading</p>
9513
+ <h1 class="ds-hero__title ds-hero-title ds-text-always-white">Heading</h1>
9514
+ <p class="ds-hero__subtitle ds-text-always-white">Subheading</p>
9503
9515
  </div>
9504
9516
  </div>
9505
9517
  </section>
@@ -9591,13 +9603,11 @@ button.ds-tag:focus-visible {
9591
9603
  margin-inline: auto;
9592
9604
  }
9593
9605
 
9594
- /* --- Title & subtitle (theme-independent white for photo readability) --- */
9595
- .ds-hero__title {
9596
- color: #fff;
9597
- }
9598
-
9606
+ /* --- Title & subtitle (no forced color use ds-text-always-white or
9607
+ ds-text-primary depending on your overlay/backdrop) --- */
9608
+ .ds-hero__title,
9599
9609
  .ds-hero__subtitle {
9600
- color: rgba(255, 255, 255, 0.85);
9610
+ color: inherit;
9601
9611
  }
9602
9612
 
9603
9613
  /* ==========================================================================
@@ -11683,6 +11693,10 @@ tr:hover .ds-sortable__handle,
11683
11693
  .ds-text-interactive { color: var(--ds-color-interactive); }
11684
11694
  .ds-text-on-inverted { color: var(--ds-color-on-inverted); }
11685
11695
 
11696
+ /* --- Theme-independent colors (ignore light/dark toggle) --- */
11697
+ .ds-text-always-white { color: var(--ds-color-static-white); }
11698
+ .ds-text-always-black { color: var(--ds-color-static-black); }
11699
+
11686
11700
  /* --- Background Color --- */
11687
11701
  .ds-bg-base { background-color: var(--ds-color-bg); }
11688
11702
  .ds-bg-surface { background-color: var(--ds-color-surface); }
@@ -12022,7 +12036,7 @@ tr:hover .ds-sortable__handle,
12022
12036
  /* --- Editable Cell (pointer + bg on hover) --- */
12023
12037
  .ds-editable {
12024
12038
  cursor: pointer;
12025
- border-radius: var(--ds-radius-default);
12039
+ border-radius: var(--ds-radius-md);
12026
12040
  transition: background-color var(--ds-duration-fast) var(--ds-ease-default);
12027
12041
  }
12028
12042
  .ds-editable:hover {
@@ -12076,7 +12090,7 @@ tr:hover .ds-sortable__handle,
12076
12090
  }
12077
12091
 
12078
12092
  .ds-bg-base-50 {
12079
- background-color: color-mix(in srgb, var(--ds-color-bg-base) 50%, transparent);
12093
+ background-color: color-mix(in srgb, var(--ds-color-bg) 50%, transparent);
12080
12094
  }
12081
12095
 
12082
12096
  /* --- Hover Color Variants --- */