Skip to main content

Crate irodzuki

Crate irodzuki 

Source
Expand description

Irodzuki (色づき) — GPU-app theming for pleme-io.

Bridges Stylix (Nix-level base16 theming) into wgpu GPU render pipelines. Stylix generates color schemes at build time; irodzuki loads them at runtime and provides GPU-compatible color data to garasu, madori, and egaku.

§How it works

  1. Stylix generates a base16 color scheme in Nix
  2. blackmatter-pleme maps those colors into each app’s YAML config
  3. shikumi loads the YAML at runtime
  4. irodzuki parses the [theme] section into a ColorScheme
  5. Apps use ColorScheme to get wgpu::Color values, shader uniforms, etc.

Re-exports§

pub use error::IrodzukiError;
pub use gpu::GpuColors;
pub use scheme::Base16Slot;
pub use scheme::ColorScheme;
pub use shader::ThemeUniforms;

Modules§

error
gpu
GPU-compatible color conversions for wgpu render pipelines.
presets
Built-in ColorScheme presets — terminal-emulator-grade themes with curated 16-color ANSI palettes alongside the base16 slot values. Each constructor parses static hex tables once and returns an owned ColorScheme (from_hex_array_with_ansi attaches the ANSI palette as a Some(...) override so to_ansi_colors returns the upstream-official table instead of the lossy base16-derived fallback).
scheme
Base16 color scheme with semantic aliases and conversion utilities.
shader
Shader uniform generation for WGSL post-processing.