Skip to main contentModule theme
Source - Theme
- Theme struct containing all color definitions
- AnsiColor
- ThemeColor
- Theme color type - can be RGB or ANSI
- THEME_NAMES
- Theme names
- 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
- get_theme
- Get theme by name
- theme_color_to_ansi
- Converts a theme color to an ANSI escape sequence for use with asciichart.