Trevixal API
    Preparing search index...

    Function createThemeController

    • Own the theme: light/dark/system, plus named presets that layer extra token values on one of the two. Presets are written once into a single <style> element keyed by data-trevixal-preset, so switching is one attribute change rather than a walk over every custom property.

      Parameters

      Returns ThemeController