palette
Allows you to override the palette used for rendering the publication.
This is done by mapping background colors and foreground colors to new values.
The colors must be specified as HEX color strings: #RGB (#090) #RGBA (#090a) #RRGGBB (#009900) #RRGGBBAA (#009900aa)
The following example palette displays publications in night mode. As we are "inverting" colors we map the lightest original color to darkest color:
{
backgroundLight: '#303030',
backgroundDark: '#424242',
foregroundLight: '#ffffffb3',
foregroundDark: '#ffffff',
accent: '#d48872'
}
Content copied to clipboard