@hattisar/design-tokens 0.3.14 → 0.3.16
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/package.json +1 -1
- package/tokens.css +38 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hattisar/design-tokens",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.16",
|
|
4
4
|
"description": "Shared design tokens (colors, type, radius, spacing, motion) and base primitives (reset, buttons, inputs, cards, modals, auth shell) for every Hattisar frontend.",
|
|
5
5
|
"main": "tokens.css",
|
|
6
6
|
"files": [
|
package/tokens.css
CHANGED
|
@@ -342,16 +342,24 @@
|
|
|
342
342
|
--sidebar-bg: var(--color-background-card);
|
|
343
343
|
--sidebar-text: var(--color-text-primary);
|
|
344
344
|
--sidebar-text-muted: var(--color-text-muted);
|
|
345
|
-
--sidebar-active-bg: var(--color-surface-tint);
|
|
346
345
|
--sidebar-active-text: var(--color-text-primary);
|
|
347
346
|
--sidebar-hover-bg: var(--color-surface-tint);
|
|
348
|
-
/*
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
347
|
+
/* Accent ink for the row you are on: icon, label and a 3px left bar
|
|
348
|
+
all take this, and nothing takes it as a fill. --color-cta-on-
|
|
349
|
+
surface rather than --color-cta itself because this sits on a
|
|
350
|
+
white rail: measured, 3973d4 lands at 4.59:1 against it and
|
|
351
|
+
4285f4 at 3.56:1, so the unmodified CTA blue would miss AA for
|
|
352
|
+
normal text on the one rail it appears on most.
|
|
353
|
+
|
|
354
|
+
Was var(--sidebar-active-text), i.e. --color-text-primary, which
|
|
355
|
+
made it the same near-black as every other row's hover state and
|
|
356
|
+
so no accent at all. The active row had a pill fill to lean on
|
|
357
|
+
instead, except that in light theme the fill token and
|
|
358
|
+
--sidebar-hover-bg were both --color-surface-tint — so the page
|
|
359
|
+
you were on and whatever row the cursor happened to be over were
|
|
360
|
+
pixel-identical. That fill token is gone; both secondary rails
|
|
361
|
+
already read this one, so all three navs now share one accent. */
|
|
362
|
+
--sidebar-active-ink: var(--color-cta-on-surface);
|
|
355
363
|
--sidebar-rail-bg: var(--color-background-card);
|
|
356
364
|
|
|
357
365
|
/* Every left-hand nav rail in an app sharing this one width instead
|
|
@@ -523,14 +531,12 @@
|
|
|
523
531
|
--sidebar-bg: #18181b;
|
|
524
532
|
--sidebar-text: var(--color-text-primary);
|
|
525
533
|
--sidebar-text-muted: var(--color-text-muted);
|
|
526
|
-
/* Two distinct white-overlay intensities on top of --sidebar-bg —
|
|
527
|
-
hover lighter, active a touch stronger — so the current page's row
|
|
528
|
-
still reads as visibly different from a row you're just passing
|
|
529
|
-
the cursor over. */
|
|
530
|
-
--sidebar-active-bg: color-mix(in srgb, white 7%, transparent);
|
|
531
534
|
--sidebar-active-text: var(--color-text-primary);
|
|
532
535
|
--sidebar-hover-bg: rgba(255, 255, 255, 0.06);
|
|
533
|
-
--
|
|
536
|
+
/* --color-cta unmodified here: on #18181b it measures 4.97:1, where
|
|
537
|
+
the on-surface variant light theme uses is tuned for a white
|
|
538
|
+
ground. See the light block above for what this token is. */
|
|
539
|
+
--sidebar-active-ink: var(--color-cta);
|
|
534
540
|
--sidebar-rail-bg: #18181b;
|
|
535
541
|
|
|
536
542
|
color-scheme: dark;
|
|
@@ -632,10 +638,9 @@
|
|
|
632
638
|
--sidebar-bg: var(--color-background-card);
|
|
633
639
|
--sidebar-text: #09090b;
|
|
634
640
|
--sidebar-text-muted: var(--color-text-muted);
|
|
635
|
-
--sidebar-active-bg: var(--color-surface-tint);
|
|
636
641
|
--sidebar-active-text: var(--color-text-primary);
|
|
637
642
|
--sidebar-hover-bg: var(--color-surface-tint);
|
|
638
|
-
--sidebar-active-
|
|
643
|
+
--sidebar-active-ink: var(--color-cta-on-surface);
|
|
639
644
|
--sidebar-rail-bg: var(--color-background-card);
|
|
640
645
|
|
|
641
646
|
color-scheme: light;
|
|
@@ -1365,6 +1370,23 @@ input[type="radio"] {
|
|
|
1365
1370
|
margin: 0;
|
|
1366
1371
|
}
|
|
1367
1372
|
|
|
1373
|
+
/* Cards that follow a form and belong to the same record — custom
|
|
1374
|
+
fields, storefront access, attachments.
|
|
1375
|
+
|
|
1376
|
+
They are not part of the form: each saves itself, so none of them
|
|
1377
|
+
belongs inside its <form>. But they have to line up with it, and the
|
|
1378
|
+
rule above only centres a `> form`, so rendered as plain siblings
|
|
1379
|
+
they spanned the whole page while the form sat centred above them —
|
|
1380
|
+
and stacked flush against each other, since nothing was providing
|
|
1381
|
+
the gap the form's own wrapper gives its children. */
|
|
1382
|
+
.record-form-trailing {
|
|
1383
|
+
display: flex;
|
|
1384
|
+
flex-direction: column;
|
|
1385
|
+
gap: var(--space-3);
|
|
1386
|
+
max-width: var(--page-width-content);
|
|
1387
|
+
margin-inline: auto;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1368
1390
|
/* Collapsible accordion sections — a plain chevron that rotates open
|
|
1369
1391
|
instead of the browser's own disclosure-triangle marker. */
|
|
1370
1392
|
.form-section-summary {
|