What problem does it solve?
Developers working on Warp's headless TUI front-end risk incorrectly applying GUI assumptions (pixels, GPU/WGSL rendering, mouse-pixel hit-testing) to a cell-grid terminal UI, leading to broken layouts and inconsistent styling.
Core Features & Use Cases
- TuiElement API Reference: Documents the layout, render, cursor_position, present, and dispatch_event methods of the cell-grid element trait in crates/warpui_core.
- Composition Vocabulary: Covers layout containers (TuiFlex, TuiContainer, TuiConstrainedBox), content elements (TuiText), and event handling (TuiEventHandler, TuiChildView).
- Semantic Styling Guidance: Directs use of TuiUiBuilder semantic style helpers instead of hardcoded ANSI colors that wash out on light terminal themes.
- Use Case: When adding a new screen to the Warp TUI, read this Skill first to learn the correct element composition patterns, keybinding registration conventions, and how to verify changes with ./script/run-tui.
Quick Start
Read the tui-ui-guidelines skill before starting any UI work in crates/warp_tui and follow its TuiElement composition and styling rules.