Skip to content

feat: light/dark theme + build system restructure#14

Merged
kollhof merged 2 commits intomainfrom
light-dark-theme
Mar 23, 2026
Merged

feat: light/dark theme + build system restructure#14
kollhof merged 2 commits intomainfrom
light-dark-theme

Conversation

@kollhof
Copy link
Member

@kollhof kollhof commented Mar 23, 2026

Summary

  • Light/dark theme support using CSS light-dark() for all colour variables (syntax tokens + page chrome), with a system/dark/light theme picker in the nav
  • Build system restructure: build/site/ for generated output (wiped on build), build/assets/ for downloaded dependencies (preserved). New update-deps command runs cargo update + downloads asset deps declared in Cargo.toml metadata
  • Playground inline injection: fragment HTML injected at build time instead of runtime fetch(), playground extends base.html for consistent nav
  • Bump playground to v1.9.0, fink dep to main branch
  • Fix highlight.rs for updated fink AST
  • Updated logo to rounded variant

Test plan

  • Verify light/dark/system theme toggle works on home, docs, and playground pages
  • Verify syntax highlighting renders correctly in both themes
  • Verify playground loads and functions correctly
  • Verify cargo run -- update-deps fetches playground artifact
  • Verify CI passes (build + deploy)

kollhof added 2 commits March 23, 2026 11:22
Use CSS light-dark() for all colour variables (syntax tokens and page
chrome). Theme picker in nav cycles system/dark/light and persists
choice to localStorage. Playground extends base.html for consistent
nav; editor syntax colours remain hardcoded pending playground-side
resolution of light-dark() values for Monaco. Logo updated to rounded
variant.
- Split build output: build/site/ (generated, wiped) and build/assets/
  (downloaded deps, preserved)
- Add `update-deps` command: runs cargo update + downloads asset deps
  declared in Cargo.toml [package.metadata.assets.*]
- Playground fragment injected at build time instead of runtime fetch()
- Bump playground to v1.9.0, fink dep to main branch
- Fix highlight.rs for new fink AST (Arm.lhs is Node, Match.subjects
  is Exprs, add Module variant)
- Add editor highlight bg/border CSS variables
- Add CLAUDE.md with dependency management docs
@kollhof kollhof merged commit bc98efd into main Mar 23, 2026
4 checks passed
@kollhof kollhof deleted the light-dark-theme branch March 23, 2026 14:24
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