Skip to content

Token gate advisories: opacity-dimmed layers and raw hex in CSS #657

Description

@krisarmstrong

./scripts/check-token-discipline.sh passes (exit 0 — colour-token discipline is clean) but reports advisories worth burning down rather than carrying:

[warn: FAMILY_OPACITY_DIM]   14 — Dim the colour token, not the layer
[warn: FAMILY_RAW_HEX_CSS]    4 — raw hex in CSS outside theme/
[warn: RAW_GAP] 9  [warn: RAW_P] 5  [warn: RAW_MB] 1  [warn: RAW_MT] 8
[warn: RAW_PX_2] 6  [warn: RAW_HEADING_PAIR] 1  [warn: RAW_FLEX_CENTER] 4

The opacity one is the substantive half: dimming the whole layer rather than the colour token lets a dimmed label fail contrast while it is explaining itself — an accessibility defect, not a style preference.

stem is the good case here; seed reports 72 and 51 for the same two rules (MustardSeedNetworks/seed#1944). The Step 4 archetype pass is the natural place to clear the ones in page bodies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs-infoNeeds more information before work can proceed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions