Skip to main content

Module vellum

Module vellum 

Source
Expand description

Vellum render targets — the stylix base16/base24 schemes + an SVG palette preview, all sourced from the BORN VellumPalette tokens.

Unlike the legacy stylix renderer (which maps the Nord TokenSet), these targets construct VellumPalette::vellum() internally — the Vellum tokens are not part of the Nord TokenSet, they are their own BORN source. The base16/base24 YAML is emitted through serde_yaml over an IndexMap — TYPED EMISSION, no string-concatenated YAML. The SVG preview is a brand-asset target (one chip per token, in band order).

Output (per base16 spec — https://github.com/chriskempson/base16):

system: base16
name: Vellum
author: pleme-io (ishou)
variant: dark
slug: vellum
palette:
  base00: 16140e
  …

Hex values are lowercase, unprefixed — stylix passes them through to GTK which expects six-char lowercase hex (no #).

Functions§

render_base16
Render the Vellum base16 stylix scheme YAML.
render_base24
Render the Vellum base24 stylix scheme YAML (base16 + the real two-tier brights, base10–17).
render_base16_nix
Render the Vellum base16 scheme as a Nix attrset — the form that costs no import-from-derivation.
render_escriba_lisp
Render the escriba Vellum theme *.lisp — a (deftheme …) + (defpalette …) + the (defhighlight …) forms over escriba’s CANONICAL_GROUPS, all sourced from the BORN VellumPalette.
render_skim
Render the skim/fzf --color=k:v,… string from the BORN VellumPalette.
render_svg_palette
Render an SVG palette preview — one labelled chip per BORN token, in band order. A brand-asset target for docs / design review.