Skip to main content

Module theme

Module theme 

Source
Expand description

DaisyUI theme color extraction and conversion.

Provides ThemeColors — a palette of 19 semantic colors (hex #rrggbb) extracted from DaisyUI CSS custom properties. Used by both the HTML viewer (as CSS custom properties) and the Typst preamble (as rgb("#...") values).

Structs§

ThemeColors
All 19 DaisyUI semantic colors stored as hex strings (#rrggbb).

Functions§

oklch_to_hex
Parse a CSS oklch(L C H) string and convert to #rrggbb hex.