@hattisar/design-tokens 0.3.24 → 0.3.26
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 +26 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hattisar/design-tokens",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
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
|
@@ -33,7 +33,11 @@
|
|
|
33
33
|
to equal background-global exactly, which meant hover states had
|
|
34
34
|
no visible target to land on. */
|
|
35
35
|
--color-background-global: #f4f4f5;
|
|
36
|
+
/* The frame the routed page sits in: white in light, the canvas in dark. */
|
|
37
|
+
--color-background-page: #ffffff;
|
|
36
38
|
--color-background-card: #ffffff;
|
|
39
|
+
/* Table column-header band: a step lighter than the hover tint. */
|
|
40
|
+
--color-table-header: #f7f7f7;
|
|
37
41
|
--color-surface-tint: #e8e8ea;
|
|
38
42
|
--color-input: #ffffff;
|
|
39
43
|
--color-text-primary: #09090b;
|
|
@@ -221,11 +225,12 @@
|
|
|
221
225
|
|
|
222
226
|
/* The horizontal tab block (Tabs.tsx) — one frame for every context it
|
|
223
227
|
appears in, whether wrapped in .card (document forms) or
|
|
224
|
-
.form-section-tabs (Customer/Vendor/Item).
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
.form-section-tabs (Customer/Vendor/Item). The same gray as a widget
|
|
229
|
+
card's frame, so the strip reads as a gray band and the active tab's
|
|
230
|
+
white pill and the white panel below stand out against it. A .card
|
|
231
|
+
frame (white) hid both. It was transparent, which only worked while
|
|
232
|
+
the page canvas behind it was gray; it is a fill of its own now. */
|
|
233
|
+
--tabs-frame-bg: var(--color-table-header);
|
|
229
234
|
--tabs-frame-border: 1px solid var(--color-border);
|
|
230
235
|
--tabs-frame-radius: var(--radius-sm);
|
|
231
236
|
|
|
@@ -409,11 +414,11 @@
|
|
|
409
414
|
Body moves 14.5 -> 14: at Inter's x-height 14px is the more
|
|
410
415
|
comfortable long-session size, and it buys back the density the
|
|
411
416
|
roomier spacing below spends. */
|
|
412
|
-
--text-xs:
|
|
413
|
-
--text-sm:
|
|
414
|
-
--text-base:
|
|
415
|
-
--text-md:
|
|
416
|
-
--text-lg:
|
|
417
|
+
--text-xs: 11px;
|
|
418
|
+
--text-sm: 12px;
|
|
419
|
+
--text-base: 13px;
|
|
420
|
+
--text-md: 14px;
|
|
421
|
+
--text-lg: 16px;
|
|
417
422
|
--text-xl: 20px;
|
|
418
423
|
--text-2xl: 24px;
|
|
419
424
|
--text-3xl: 30px;
|
|
@@ -457,11 +462,11 @@
|
|
|
457
462
|
(so a theme change re-tints all of them from one pair of tokens). */
|
|
458
463
|
--sidebar-bg: var(--color-text-primary);
|
|
459
464
|
--sidebar-active-text: var(--color-background-card);
|
|
460
|
-
--sidebar-text: color-mix(in srgb, var(--sidebar-active-text)
|
|
461
|
-
--sidebar-text-muted: color-mix(in srgb, var(--sidebar-active-text)
|
|
465
|
+
--sidebar-text: color-mix(in srgb, var(--sidebar-active-text) 86%, var(--sidebar-bg));
|
|
466
|
+
--sidebar-text-muted: color-mix(in srgb, var(--sidebar-active-text) 65%, var(--sidebar-bg));
|
|
462
467
|
/* Hover (and the current row's fill), the dividers, and the search /
|
|
463
468
|
input fill: a veil of the ink over the chrome. */
|
|
464
|
-
--sidebar-hover-bg: color-mix(in srgb, var(--sidebar-active-text)
|
|
469
|
+
--sidebar-hover-bg: color-mix(in srgb, var(--sidebar-active-text) 19%, transparent);
|
|
465
470
|
--sidebar-border: color-mix(in srgb, var(--sidebar-active-text) 14%, transparent);
|
|
466
471
|
--sidebar-input-bg: var(--sidebar-hover-bg);
|
|
467
472
|
/* The row you are on: the full ink on the same fill hover uses, the
|
|
@@ -477,6 +482,8 @@
|
|
|
477
482
|
/* Sidebar and popout dimensions, named once. */
|
|
478
483
|
--sidebar-icon-size: 20px;
|
|
479
484
|
--sidebar-control-height: 36px;
|
|
485
|
+
--sidebar-item-height: 30px;
|
|
486
|
+
--sidebar-item-weight: 450;
|
|
480
487
|
--sidebar-badge-size: 22px;
|
|
481
488
|
--sidebar-avatar-size: 28px;
|
|
482
489
|
--popout-min-width: 180px;
|
|
@@ -488,7 +495,7 @@
|
|
|
488
495
|
matched (to the nearest round number) against a reference
|
|
489
496
|
layout's own sidebar width, the same reason --header-height above
|
|
490
497
|
moved too. */
|
|
491
|
-
--sidebar-width:
|
|
498
|
+
--sidebar-width: 220px;
|
|
492
499
|
--sidebar-width-collapsed: 56px;
|
|
493
500
|
--sidebar-height: calc(100vh - var(--header-height));
|
|
494
501
|
|
|
@@ -550,7 +557,9 @@
|
|
|
550
557
|
dramatic jump) plus real borders is what keeps a dark theme
|
|
551
558
|
reading crisp instead of washed out — see --color-border below. */
|
|
552
559
|
--color-background-global: #09090b;
|
|
560
|
+
--color-background-page: #09090b;
|
|
553
561
|
--color-background-card: #18181b;
|
|
562
|
+
--color-table-header: #27272a;
|
|
554
563
|
--color-surface-tint: #27272a;
|
|
555
564
|
--color-input: var(--color-background-card);
|
|
556
565
|
/* Not pure white — pure white text on a near-black surface causes
|
|
@@ -684,7 +693,10 @@
|
|
|
684
693
|
alone would lose to a dark attribute set higher up. */
|
|
685
694
|
[data-theme="light"] {
|
|
686
695
|
--color-background-global: #f4f4f5;
|
|
696
|
+
--color-background-page: #ffffff;
|
|
687
697
|
--color-background-card: #ffffff;
|
|
698
|
+
/* Table column-header band: a step lighter than the hover tint. */
|
|
699
|
+
--color-table-header: #f7f7f7;
|
|
688
700
|
--color-surface-tint: #e8e8ea;
|
|
689
701
|
--color-input: #ffffff;
|
|
690
702
|
--color-text-primary: #09090b;
|