@suluk/theme - v0.1.1
    Preparing search index...

    Function parseShadcnCss

    • Parse a shadcn/tweakcn theme CSS string into light + dark ColorTokens. Dark is read from a .dark / html[data-theme="dark"] block when present, otherwise deterministically derived from light. Returns null when the CSS has no recognizable :root shadcn token block.

      Parameters

      • css: string
      • name: string = ""

      Returns { name: string; light: ColorTokens; dark: ColorTokens } | null