Skip to content

Add a lint/CI check for hardcoded hex colors bypassing --azable-* tokens #18

Description

@anitajordan22244-afk

Most of the app's colors are driven by --azable-* CSS custom properties in apps/web/src/app/globals.css, but a recent color-theme audit found hardcoded hex values bypassing the token system in a couple of places (components/map/cluster-utils.ts, leaflet popup/zoom-control overrides) — both were fixed, but that was found by manual grep, not a lint rule, so nothing prevents new hardcoded hex from creeping back in.

To do: add a lint rule (e.g. a no-restricted-syntax ESLint rule matching hex-color string literals in .ts/.tsx, with the CSS files themselves exempted) or a CI grep check to catch hardcoded hex colors that bypass the --azable-* tokens.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions