@fusion.dev/helix-docs 0.207.2 → 0.208.0

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/content/color.mdx CHANGED
@@ -35,7 +35,9 @@ choice people most often get wrong. See [Surfaces and
35
35
  separation](./surfaces-and-separation).
36
36
 
37
37
  A field is filled with `well`: 5% of `foreground` laid over whatever the field
38
- sits on, so its color depends on the surface under the field.
38
+ sits on, so its color depends on the surface under the field. A row under the
39
+ pointer or the keyboard, such as an option, is lit with `hover` the same way:
40
+ 8% of `foreground` in light and 12% in dark.
39
41
 
40
42
  ### Inks
41
43
 
@@ -124,6 +126,14 @@ solves them against the well over the page, a card, a raised surface, a dialog,
124
126
  and a sunken surface. The report names each of these grounds as the well over
125
127
  its surface, such as `color-well over color-surface`.
126
128
 
129
+ Both inks are also written on a lit row and on a selected row. The engine solves
130
+ them against these grounds as well:
131
+
132
+ - `hover` over each of the same five surfaces, such as `color-hover over
133
+ color-surface`
134
+ - `primary-subtle` and `accent-subtle`, the tints a selected row takes
135
+ - the well over each tint, for a field on a selected row
136
+
127
137
  `foreground-subtle` is the one ink the engine does not solve. The range of
128
138
  readable grays has room for one quiet ink, and `foreground-muted` is that ink, so
129
139
  `foreground-subtle` stays a fixed step of the stylesheet's gray ramp and its
@@ -83,7 +83,7 @@ left out.
83
83
  | Field | What it controls |
84
84
  |---|---|
85
85
  | `contrastTarget` | Target contrast for body text. 4.5 is WCAG AA, and 7 is AAA |
86
- | `pairings` | The foreground and background pairs to measure, by token name. A background of `color-well over color-surface` is a field's well over that surface. The list replaces the pairs from the engine's surface model. The engine measures each pair and solves none of them, and a pair that names a token the engine does not emit is reported as `unverifiable` |
86
+ | `pairings` | The foreground and background pairs to measure, by token name. A background of `color-well over color-surface` is a field's well over that surface, and `color-hover over color-surface` is a lit row over it. The list replaces the pairs from the engine's surface model. The engine measures each pair and solves none of them, and a pair that names a token the engine does not emit is reported as `unverifiable` |
87
87
 
88
88
  The default is 4.5, the WCAG 2.1 AA figure. The European Accessibility Act
89
89
  refers to WCAG 2.1 AA, so 4.5 is the figure with legal weight.