New style palette feature

I just released a new dev version of DoenetML that includes a new <stylePalette> features. You can now select from a few predefined style palettes, including

  • okabeito: Colorblind-friendly blues, oranges, greens, and purples adapted from the Okabe-Ito palette, with varied marker shapes and line styles.
  • tolhighcontrast: Four maximum-distinction styles from Paul Tol’s high-contrast palette, distinguishable even in grayscale.
  • grumpynarwhal: Six saturated hues — burnt orange, forest green, deep pink, arctic teal, gold, and purple — going neon in dark mode.

To use them, you have to change to 0.7dev until we release a new version. Then, add a <stylePalette palette="grumpynarwhal" /> to your document or to a section. A style palette overrides any style definitions from parent sections, but you can use a style definition to override definitions from the palette itself by adding them inside the section of the style palette.

<3 Grumpy Narwhal

<3 Okabe-Ito.