Allow setting the default `currentColor`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 348
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
Most web icons, including [tailwindlabs/heroicons](https://github.com/tailwindlabs/heroicons) allows to set icon color with css font color on the page/block. This is done with `stroke="currentColor"` on the svg icon. For now resvg allows to set background color with `--background COLOR` argument, it would be really nice to have an option to do the same for "foreground" color. This way it would be possible to render icons for dark backgrounds.
Contributor guide
No contributing guide indexed for this repository
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 how resvg handles the existing `--background COLOR` option and how SVG `stroke="currentColor"` is represented during rendering. Add an equivalent foreground-color option and verify that icons using `currentColor` render with the requested color, including on dark backgrounds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100