pub struct SchemeMeta {
pub name: &'static str,
pub author: &'static str,
pub variant: &'static str,
pub slug: &'static str,
}Expand description
base16 scheme metadata.
★ Not decoration — omitting it silently RENAMES things rather than
erroring. stylix’s input-meta defaults every absent field
(scheme/author → "untitled", variant → "unspecified"), and those
strings are interpolated into generated artefact NAMES: base16-${slug}
(fish), "Base16 ${scheme-name}" (zed), ${slug}-gnome-shell-theme. So a
metadata-less attrset keeps every colour byte-identical while turning
base16-vellum into base16-untitled and renaming a pile of store paths.
The struct exists so that is unforgettable: there is no constructor that omits a field, which is the difference between “we remembered” and “it cannot be forgotten”.
Fields§
§name: &'static strname, deliberately — NOT scheme. base16.nix’s
convert-scheme-to-common-format maps name → scheme, and name is
what the sibling YAML renders emit, so both spellings stay identical.
variant: &'static str"dark" / "light". Read by consumers that pick contrast.
slug: &'static strInterpolated into artefact names — see the struct docs.