@hattisar/design-tokens 0.3.29 → 0.3.31
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 +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hattisar/design-tokens",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
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
|
@@ -375,6 +375,15 @@
|
|
|
375
375
|
--image-picker-border: 1px dashed var(--color-border);
|
|
376
376
|
--image-picker-overlay: color-mix(in srgb, var(--color-background-card) 55%, transparent);
|
|
377
377
|
|
|
378
|
+
/* The measurement row: three sizes and their unit, a weight and its
|
|
379
|
+
unit. Shared by a package in Calculate rates and the item form's
|
|
380
|
+
Shipping card, so the unit pickers and the gaps between the groups
|
|
381
|
+
are one width wherever a size or a weight is typed. */
|
|
382
|
+
--measure-unit-width: 84px;
|
|
383
|
+
--measure-weight-width: 100px;
|
|
384
|
+
--measure-field-gap: var(--space-2);
|
|
385
|
+
--measure-group-gap: var(--space-6);
|
|
386
|
+
|
|
378
387
|
/* Depth, deliberately restrained. These were all `none`, which left
|
|
379
388
|
every surface separated by border alone — correct, legible, and
|
|
380
389
|
completely flat: a card, a dropdown and a modal all sat on the page
|
|
@@ -642,6 +651,12 @@
|
|
|
642
651
|
after the first pass shipped. */
|
|
643
652
|
--page-width-wide: 1680px;
|
|
644
653
|
|
|
654
|
+
/* A form that carries a table of item lines (adjustments, transfers, builds, purchase and sales orders). Wider
|
|
655
|
+
than a plain form so the table does not scroll sideways on a laptop screen, and narrower than a list page so
|
|
656
|
+
the numbers stay near their column headers on an ultrawide one. Every card on such a form is this wide,
|
|
657
|
+
not just the table, so their edges line up. */
|
|
658
|
+
--page-width-lines: 1296px;
|
|
659
|
+
|
|
645
660
|
color-scheme: light dark;
|
|
646
661
|
}
|
|
647
662
|
|
|
@@ -1853,6 +1868,12 @@ a.card:hover {
|
|
|
1853
1868
|
--ui-tint-skeleton: 9%;
|
|
1854
1869
|
--ui-wash: 14%;
|
|
1855
1870
|
/* Control and row sizes. */
|
|
1871
|
+
/* One button for every app that reads this tier: a rounded rectangle that matches the fields beside it, a
|
|
1872
|
+
32px target (the height of a field), medium-weight type. Apps map their own --button-* onto these. */
|
|
1873
|
+
--ui-btn-height: 32px;
|
|
1874
|
+
--ui-btn-radius: var(--radius-sm);
|
|
1875
|
+
--ui-btn-px: var(--space-4);
|
|
1876
|
+
--ui-btn-weight: var(--font-weight-medium);
|
|
1856
1877
|
--ui-ctl: 32px;
|
|
1857
1878
|
--ui-ctl-sm: 28px;
|
|
1858
1879
|
--ui-hit: 40px;
|