Others

The following types helps to select a specific value for a string when sending parameters to some methods of the “colors-kit” set of packages.

ColorBlindness

This type determines whether a string value is “achromatomaly”, “achromatopsia”, “deuteranomaly”, “deuteranopia”, “protanomaly”, “protanopia”, “tritanomaly” or “tritanopia”.

Type

The value is a determined string between different options.

type ColorBlindness = 'achromatomaly' | 'achromatopsia' | 'deuteranomaly' | 'deuteranopia' | 'protanomaly' | 'protanopia' | 'tritanomaly' | 'tritanopia'

// Examples
const ColorBlindness: ColorBlindness = 'protanomaly'

Palette

This type determines whether a string value is “analogous”, “complementary”, “monochromatic”, “split-complementary”, “square”, “tetradic” or “triadic”.

Type

The value is a determined string between different options.

type Palette = 'analogous' | 'complementary' | 'monochromatic' | 'split-complementary' | 'square' | 'tetradic' | 'triadic'

// Examples
const palette: Palette = 'square'
If you notice an error in the documentation, please edit the page to fix it.