Skip to main content

Module theme

Module theme 

Source

Structs§

Theme
Theme struct containing all color definitions

Enums§

AnsiColor
ThemeColor
Theme color type - can be RGB or ANSI

Constants§

THEME_NAMES
Theme names

Statics§

DARK_ANSI_THEME
Dark ANSI theme using only the 16 standard ANSI colors for terminals without true color support
DARK_DALTONIZED_THEME
Dark daltonized theme (color-blind friendly) using explicit RGB values to avoid inconsistencies from users’ custom terminal ANSI color definitions
DARK_THEME
Dark theme using explicit RGB values to avoid inconsistencies from users’ custom terminal ANSI color definitions
LIGHT_ANSI_THEME
Light ANSI theme using only the 16 standard ANSI colors for terminals without true color support
LIGHT_DALTONIZED_THEME
Light daltonized theme (color-blind friendly) using explicit RGB values to avoid inconsistencies from users’ custom terminal ANSI color definitions
LIGHT_THEME
Light theme using explicit RGB values to avoid inconsistencies from users’ custom terminal ANSI color definitions

Functions§

get_theme
Get theme by name
theme_color_to_ansi
Converts a theme color to an ANSI escape sequence for use with asciichart.