Back to skills
SKILL.md
SKILL.md — AI Skill Definition
ASecurityA 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.
- 35 stars
- 0 votes
- 0 copies
- 3 views
- Added June 5, 2026
Works with
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add ricardodantas/ratatui-themes --agent claude-codeAre you the author of SKILL.md — AI Skill Definition?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ricardodantas-skill-md-ai-skill-definition)# 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
1. **Theming TUI Applications**
- Apply consistent color schemes to ratatui widgets
- Use semantic colors (error, warning, success) for status indicators
2. **Theme Switching**
- Implement theme cycling with `ThemeName::next()` and `prev()`
- Save user theme preferences with serde support
3. **Cross-Project Consistency**
- Share themes between multiple ratatui-based projects
- Ensure uniform look and feel across applications
### Quick Integration
```rust
// 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 colors
- `bg`, `fg`, `muted` — Base colors
- `selection` — Selection background
- `error`, `warning`, `success`, `info` — Semantic status colors
### Links
- **Crate**: https://crates.io/crates/ratatui-themes
- **Docs**: https://docs.rs/ratatui-themes
- **Source**: https://github.com/ricardodantas/ratatui-themes
Files in this skill
- AGENTS.md
- CHANGELOG.md
- CONTRIBUTING.md
- Cargo.lock
- Cargo.toml
- SKILL.md
- examples/gallery.rs
- llms.txt
- src/lib.rs
- src/palette.rs
- src/theme.rs
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.