Support styling color of Typst's SVG output with CSS
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
i have the understanding that there is no way of setting the color of a typst-exported svg with css. not sure what the design looks like here, but i guess a function returning color would suffice.
Use Case
i'm cooking up a little Rust crate for embedding typst svgs in rustdoc output, but as i understand it, i can't color the text properly w.r.t. theming.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Typst's SVG export path and examining how exported SVG elements currently encode colors. Determine whether CSS-based color styling can be supported without breaking existing output, then verify the result in a rustdoc-style embedding where the SVG text follows the surrounding theme.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, rust
- Domain
- compilers, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100