yarcl
    Preparing search index...

    Function generateCss

    • Generates the stylesheet for a config: CSS variables on :root, one class per key and @font-face rules. The Vite plugin calls this at build time; call it yourself to preview or switch themes at runtime (inject the result into a <style> element).

      Parameters

      • config: YarclShape

        A config from defineConfig, e.g. one of yarcl/themes.

      • warn: (message: string) => void = ...

        Receives contrast warnings.

      Returns string