ratatui-themes
ricardodantas/ratatui-themesA collection of popular color themes for ratatui terminal UI applications
30 stars
3 forks
Rust
84 views
SKILL.md
SKILL.md — AI Skill Definition
Skill: ratatui-themes
Description
A Rust library providing pre-defined color themes for terminal UI applications built with ratatui. Includes 15+ popular themes like Dracula, Nord, Catppuccin, Tokyo Night, and more.
Use Cases
-
Theming TUI Applications
- Apply consistent color schemes to ratatui widgets
- Use semantic colors (error, warning, success) for status indicators
-
Theme Switching
- Implement theme cycling with
ThemeName::next()andprev() - Save user theme preferences with serde support
- Implement theme cycling with
-
Cross-Project Consistency
- Share themes between multiple ratatui-based projects
- Ensure uniform look and feel across applications
Quick Integration
// Add to Cargo.toml:
// ratatui-themes = "0.1"
use ratatui_themes::{Theme, ThemeName};
use ratatui::style::Style;
let theme = Theme::new(ThemeName::Dracula);
let palette = theme.palette();
// Use in widgets
let style = Style::default()
.fg(palette.fg)
.bg(palette.bg);
Available Themes
Dark themes: Dracula, OneDarkPro, Nord, CatppuccinMocha, GruvboxDark, TokyoNight, SolarizedDark, MonokaiPro, RosePine, Kanagawa, Everforest, Cyberpunk
Light themes: CatppuccinLatte, GruvboxLight, SolarizedLight
Palette Colors
Each theme provides:
accent,secondary— Highlight colorsbg,fg,muted— Base colorsselection— Selection backgrounderror,warning,success,info— Semantic status colors