@yarcl/react
    Preparing search index...

    Function generateCss

    • Generates the stylesheet for a config: CSS variables on :root, one class per key and @font-face rules in yarcl.tokens, with component recipes in yarcl.recipes. Declares the yarcl.tokens, yarcl.base, yarcl.recipes order before emitting styles. The build 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/react/themes.

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

        Receives contrast warnings.

      Returns string