README: Add a section about light and dark modes in SVG. #3

Merged
ratzblues merged 1 commit from feature/readme/light-dark-svg into main 2026-08-16 16:55:27 +02:00

View file

@ -50,6 +50,18 @@ The [online](https://svgomg.net/) version can be used.
- Make sure `Prefer viewBox to width/height` is enabled.
- Download the optimized SVG file.
### Last touch of style
If desired, a `<style>` node can be added to the `<svg>` root with the following
content:
```css
:root{color-scheme:light dark;fill:currentColor;}
```
This will allow the SVG to adapt to light and dark modes, even when used from a
`<img>` element.
### Git
- Push to this Git repository. No need to use [Git LFS](https://git-lfs.com/).