Comment by california-og
1 year ago
I was informed that the color palette can be changed with `override-colors` css rule, but havent had time to update the blog post yet.
1 year ago
I was informed that the color palette can be changed with `override-colors` css rule, but havent had time to update the blog post yet.
I tried it (via Firefox DevTools) on your example page by inserting a @font-palette-values rule alongside the @font-face that loads the font:
(I just picked some arbitrary colors as a proof-of-concept; they don't actually look good.) Then adding the property:
to the textarea element causes it to use these colors instead of the defaults in the font.
Maybe this could also be implemented using variable fonts[0]. This would probably make it easier to configure in non-browser environments (once this is better supported by font selectors etc).
[0]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_fonts/V...