Crate base16_palettes

Crate base16_palettes 

Source
Expand description

This crate contains representations of all of the major Base16 themes. Color representation is split into two parts, the universal base 16 color and the palette. A color is represented by a Base16Color, which is then rendered into either a RGB tuple of u8s or into a hex string.

Each collection of themes is gated by a feature flag to minimize the number of palettes you have to compile.

Lastly, this crate is fully no_std.

Modules§

palettes

Enums§

Base16Accent
Every Base16 color palette contains 8 “accents”.
Base16Color
The universal representation of a Base16 color palette.
Base16Shade
Every Base16 color palette contains 8 “shades”. These are split between 4 “dark” and 4 “light” shades.
Palette
A palette is used to render a Base16Color into RBG values or a hex string.
Shade
Base16 shades are split into two 4-value gradients.

Traits§

Base16Palette