Status Roles — One Meaning per Color and per Line Style
RULES.md
A status color or line style means one thing everywhere in HAX, so a person never has to learn that a signal means something else on another screen. Color: red (`--hax-ui-danger`) is for destructive actions and errors only; green (`--hax-ui-success`, `--ddd-status-correct-*`) is correct, saved or done; purple (`--ddd-status-incorrect-*`, `--hax-ui-incorrect`) is incorrect or a mismatch and nothing else, so HAX has no purple "done", "merged" or "closed" state. A finished or ended state that is not a failure uses the success or `muted` tone, never danger or incorrect. GitHub uses purple for merged and closed work; where HAX shows GitHub issue or pull request state (PRAW, the component gallery, onboarding lenses), show it as an icon and word on a neutral pill, not in GitHub's colors. Line style, for answer and form states (`--ddd-status-*-line`): solid is plain or correct, dotted is incorrect, double is an answer the reveal action showed (drawn at `--ddd-status-revealed-width`, as a double line needs 3px), dashed is not available; texture for consequence in admin is the danger hatch. A new state takes a style no other meaning uses, or reuses one only when it means the same thing. This sits under the Meaning Channels rule (`8d0c033b-7c96-4c6e-aafc-7dfff8ad9123`), which says every meaning needs a color and a texture; this rule keeps each of those channels unambiguous. Enforcement: `elements/d-d-d/test/ddd-token-families.test.js` in haxtheweb/webcomponents fails when two status states share a line style, and review covers color use. Tracking: <https://github.com/haxtheweb/issues/issues/3219>. In PRAW RULES.md (scope: webcomponents). Nothing enforces this yet.
Status: gap
Connects to
- Web Component Development includes this