The pieces / weirdnet-themes

weirdnet-themes

A TOML theme format: dark and light variants, semantic colour roles, contrast checks.

GitHub crates.io docs.rs weirdnet-themes = "0.1"

What it is

A theme format for terminal and GUI front ends: one TOML file per theme with [meta], [dark] and [light] tables, 21 semantic colour roles, seven built-in palettes, WCAG contrast checks and lightness-inverted variants.

What is in it

  • Storage is yours: load, save, list, materialize and reset work through the ThemeDirs trait.
  • Mode::{Light, Dark, System}, resolved from the terminal background or the OS preference.
  • VariantDef::resolve(role) gives RGB and to_hex gives #rrggbb; optional ratatui colours by colour depth.

Where it fits

  • Extracted from Muninn.
  • License: BSD-3-Clause.