Expand description
Theme definitions for SQLModel console output.
This module provides the Theme struct that defines colors and styles
for all console output elements. Themes can be customized or use
predefined presets.
§Example
use sqlmodel_console::Theme;
// Use the default dark theme
let theme = Theme::default();
// Or explicitly choose a theme
let dark = Theme::dark();
let light = Theme::light();§Color Philosophy
The dark theme uses colors inspired by the Dracula palette:
- Green = Success, strings (positive/data)
- Red = Errors, operators (danger/action)
- Yellow = Warnings, booleans (caution/special)
- Cyan = Info, numbers (neutral data)
- Magenta = Dates, SQL keywords (special syntax)
- Purple = JSON, SQL numbers (structured data)
- Gray = Dim text, comments, borders (secondary)
Structs§
- Theme
- SQLModel console theme with semantic colors.
- Theme
Color - A color that can be rendered differently based on output mode.