@orangecheck/design 0.10.0 → 0.11.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/styles/aurora.css +9 -0
- package/dist/styles/theme.css +30 -0
- package/package.json +1 -1
package/dist/styles/aurora.css
CHANGED
|
@@ -17,11 +17,20 @@
|
|
|
17
17
|
/* Light mode rides quieter and composites normally over the light bg. */
|
|
18
18
|
--oc-aurora-mode-op: 0.46;
|
|
19
19
|
--oc-aurora-blend: normal;
|
|
20
|
+
|
|
21
|
+
/* Frosted-surface tuning (consumed by .oc-surface in theme.css). Light mode
|
|
22
|
+
keeps panels mostly solid since the aurora rides quiet here. */
|
|
23
|
+
--oc-surface-translucency: 16%;
|
|
24
|
+
--oc-surface-blur: 12px;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
:root.dark {
|
|
23
28
|
--oc-aurora-mode-op: 0.66;
|
|
24
29
|
--oc-aurora-blend: screen;
|
|
30
|
+
|
|
31
|
+
/* Dark mode's aurora is brighter (screen blend) — let a touch more of it
|
|
32
|
+
bleed through frosted panels for the same ambient feel. */
|
|
33
|
+
--oc-surface-translucency: 26%;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
.oc-aurora {
|
package/dist/styles/theme.css
CHANGED
|
@@ -176,6 +176,36 @@
|
|
|
176
176
|
color: color-mix(in oklch, var(--foreground), transparent 50%);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/* ── Frosted translucent surface (aurora-aware) ──────────────────────
|
|
180
|
+
The canonical card/panel background for any surface that sits over the
|
|
181
|
+
ambient <OcAurora/>. Derives from --card via color-mix, so it recolours
|
|
182
|
+
across every skin + mode automatically, and frosts the moving aurora
|
|
183
|
+
behind it (backdrop-blur) so the colour bleeds through subtly while text
|
|
184
|
+
stays legible. Two rules:
|
|
185
|
+
1. Put .oc-surface on the OUTERMOST panel only — never nest it inside
|
|
186
|
+
another .oc-surface (stacked backdrop-blurs muddy the result).
|
|
187
|
+
Inner cells / rows stay transparent and inherit the panel behind.
|
|
188
|
+
2. Pair it with a `border` for the edge; .oc-surface only owns the
|
|
189
|
+
fill + blur.
|
|
190
|
+
Tune per mode via --oc-surface-translucency / --oc-surface-blur (set in
|
|
191
|
+
aurora.css). */
|
|
192
|
+
.oc-surface {
|
|
193
|
+
background-color: color-mix(
|
|
194
|
+
in oklch,
|
|
195
|
+
var(--card),
|
|
196
|
+
transparent var(--oc-surface-translucency, 16%)
|
|
197
|
+
);
|
|
198
|
+
backdrop-filter: blur(var(--oc-surface-blur, 12px)) saturate(1.06);
|
|
199
|
+
-webkit-backdrop-filter: blur(var(--oc-surface-blur, 12px)) saturate(1.06);
|
|
200
|
+
}
|
|
201
|
+
/* No backdrop-filter (rare) → fall back near-opaque so text never sits on a
|
|
202
|
+
moving aurora with poor contrast. */
|
|
203
|
+
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
204
|
+
.oc-surface {
|
|
205
|
+
background-color: color-mix(in oklch, var(--card), transparent 4%);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
179
209
|
/* Terminal-window chrome: hard borders, no soft shadows. */
|
|
180
210
|
.terminal {
|
|
181
211
|
background: var(--card);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangecheck/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "OrangeCheck design system — multi-theme tokens, primitives, and family composites for the .ochk.io sub-sites. Tailwind 4 + Next.js Pages Router. Not for third-party integration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"orangecheck",
|