@hattisar/design-tokens 0.3.16 → 0.3.17
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 +12 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hattisar/design-tokens",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
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
|
@@ -268,6 +268,13 @@
|
|
|
268
268
|
--space-6: 24px;
|
|
269
269
|
--space-8: 32px;
|
|
270
270
|
--space-10: 40px;
|
|
271
|
+
|
|
272
|
+
/* The gap between a label and the control under it. Was a bare 6px
|
|
273
|
+
inside the input rule; named because anything wrapping a control
|
|
274
|
+
has to reproduce it exactly — a wrapper that keeps the margin on
|
|
275
|
+
the input ends up 6px taller than the field it contains, which is
|
|
276
|
+
how an overlaid control centres itself slightly high. */
|
|
277
|
+
--field-label-gap: 6px;
|
|
271
278
|
--space-12: 48px;
|
|
272
279
|
/* Two steps past the old ceiling, for the gaps that separate whole
|
|
273
280
|
regions of a page rather than elements inside one. Without them
|
|
@@ -289,6 +296,10 @@
|
|
|
289
296
|
lets the page be as wide as it likes. */
|
|
290
297
|
--form-label-width: 160px;
|
|
291
298
|
--form-control-width: 340px;
|
|
299
|
+
/* A control sharing a line with others — the second and third field
|
|
300
|
+
of a header row. Narrower than a control that owns its row, because
|
|
301
|
+
three of those do not fit and a date needs far less than 340px. */
|
|
302
|
+
--form-control-width-compact: 200px;
|
|
292
303
|
--form-control-width-wide: 520px;
|
|
293
304
|
--field-min-width-narrow: 140px;
|
|
294
305
|
|
|
@@ -909,7 +920,7 @@ textarea {
|
|
|
909
920
|
line-height: 1.4;
|
|
910
921
|
width: 100%;
|
|
911
922
|
padding: 8px 12px;
|
|
912
|
-
margin-top:
|
|
923
|
+
margin-top: var(--field-label-gap);
|
|
913
924
|
border: 1px solid var(--color-border-strong);
|
|
914
925
|
border-radius: var(--radius-sm);
|
|
915
926
|
background: var(--color-input);
|