Skip to content

Restyle demo UI to match the marketing site's Carbon design tokens - #19

Merged
ErenAri merged 1 commit into
mainfrom
ui/carbon-design-tokens
Jun 19, 2026
Merged

ErenAri merged 1 commit into
mainfrom
ui/carbon-design-tokens

Conversation

@ErenAri

@ErenAri ErenAri commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

The demo web app (internal/api/ui.go) used its own hand-rolled palette — ~50 one-off hex values, a different blue (#1d5bd8 vs the site's #4589ff), an unrelated amber accent — and inconsistent spacing. Clicking "Open the Technical Preview" from the polished kernelguard.net marketing page dropped users into what looked like a different, less-finished product. That mismatch is the main thing that read as "amateur."

Fix

  • Add a :root token set matched 1:1 to the marketing site's IBM Carbon values (#161616 / #262626 / #393939 / #4589ff / #3ddc97).
  • Replace every one-off hex with a semantic token (--bg / --layer / --field / --border / --fg / --fg-muted / --fg-subtle / --primary / --success / --danger / --warning).
  • Add focus/hover affordances and link colour.
  • No structural or JS changes — purely the stylesheet, so the demo now reads as the same product as the site.

Verify

  • go build ./cmd/bpfcompat, go test ./internal/api/, go vet all clean.
  • Served locally: page returns 200, CSS region has zero remaining raw hexes; tokens resolve to the Carbon values.

Follow-ups (separate PRs, per the plan): reduce on-load density / progressive disclosure (#2), make the matrix the visual hero (#3).

🤖 Generated with Claude Code

The demo web app (internal/api/ui.go) had its own hand-rolled palette — ~50
one-off hex values, a different blue, an unrelated amber accent — so clicking
through from the polished kernelguard.net marketing page landed in what looked
like a different, less-finished product.

Introduce a :root token set matched to the marketing site's IBM Carbon values
(#161616 / #262626 / #393939 / #4589ff / #3ddc97) and replace every one-off hex
with a semantic token (--bg/--layer/--field/--border/--fg/--primary/--success/
--danger/--warning). Add focus/hover affordances. No structural/JS changes;
purely the stylesheet, so the demo now reads as the same product as the site.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ErenAri
ErenAri merged commit beb11fb into main Jun 19, 2026
7 of 8 checks passed
@ErenAri
ErenAri deleted the ui/carbon-design-tokens branch June 19, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant