@viglet/viglet-design-system 2026.2.58 → 2026.2.59

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/preset.css CHANGED
@@ -170,8 +170,12 @@
170
170
  /* Dark surfaces sit one step above pure black on purpose. Near-black (0.145)
171
171
  under near-white text runs ~17:1 — far past AAA, and that overshoot is what
172
172
  produces halation: the glyphs bloom at the edges, worst for astigmatic eyes.
173
- The ramp below lands text at ~13.5:1, still comfortably AAA, and follows the
174
- dark-theme elevation rule that higher surfaces are LIGHTER, not shadowed:
173
+ The ramp below lands text at ~11.2:1 — still well past AAA (7:1), and inside
174
+ the band Material recommends for high-emphasis dark-theme text (white at
175
+ ~87%). Going further starts closing on --vg-muted-foreground (6.7:1) and
176
+ flattens the title/supporting-text hierarchy, which is the same problem from
177
+ the other side. It also follows the dark-theme elevation rule that higher
178
+ surfaces are LIGHTER, not shadowed:
175
179
 
176
180
  background 0.205 < card/sidebar 0.269 < muted/accent/popover 0.320
177
181
 
@@ -180,21 +184,21 @@
180
184
  .dark,
181
185
  [data-theme="dark"] {
182
186
  --vg-background: oklch(0.205 0 0);
183
- --vg-foreground: oklch(0.96 0 0);
187
+ --vg-foreground: oklch(0.90 0 0);
184
188
  --vg-card: oklch(0.269 0 0);
185
- --vg-card-foreground: oklch(0.96 0 0);
189
+ --vg-card-foreground: oklch(0.90 0 0);
186
190
  /* Elevated above card, so a dropdown over a card reads as lifted. */
187
191
  --vg-popover: oklch(0.32 0 0);
188
- --vg-popover-foreground: oklch(0.96 0 0);
192
+ --vg-popover-foreground: oklch(0.90 0 0);
189
193
  --vg-primary: oklch(0.922 0 0);
190
194
  --vg-primary-foreground: oklch(0.205 0 0);
191
195
  --vg-secondary: oklch(0.32 0 0);
192
- --vg-secondary-foreground: oklch(0.96 0 0);
196
+ --vg-secondary-foreground: oklch(0.90 0 0);
193
197
  --vg-muted: oklch(0.32 0 0);
194
198
  /* 0.708 -> 0.75 recovers the ~6.9:1 that the lighter card would have cost. */
195
199
  --vg-muted-foreground: oklch(0.75 0 0);
196
200
  --vg-accent: oklch(0.32 0 0);
197
- --vg-accent-foreground: oklch(0.96 0 0);
201
+ --vg-accent-foreground: oklch(0.90 0 0);
198
202
  --vg-destructive: oklch(0.704 0.191 22.216);
199
203
  /* A white-alpha line composites over its own surface, so its ratio barely
200
204
  moves when the surface lightens — 15% was 1.67:1 on the old card and would
@@ -214,12 +218,15 @@
214
218
  --vg-chart-4: oklch(0.627 0.265 303.9);
215
219
  --vg-chart-5: oklch(0.645 0.246 16.439);
216
220
  --vg-sidebar: oklch(0.269 0 0);
217
- --vg-sidebar-foreground: oklch(0.96 0 0);
221
+ --vg-sidebar-foreground: oklch(0.90 0 0);
218
222
  --vg-sidebar-primary: oklch(0.488 0.243 264.376);
223
+ /* Stays brighter than the other foregrounds: this one sits on a saturated
224
+ blue fill, not on a dark neutral, so the halation argument does not apply
225
+ and contrast is the only thing to optimise. */
219
226
  --vg-sidebar-primary-foreground: oklch(0.96 0 0);
220
227
  /* Must stay one step above --vg-sidebar or the selected item disappears. */
221
228
  --vg-sidebar-accent: oklch(0.32 0 0);
222
- --vg-sidebar-accent-foreground: oklch(0.96 0 0);
229
+ --vg-sidebar-accent-foreground: oklch(0.90 0 0);
223
230
  --vg-sidebar-border: oklch(1 0 0 / 14%);
224
231
  --vg-sidebar-ring: oklch(0.75 0 0);
225
232