Skip to content

ColorblindTheme

Type class

"Colorblind": a series palette that stays distinguishable under the common forms of color blindness. It uses the eight Okabe-Ito colors, reordered so that black comes last, and repeats them rather than making new ones.

It sets only the series colors and leaves the interface colors alone.

More info: https://jfly.uni-koeln.de/color/ for the original palette

More info: Themes

Sources

This information about ColorblindTheme is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

ColorblindTheme extends Theme.

ColorblindTheme is extended by ColorblindDarkTheme.

Properties

ColorblindTheme does not have any properties.

Methods

constructor(root: Root,
isReal: boolean
)

Returns ColorblindTheme

3 inherited items
new(root: Root)

StaticReturns InstanceTypeInherited from Theme

Use this method to create an instance of this class.

More info: Getting started: new element syntax

rule(themeClass: K,
themeTags: Array
)

Returns TemplateInherited from Theme

Returns the rule for a class and theme tags, as a Template. Settings set on it go to every element of that class (or a class extending it) that has all of these tags. The same class and tags return the same rule.

More info: Themes

ruleRaw(themeClass: string,
themeTags: Array
)

Returns TemplateInherited from Theme

Same as rule(), but takes any class name, without type checks.

More info: Themes

Events

ColorblindTheme does not have any events.