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

    Function parseOklch

    @suluk/theme — the design-token CONTRACT. Author ONE TokenSpec (OKLCH colors + radius/fonts/scales) and project it into CSS custom properties, the Tailwind v4 @theme block, and a shadcn token map — so the look has a single source of truth instead of three hand-synced copies. Includes an OKLCH value type + a deterministic generate-dark-from-light, with reference schemes proving the mechanism. The 40+ curated catalog + the no-flash stamper/picker are meta-product / app-layer breadth, NOT this package. CANDIDATE tooling.

    • Parse a CSS oklch(L C H) / oklch(L C H / A) string. Percentages on L are normalized (50% → 0.5). Null on miss.

      Parameters

      • input: string

      Returns Oklch | null