Skip to content

SVG renderer and syntax color variables#11

Merged
kollhof merged 1 commit intomainfrom
svg-renderer
Mar 22, 2026
Merged

SVG renderer and syntax color variables#11
kollhof merged 1 commit intomainfrom
svg-renderer

Conversation

@kollhof
Copy link
Member

@kollhof kollhof commented Mar 22, 2026

Summary

  • Add cargo run -- svg <file.fnk> command that outputs syntax-highlighted Fink code as SVG to stdout
  • Extract syntax token colours into static/syntax-colors.css as --fink-* CSS custom properties — single source of truth consumed by website CSS and SVG renderer

Test plan

  • SVG output renders correctly with syntax colours from syntax-colors.css
  • Website code blocks unchanged (verified identical CSS variable resolution)
  • CI build passes

Add `cargo run -- svg <file.fnk>` command that outputs highlighted Fink
code as SVG to stdout.

Extract syntax token colours into static/syntax-colors.css as --fink-*
CSS custom properties — single source of truth consumed by both the
website CSS and the SVG renderer.
@kollhof kollhof merged commit c504f04 into main Mar 22, 2026
6 checks passed
@kollhof kollhof deleted the svg-renderer branch March 22, 2026 08: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