Skip to main content

Module design

Module design 

Source
Expand description

Centralized design system for VT Code.

This crate provides a single source of truth for all design system concerns:

  • Color conversion: Unified anstyle to ratatui color mapping
  • Style bridging: Conversion between styling frameworks
  • Design constants: Shared UI constants (ellipses, spacing, breakpoints)
  • Layout: Responsive layout mode logic
  • Panel: Base panel widget primitive
  • Diff formatting: Unified diff rendering with ANSI colors
  • List rows: Canonical modal/command row builders (list)
  • Keyboard copy: Shared interaction hints (keys)

Modulesยง

constants
Shared design constants: ellipses, layout breakpoints, spacing tokens.
diff
Unified diff formatting with ANSI colors.
keys
Shared keyboard and interaction copy for list modals and command menus.
layout
Responsive layout mode logic.
list
Canonical list-row builders for TUI modals and command menus.
panel
Base panel widget primitive.