# 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: - **`Palette`** loads a palette variant from packaged (or arbitrary) YAML and resolves hue names, `hue-shade` expressions, or raw hex values into concrete hex color strings. - **`Color`** addresses a single palette entry by integer chamber, hue, and shade indices, with flexible string-based construction. - **`ColorCoder`** (console script `colorcode`) 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.md)). ## Usage ```sh 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 ```{toctree} :maxdepth: 2 1. Getting Started ``` ### How-to Guides ```{toctree} :maxdepth: 2 1. Deploy a Target 2. Add a New Target 3. Work with Dark/Light Modes ``` ### Explanation ```{toctree} :maxdepth: 2 1. System Architecture 2. Color Semantics & Psychology Research 3. Rust TUI Pixel Graphics Research ``` ### Reference ```{toctree} :maxdepth: 2 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 ```