Cannot be themed or customized without regenerating the font.
Can be used when syntax highlighting is not available.
Can be used when syntax highlighting is not available.
@font-palette-values --mycolors {
font-family: Monaspace;
base-palette: 0;
override-colors: 0 red, 1 green, 2 blue,
3 magenta, 4 cyan, 5 yellow;
}
(I just picked some arbitrary colors as a proof-of-concept; they don't actually look good.) Then adding the property: font-palette: --mycolors;
to the textarea element causes it to use these colors instead of the defaults in the font.[0]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_fonts/V...