Customizing Color Fonts on the Web
WebKit's Myles C. Maxfield has published a how-to on the WebKit Blog covering how to customize color fonts on the web. The post follows Ollie's recent CSS-Tricks write-up on COLRv1 and CSS font palettes; the two pieces share a lot of common ground, but the WebKit article carries a few extra nuggets that make both worth reading.
Progressive enhancement and palette values
One highlight is a bit of progressive enhancement built with @supports, aimed at older browsers that lack support for the font-palette property. From there, the post lays out a strategy for using the property's light and dark values to keep the font more legible in certain contexts.
Maxfield also floats a clever idea: multiple @font-palette-values blocks sharing the same name can be used for fallbacks.



