The shade's B value
The shade's G value
The shade's R value
The shade's hex value
The id of the shade
The index of the shade
The onHex value for this shade
The opacity of the shade
The shade's RGB array
Static BLACKThe black shade
Static DARK_The dark blue shade
Static GRAYThe gray shade
Static HALF_The half-black shade
Static HALF_The half-white shade
Static HALF_The half-white dark mode shade
Static NEAR_The near black shade
Static OFF_The off-black shade
Static OFF_The off-white shade
Static WHITEThe white shade
Static WHITE_The white dark mode shade
Find a dark mode shade which meets the contrast ratio on these background shades
A dark mode shade meeting the contrast ratio requirement, or throws an exception if not found.
The background shades
The required contrast ratio
Find a light mode shade which meets the contrast ratio on this background shade
A light mode shade meeting the contrast ratio requirement, or throws an exception if not found.
The required contrast ratio
Get a dark mode shade which meets the contrast ratio on these background shades
A dark mode shade meeting the contrast ratio requirements, or undefined if not found
The background shades
The required contrast ratio
Get a light mode shade which meets the contrast ratio on this background shade. Find the shade closest to this shade which meets the contrast ratio requirement against the background shade.
A light mode shade meeting the contrast ratio requirement, or undefined if not found
The required contrast ratio
Private getBuild 10 shades from this shade, some of which may be lighter and some of which may be darker. The number of lighter and darker depends on where in the spectrum this shade falls.
True if this is for light mode; else false if for dark mode.
Private getBuild 10 shades from this shade, some of which may be lighter and some of which may be darker. The number of lighter and darker depends on where in the spectrum this shade falls.
True if this is for light mode; else false if for dark mode.
Find a shade which meets the contrast ratio requirements on this background shade.
true for light mode and false for dark mode.
The contrast ratio requirement
Return either this shade or the onShade based on contrast requirements to 'shade'.
This shade or the onShade
The shade to compare to this one
Optional multiplier: numberOptional multiplier
Mix this shade with another shade to produce a third shade.
A third shade which is the mixture of this shade and the 'shade'.
The other shade to mix with this shade
The ratio; a value between 0 and 1 denoting how much of this shade verses the other shade in the resulting shade.
Static coreStatic fromStatic fromRGBStatic fromRGBArrayStatic getGenerated using TypeDoc
A color shade.