@olwiba/cn 0.1.57 → 0.1.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/index.d.ts +21 -6
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/preset.css +16 -3
package/package.json
CHANGED
package/src/styles/preset.css
CHANGED
|
@@ -54,13 +54,22 @@
|
|
|
54
54
|
* a colour cast would fight its content — a charting or data tool. It keeps
|
|
55
55
|
* the off-white and drops the hue.
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
/* Raised from 0.012 on 2026-09-18. At that value the page carried roughly
|
|
58
|
+
0.004 chroma, which is below the threshold where anyone reads it as a
|
|
59
|
+
colour at all — the light theme looked like plain white, and the brand
|
|
60
|
+
only existed in the accents. User testing described the product as
|
|
61
|
+
unfinished in light mode for want of exactly this.
|
|
62
|
+
|
|
63
|
+
The per-surface ratios below are unchanged, so borders still carry the
|
|
64
|
+
most and the page the least; this only moves where the whole scale sits.
|
|
65
|
+
It remains a single number to turn down, and 0 still drops the hue. */
|
|
66
|
+
--neutral-tint-chroma: 0.024;
|
|
58
67
|
--neutral-tint-page: calc(var(--neutral-tint-chroma) * 0.33);
|
|
59
68
|
--neutral-tint-raised: calc(var(--neutral-tint-chroma) * 0.25);
|
|
60
69
|
--neutral-tint-muted: calc(var(--neutral-tint-chroma) * 0.67);
|
|
61
70
|
--neutral-tint-line: calc(var(--neutral-tint-chroma) * 0.83);
|
|
62
71
|
|
|
63
|
-
--background: oklch(0.
|
|
72
|
+
--background: oklch(0.977 0 0);
|
|
64
73
|
--foreground: oklch(0.145 0 0);
|
|
65
74
|
--card: oklch(0.997 0 0);
|
|
66
75
|
--card-foreground: oklch(0.145 0 0);
|
|
@@ -125,7 +134,11 @@
|
|
|
125
134
|
*/
|
|
126
135
|
@supports (color: oklch(from white l c h)) {
|
|
127
136
|
:root {
|
|
128
|
-
|
|
137
|
+
/* 0.977, matching the untinted fallback above. Cards stay at 0.997, so
|
|
138
|
+
dropping the page widens the gap between the two — a card now lifts off
|
|
139
|
+
the page instead of merging into it, which is the other half of why
|
|
140
|
+
light mode read as flat. */
|
|
141
|
+
--background: oklch(from var(--primary) 0.977 var(--neutral-tint-page) h);
|
|
129
142
|
--card: oklch(from var(--primary) 0.997 var(--neutral-tint-raised) h);
|
|
130
143
|
--popover: oklch(from var(--primary) 0.997 var(--neutral-tint-raised) h);
|
|
131
144
|
--secondary: oklch(from var(--primary) 0.962 var(--neutral-tint-muted) h);
|