Universal design patterns for building exceptional terminal user interfaces. Framework-agnostic β works with Ratatui, Ink, Textual, Bubbletea, or any TUI toolkit.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiontui-designExecute the skills CLI command in your project's root directory to begin installation:
Fetches tui-design from hyperb1iss/hyperskills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate tui-design. Access via /tui-design in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
76
total installs
76
this week
3
GitHub stars
0
upvotes
Run in your terminal
76
installs
76
this week
3
stars
Universal design patterns for building exceptional terminal user interfaces. Framework-agnostic β works with Ratatui, Ink, Textual, Bubbletea, or any TUI toolkit.
Core philosophy: TUIs earn their power through spatial consistency, keyboard fluency, and information density that respects human attention. Design for the expert's speed without abandoning the beginner's discoverability.
digraph tui_design {
rankdir=TB;
"What are you building?" [shape=diamond];
"Select layout paradigm" [shape=box];
"Design interaction model" [shape=box];
"Define visual system" [shape=box];
"Validate against anti-patterns" [shape=box];
"Ship it" [shape=doublecircle];
"What are you building?" -> "Select layout paradigm";
"Select layout paradigm" -> "Design interaction model";
"Design interaction model" -> "Define visual system";
"Define visual system" -> "Validate against anti-patterns";
"Validate against anti-patterns" -> "Ship it";
}
Choose your primary layout based on what you're building:
| App Type | Paradigm | Examples |
|---|---|---|
| File manager | Miller Columns | yazi, ranger |
| Git / DevOps tool | Persistent Multi-Panel | lazygit, lazydocker |
| System monitor | Widget Dashboard | btop, bottom, oxker |
| Data browser / K8s | Drill-Down Stack | k9s, diskonaut |
| SQL / HTTP client | IDE Three-Panel | harlequin, posting |
| Shell augmentation | Overlay / Popup | atuin, fzf |
| Log / event viewer | Header + Scrollable List | htop, tig |
All panels visible simultaneously. Focus shifts between them. Users build spatial memory β "branches are always top-left."
ββ Status βββ¬βββββββββββ Detail βββββββββββ
ββ Files ββββ€ β
β > file.rs β diff content here... β
β main.rs β β
ββ Branches β€ β
β * main β β
β feat/x β β
ββ Commits ββ€ β
β abc1234 β β
βββββββββββββ΄βββββββββββββββββββββββββββββββ
[q]uit [c]ommit [p]ush [?]help
When to use: Multi-faceted tools where users need simultaneous context (git clients, container managers, monitoring). Key rule: Panels maintain fixed positions across sessions. Never rearrange without user action.
Three-pane past/present/future navigation. Parent directory (left), current (center), preview (right).
βββ Parent βββ¬ββ Current βββ¬ββ Preview βββββββββ
β .. β > config/ β port: 8080 β
β src/ β lib/ β host: localhost β
β > config/ β main.rs β log_level: debug β
β tests/ β mod.rs β db_url: postgres://β
ββββββββββββββ΄ββββββββββββββ΄ββββββββββββββββββββ
When to use: Hierarchical data navigation (file systems, tree structures, nested configs). Key rule: Preview pane content adapts to selection type β code gets highlighting, images render, directories show contents.
Enter descends, Esc ascends. Browser-like navigation through hierarchical data.
When to use: Deep hierarchies where showing all levels simultaneously is impractical (Kubernetes resources, database schemas).
Key rule: Always show the current navigation path as a breadcrumb. Provide :resource command-mode for direct jumps.
Self-contained widget panels with independent data. All information visible at once, no navigation required.
ββββ CPU βββββββββββββββ¬βββ Memory βββββββββββ
β ββββ
ββββ
ββββββ
β β ββββββββββ 78% β
β core0: 45% core1: 67%β 12.4G / 16.0G β
ββββ Network βββββββββββΌβββ Disk βββββββββββββ€
β β² 1.2 MB/s βΌ 340KB/sβ /: 67% /home: 45% β
ββββ Processes βββββββββ΄ββββββββββββββββββββββ€
β PID USER CPU% MEM% CMD β
β 1234 root 23.4 4.5 postgres β
βββββββββββββββββββββββββββββββββββββββββββββββ
When to use: Monitoring, real-time status, system dashboards. Key rule: Each widget is self-contained with its own title. Use braille/block characters for high-density data.
Sidebar (left), editor/main (center), detail/output (bottom). Tab bar along top.
When to use: Editing-focused tools (SQL clients, HTTP tools, config editors). Key rule: Sidebar toggles with a single key. Center panel supports tabs. Bottom panel can expand to full height.
TUI appears on demand over the shell, disappears after use.
When to use: Shell augmentations (history search, file picker, command palette). Key rule: Configurable height. Return selection to the caller. Never disrupt scrollback.
Fixed header with meters/stats, scrollable data below, function bar at bottom.
When to use: Single-list tools with metadata (process viewers, log viewers, sorted listings). Key rule: The header creates a natural "overview then detail" reading flow. Sort by the most actionable dimension by default.
Terminals resize. Your TUI must handle it gracefully.
| Strategy | When |
|---|---|
| Proportional split | Panels maintain percentage ratios on resize |
| Priority collapse | Less important panels hide first below minimum width |
| Stacking | Panels collapse to title-only bars, active one expands (zellij pattern) |
| Breakpoint modes | Switch layout entirely below a threshold (e.g., multi-panel β single panel) |
| Minimum size gate | Display "terminal too small" if below usable minimum |
Rules:
SIGWINCH gracefully.| App Complexity | Recommended Model |
|---|---|
| Single-purpose, <20 actions | Direct keybinding (every key = action) |
| Multi-view, complex | Vim-style modes + contextual footer |
| IDE-like, many features | Command palette + tabs + vim motions |
| Data browser | Drill-down + fuzzy search + : command mode |
Design keybindings in four progressive layers:
| Layer | Keys | Audience | Always show? |
|---|---|---|---|
| L0: Universal | Arrow keys, Enter, Esc, q | Everyone | Yes (footer) |
| L1: Vim motions | hjkl, /, ?, :, gg, G | Intermediate | Yes (footer) |
| L2: Actions | Single mnemonics: d(elete), c(ommit), p(ush) | Regular users | On ? help |
| L3: Power | Composed commands, macros, custom bindings | Power users | Docs only |
Keybinding conventions (lingua franca):
j/k β move down/uph/l β move left/right (or collapse/expand)/ β search? β help overlay: β command modeq β quit (or Esc to go back one level)Enter β select / confirm / drill inTab β switch focus between panelsSpace β toggle selectiong/G β jump to top/bottomNever bind: Ctrl+C (interrupt), Ctrl+Z (suspend), Ctrl+\ (quit signal). These belong to the terminal.
The universal pattern: press /, type query, results filter live.
n/N β next/previous matchEsc β dismiss search' prefix for exact match| Tier | Trigger | Content | Audience |
|---|---|---|---|
| Always visible | Footer bar | 3-5 essential shortcuts | Everyone |
| On demand | ? key |
Full keybinding overlay for current context | Regular users |
| Documentation | --help, man page |
Complete reference | Power users |
Footer format: [q]uit [/]search [?]help [Tab]focus [Enter]select
Context-sensitive footers update based on the active panel or mode. Show only what's actionable right now.
| Action Severity | Pattern |
|---|---|
| Reversible | Just do it, show brief confirmation in status bar |
| Moderate (delete file) | Inline "Press y to confirm" |
| Severe (drop database) | Modal dialog requiring resource name input |
| Irreversible batch | --dry-run flag + explicit confirmation |
Design for graceful degradation across all three tiers:
| Tier | Escape Sequence | Colors | Strategy |
|---|---|---|---|
| 16 ANSI | \033[31m |
16 (relative) | Foundation. Terminal theme controls appearance. |
| 256 Color | \033[38;5;{n}m |
256 (16 relative + 240 fixed) | Extended palette. Fixed colors may clash with themes. |
| True Color | \033[38;2;{r};{g};{b}m |
16.7M (absolute) | Full control. Requires COLORTERM=truecolor. |
Detection hierarchy:
$COLORTERM = truecolor or 24bit β true color$TERM contains 256color β 256 colors$NO_COLOR is set β disable all colorGolden rule: Your TUI must be usable in 16-color mode. True color enhances β it never creates the hierarchy.
Define colors by function, not appearance. Map semantics to actual colors through your theme:
| Slot | Purpose | Typical Dark Theme |
|---|---|---|
fg.default |
Body text | Off-white (#c0caf5) |
fg.muted |
Secondary text, metadata | Gray (#565f89) |
fg.emphasis |
Headers, focused items | Bright white (#e0e0e0) |
bg.base |
Primary background | Near-black (#1a1b26) |
bg.surface |
Panel/widget backgrounds | Slightly lighter (#24283b) |
bg.overlay |
Popup/dialog backgrounds | Lighter still (#414868) |
bg.selection |
Selected item highlight | Distinct (#364a82) |
accent.primary |
Interactive elements, focus | Brand color (#7aa2f7) |
accent.secondary |
Supporting interactions | Complementary (#bb9af7) |
status.error |
Errors, deletions | Red (#f7768e) |
status.warning |
Warnings, caution | Yellow (#e0af68) |
status.success |
Success, additions | Green (#9ece6a) |
status.info |
Informational | Cyan (#7dcfff) |
Never hardcode hex values in widget code. Always reference semantic slots.
Color is one tool among several. Use them in combination:
| Technique | Effect | Use For |
|---|---|---|
| Bold (SGR 1) | Increases visual weight | Headers, labels, active items |
| Dim (SGR 2) | Decreases visual weight | Metadata, timestamps, secondary info |
| Italic (SGR 3) | Semantic distinction | Comments, types, annotations |
| Underline (SGR 4) | Links, actionable items | Clickable elements, URLs |
| Reverse (SGR 7) | Swaps fg/bg | Selection highlight (always works!) |
| Strikethrough (SGR 9) | Negation | Deleted items, deprecated features |
Hierarchy recipe: 80% of content in fg.default. Headers in bold + fg.emphasis. Metadata in dim + fg.muted. Status in their semantic colors. Accents for interactive elements only.
Create depth without borders by layering background lightness:
bg.base (darkest) β bg.surface β bg.overlay (lightest)
Each step ~5-8% lighter in dark themes. The eye perceives depth from the contrast gradient. This reduces the need for box-drawing borders while maintaining clear visual zones.
Follow the Base16 pattern: define 16 named color slots, map them semantically:
Ship a dark theme by default. Detect light/dark terminal via OSC escape query or terminal-light crate. Provide at least one light variant. Respect NO_COLOR.
| Element | Characters | Resolution | Use For |
|---|---|---|---|
| Full blocks | ββββββββ |
8 steps/cell | Progress bars, bar charts |
| Shade blocks | ββββ |
4 densities | Heatmaps, density plots |
| Braille | β β β ...β£Ώ (U+2800-U+28FF) |
2x4 dots/cell | High-res line graphs, scatter plots |
| Sparkline | βββββ
βββ |
8 heights | Inline mini-charts |
| Widget | Pattern | Tips |
|---|---|---|
| Progress bar | [ββββββββββββ] 67% |
Show percentage + ETA. Color gradient greenβyellowβred by urgency. |
| Sparkline | ββββ
ββββ
ββ |
Perfect for inline time-series in headers/status bars. |
| Gauge | CPU [ββββββββββββ] 83% |
Label + bar + value. Color by threshold. |
| Table | Sortable columns, zebra stripes | Align numbers right, text left. Truncate with β¦. |
| Tree | βββ , βββ , β guides |
Indent 2-4 chars per level. Expand/collapse with Enter. |
| Diff | Green + lines, red - lines |
Word-level highlighting within changed lines elevates quality. |
| Log | Colored level, timestamp, message | TRACE=dim, DEBUG=cyan, INFO=default, WARN=yellow, ERROR=red, FATAL=red+bold. |
| Context | Spinner | Interval |
|---|---|---|
| Default / modern | Braille dots β β β Ήβ Έβ Όβ ΄β ¦β §β β |
80ms |
| Minimal | Line -|/ |
130ms |
| Heavy processing | Blocks ββββ |
100ms |
| Fun / branded | Custom frames | 70-100ms |
Use spinners for indeterminate operations. Progress bars for determinate. Show spinners only after 200ms delay to avoid flash on fast operations.
Three layers, all required for smooth TU
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
β Do
β Don't
π‘ Pro Tips
β Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
β Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
anthropics/claude-code
leonxlnx/taste-skill
sickn33/antigravity-awesome-skills
erichowens/some_claude_skills
kylezantos/design-motion-principles
emilkowalski/skill
I recommend tui-design for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Solid pick for teams standardizing on skills: tui-design is focused, and the summary matches what you get after install.
tui-design has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: tui-design is focused, and the summary matches what you get after install.
tui-design is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: tui-design is the kind of skill you can hand to a new teammate without a long onboarding doc.
tui-design has been reliable in day-to-day use. Documentation quality is above average for community skills.
Useful defaults in tui-design β fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added tui-design from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
tui-design fits our agent workflows well β practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 25