@hattisar/design-tokens 0.3.17 → 0.3.18

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tokens.css +21 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hattisar/design-tokens",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
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
@@ -752,24 +752,22 @@ a {
752
752
  text-decoration: none;
753
753
  }
754
754
 
755
+ /* The app's one accent blue — same token as the sidebar's current-row
756
+ ink and the active document tab. Not .card: a card-styled link is a
757
+ clickable surface, not inline text, and turning its whole contents
758
+ blue on hover would tint every stat number/label inside a dashboard
759
+ tile along with it (see a.card below, which keeps its own hover
760
+ treatment instead). */
761
+ a:hover:not(.card) {
762
+ color: var(--color-cta-on-surface);
763
+ }
764
+
755
765
  a:focus-visible {
756
766
  outline: 1.5px dashed var(--color-brand);
757
767
  outline-offset: 4px;
758
768
  border-radius: var(--radius-full);
759
769
  }
760
770
 
761
- /* Table-cell identity links (item name, PO number, ...) go semibold on
762
- hover instead of the row itself tinting. Weight rather than
763
- underline, reserved for hover specifically (not the persistent
764
- "you're on this page" signal a nav rail's [aria-current="page"] uses
765
- semibold for too), so there's no confusion between a row you're
766
- pointing at and one you're actually on. Scoped to table cells only,
767
- not every <a> in an app (nav links, card links, etc. keep their own
768
- existing hover treatments). */
769
- td a:hover {
770
- font-weight: var(--font-weight-semibold);
771
- }
772
-
773
771
  /* A label should recede so the value it names is what gets scanned.
774
772
  Medium weight at a step down from body, in secondary ink — quieter
775
773
  than the data, still comfortably above AA. */
@@ -1145,21 +1143,22 @@ label:has(:required) .combobox-input {
1145
1143
  color: var(--color-text-primary);
1146
1144
  }
1147
1145
 
1148
- input:focus-visible,
1149
- select:focus-visible,
1150
- textarea:focus-visible {
1151
- outline: none;
1152
- border-color: var(--color-brand);
1153
- box-shadow: 0 0 0 3px var(--color-focus-ring);
1154
- }
1146
+ /* The app's one accent blue, not --color-brand — asked for directly.
1147
+ --color-brand still does the same job for the controls that used to
1148
+ share this border with it (checkbox tick, a:focus-visible's outline),
1149
+ so it stays defined as-is; this just stops reading its (near-black)
1150
+ value for the field border specifically.
1155
1151
 
1156
- /* Kept for pointer focus too — a click into a field should still show
1157
- which one is live, just without the ring shouting. */
1152
+ No box-shadow ring — asked for directly ("we do not need out shadow
1153
+ on input area when typing"). :focus and :focus-visible used to carry
1154
+ different treatments (a ring for keyboard focus, none for a plain
1155
+ click) and are one rule now that there's no ring to tell them apart
1156
+ by. */
1158
1157
  input:focus,
1159
1158
  select:focus,
1160
1159
  textarea:focus {
1161
1160
  outline: none;
1162
- border-color: var(--color-brand);
1161
+ border-color: var(--color-cta-on-surface);
1163
1162
  }
1164
1163
 
1165
1164
  /* A field the browser or the form has judged invalid.