ratatui-knowledge-patch

Installation
SKILL.md

Ratatui Knowledge Patch

Covers new APIs and breaking changes in Ratatui 0.30-0.31. Assumes familiarity with Ratatui basics through 0.29.x (tui-rs heritage, widget system, immediate-mode rendering).

Topic File Key Content
Layout references/layout.md Rect arithmetic, Flex::SpaceEvenly, centered variants
Widgets references/widgets.md BarChart, List, canvas markers, LineGauge, ScrollbarState
Styling & Borders references/styling-and-borders.md Border merging, dashed borders, Color conversions
Migration Guide references/migration-guide.md Alignment rename, WidgetRef reversal, backend Error type, FromCrossterm
Backend & Platform references/backend-and-platform.md Crossterm versions, no_std, ratatui-core modularization

Entry Point: ratatui::run()

Added in 0.30. Handles init()/restore() automatically. Accepts a closure that receives &mut DefaultTerminal.

fn main() -> Result<(), Box<dyn std::error::Error>> {
    ratatui::run(|terminal| {
Related skills
Installs
3
GitHub Stars
19
First Seen
Apr 7, 2026