Conversation

realizing that over time whenever i've wanted to do any vector graphics manipulation i've just been doing it directly in svg instead of getting vector editing software svg is actually pretty good for direct editing as long as you don't have to do paths yourself
10
60
Replying to
I've been doing a lot of like... hybrid stuff lately where I build the initial image in Adobe Illustrator and then hand edit the SVG export. Really interested in pursuing this approach for making SVG images which look good on light or dark backgrounds.
1
2
Chromium and Firefox both support SVG favicons with dark mode support. Note opening it directly won't apply the CSS since the Content-Security-Policy standard specifies that it applies to an SVG document but not an SVG included as an image via img. Didn't add a special rule.
1
The web pages use a separate mask version of the SVG without the CSS for dark mode for the navigation bar and footer. Since caniuse.com/css-masks appears poorly supported, we had to use this nonsense (i.e. calculate a CSS filter chain to change color):
Quote Tweet
How to transform black into any given color using only CSS filters? The answer: Use simultaneous perturbation stochastic approximation to probabilistically obtain an approximation of the color through a chain of filter transforms... stackoverflow.com/a/43960991 Web development.
Show this thread
Needed a separate one as a mask because we have it match the color of the text. The one in the header is either white or blue based on whether grapheneos.org is the active page and the one in the footer is either near black or light gray depending on light vs. dark mode.