Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockOverrideStyle ¶
func BlockOverrideStyle(cfg *config.Config, light, dark ThemeColors) string
BlockOverrideStyle builds the inline style declarations for a per block theme override. Light values are emitted as --kz-ovl-* and dark values as --kz-ovd-*; the kz-themed rules generated by TokenSwitchingCSS map them back onto the regular --kz-* variables. Returns an empty string when the light theme colors are unusable.
func GenerateVars ¶
func GenerateVars(cfg *config.Config, light, dark ThemeColors) string
func ThemeToggleCSS ¶
func ThemeToggleCSS(cfg *config.Config, light, dark ThemeColors) string
ThemeToggleCSS generates CSS rules for per-block theme toggling. These rules use data-kz-theme="dark"|"light" on .kazari-block to override the page-level theme for individual blocks.
func TokenSwitchingCSS ¶
TokenSwitchingCSS generates the color switching rules for token spans.
Types ¶
Click to show internal directories.
Click to hide internal directories.