Skip to content

Keep design-system tokens.json in sync with brand.css #1153

Open

Description

@A1L13N

Context

design-system/tokens.json is documented as "the same tokens as data" (README), but it has already drifted from brand.css. brand.css defines --a1-gold-deep: #9a8236 and --a1-red: #d92d20, and neither appears in tokens.json. Nothing checks the two files against each other, so drift will keep happening as the design evolves.

What to do

  • Write design-system/scripts/check_tokens.py: parse the --a1-* color custom properties from brand.css (light :root and the dark theme block) and compare them with tokens.json (color plus theme.light/theme.dark), printing mismatches and exiting non-zero.
  • Fix the current drift (add gold-deep and red, or remove them from brand.css if they're unused; check with grep across the repo).
  • Run the script in CI for changes to design-system/ (a step in .github/workflows/project-checks.yml gated on matrix.project == 'design-system').
  • Rebuild the downloadable kit with python build-kit.py if tokens.json changes.

Acceptance criteria

  • The script passes on the fixed files and fails if a colour is changed in only one place.
  • CI runs it for design-system/ changes.
  • downloads/alpha-one-labs-design-system.zip is rebuilt.

Files

  • design-system/tokens.json
  • design-system/brand.css
  • design-system/scripts/check_tokens.py (new)
  • .github/workflows/project-checks.yml
  • design-system/build-kit.py

Helpful links

Part of GSoC 2027 onboarding — see https://gsoc.alphaonelabs.com

Activity

  1. added
    good first issue
    gsoc-2027
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
  3. reopened this on Nov 2, 2026
  4. added
    2026-11
    on Nov 2, 2026
  5. 10done commented on Nov 2, 2026

    @10done
    Contributor

    /assign

  6. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    @10done 'Good first issue' tasks are reserved for newcomers who haven't submitted PRs yet. Since you already have PRs in this repository, please choose a different issue to work on.

  7. 10done commented on Nov 2, 2026

    @10done
    Contributor

    cool

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

    2026-11designgood first issuegsoc-2027project: design-system

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions