The Irix Color Palette#
Irix is an “architectonic” color palette system based on Radix colors — five chambers of four hues each, with twelve named shades per hue — and a set of CLI tools to apply it to the local system.
The palette itself ships as YAML data inside the package, in dark and light variants. On top of that data sit three small layers, from most- to least-general:
Paletteloads a palette variant from packaged (or arbitrary) YAML and resolves hue names,hue-shadeexpressions, or raw hex values into concrete hex color strings.Coloraddresses a single palette entry by integer chamber, hue, and shade indices, with flexible string-based construction.ColorCoder(console scriptcolorcode) drives the terminal background color from directory and command triggers evaluated at every shell prompt.
Alongside those, a small standalone toolbox (promptcode, kittyhud, themecode) applies the same palette to prompts, a Kitty HUD, and foreign editor themes; and the irix console script is a deploy engine in its own right — it lists, generates, drift-checks, and deploys palette-derived artifacts (kitty/alacritty/VSCode/Rust/CSS/…) for every registered target, driven by a small policy/mechanism split (see Architecture: How Irix Is Put Together).
Usage#
uv tool install irix # provides the `colorcode` console script
colorcode -d "$PWD" # apply the color triggered by the current directory
colorcode -c slate # set an explicit hue immediately
irix targets # list every registered deploy target
irix check # drift-check rendered artifacts against out/
irix deploy kitty vscode # copy selected artifacts to their local config destinations
Contents#
Tutorial#
How-to Guides#
Explanation#
- 1. System Architecture
- 2. Color Semantics & Psychology Research
- 1. Color Psychology in UI Design
- 2. Semantic Color Systems in Design Systems
- 3. Color Grouping & Categorical Color Perception
- 4. Perceptual Color Organization (OKLCH)
- 5. Color in Developer Tools (IDEs)
- 6. Color Coding for Organization & Navigation
- 7. Accessibility Considerations
- Optimal Number of Color Categories for Human Discrimination
- Summary: Key Principles for Directory/Repo Color Assignment
- Sources
- 3. Rust TUI Pixel Graphics Research
- 1. Comparison Table of Rendering Approaches
- 2. Recommended Approach for a Cellular Automata TUI (~200x80 terminal)
- 3. Key Rust Crates and Their Maturity
- 4. Existing Terminal Cellular Automata Projects
- 5. Performance Expectations and Bottlenecks
- 6. Half-Block and Braille Rendering Tricks
- 7. Alternative: Offscreen Render to Image, Blit to Terminal
- 8. The “Dots Basis” Approach: Efficient Flowing Water Particles
- Summary and Recommendations
Reference#
- 1. Color Addressing
- 2. Palette Loading
- 3. Terminal Colorcodes
- 4. Shared Terminal Primitives
- 5. Path-to-Color Segments
- 6. Kitty HUD
- 7. Bulletin Presence
- 8. OKLCH Color Primitives
- 9. Semantic Role Map
- 10. Theme File Adapters
- 11. Theme Adapt/Generate/Check
- 12. Deploy-Target Registry
- 13. Editor Targets
- 14. Portable/Creative Targets
- 15. Shell-Tooling Targets
- 16. Terminal-Emulator Targets
- 17. Irix CLI
- 18. Deploy Engine