Skip to content

Add ThemeKit Configurator web app#6

Merged
rozd merged 1 commit into
mainfrom
chore/configurator
Feb 20, 2026
Merged

Add ThemeKit Configurator web app#6
rozd merged 1 commit into
mainfrom
chore/configurator

Conversation

@rozd
Copy link
Copy Markdown
Owner

@rozd rozd commented Feb 20, 2026

Summary

  • Add a Svelte SPA (.github/pages/) that lets users visually build theme.json instead of editing JSON by hand
  • Schema-driven UI — categories, token fields, and config options are all derived from theme.schema.json at runtime
  • Dark mode support with system preference detection and manual toggle
  • Download button for the generated JSON output
  • Warns when token names conflict with SwiftUI built-in ShapeStyle properties (e.g. .primary, .background) and prompts users to set a custom style override
  • GitHub Pages deployment workflow (.github/workflows/deploy-pages.yml)

Test plan

  • npm run build in .github/pages/ succeeds
  • Add a token named primary → red highlight + warning icon with tooltip
  • Open popover for conflicting token → warning hint visible above style input
  • Type primaryColor in style field → warning disappears, override highlight appears
  • Clear style field → warning reappears
  • Add token named surface (not a built-in) → no warning
  • Toggle dark mode — UI adapts correctly
  • Download button produces valid theme.json

🤖 Generated with Claude Code

…rties

Highlights conflicting tokens (e.g. "primary", "background") with a red
outline and warning icon in the tag, and shows an inline hint in the
popover prompting users to set a custom style name override.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rozd rozd merged commit 8d7ff17 into main Feb 20, 2026
1 check passed
@rozd rozd deleted the chore/configurator branch February 20, 2026 22:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.30%. Comparing base (0bbc244) to head (add667f).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   99.30%   99.30%           
=======================================
  Files          28       28           
  Lines        1154     1154           
=======================================
  Hits         1146     1146           
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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