FoundryKit

Utils

Shared utility helpers exported by @foundrykit/utils.

Utils

@foundrykit/utils is intentionally small. The current public entrypoint exports one helper: cn.

Install

pnpm add @foundrykit/utils

What cn Does

  • Accepts clsx-style class inputs.
  • Merges them with tailwind-merge so later Tailwind utilities win cleanly.
  • Serves as the shared class composition helper re-exported by Primitives, Components, and Blocks.

On this page