DEV Community

Discussion on: The secret that the fonts industry doesn't want you to know

Collapse
 
lexlohr profile image
Alex Lohr

More than that, you can also use SVG color filters to derive other colors (for example a complementary color) from currentColor. Unfortunately SVG filters are not supported in some older browsers, so be sure to either not to actually require the additional color or not to support those older browsers.

Collapse
 
xowap profile image
Rémy 🤖

Yes or well hack your way with opacity, different layers, etc. I wanted to keep the use case simple but you're completely right it's quite awesome all the things you could do!

Collapse
 
lexlohr profile image
Alex Lohr

While with opacity, you can only ever mix the color, with color filters, you can get it inverted.