/** * Token Tailwind Compiler -- `TokenDef[]` to a Tailwind v4 `@theme` block. * * Maps token categories to Tailwind v4 CSS-first namespace prefixes and * emits a single `@theme { }` block for consumption by the Tailwind engine. * * @module */ import type { Token } from '@czap/core'; /** * Output of {@link TokenTailwindCompiler.compile}. * * Tailwind v4's CSS-first pipeline consumes the emitted `@theme { }` block * verbatim; there are no structured side outputs because Tailwind only * needs the declarations text. */ export interface TokenTailwindResult { /** Complete `@theme { … }` block ready for a Tailwind v4 entry CSS file. */ readonly themeBlock: string; } /** * Compile a list of {@link Token.Shape} into a Tailwind v4 `@theme` block. * * Tokens are grouped by category with a short comment separator so the * generated CSS remains human-readable alongside hand-authored Tailwind. */ declare function compile(tokens: readonly Token.Shape[]): TokenTailwindResult; /** * Token Tailwind compiler namespace. * * Adapts a `@czap/core` token set to Tailwind v4's CSS-first theming * pipeline by emitting a single `@theme { }` block with the category * prefixes Tailwind expects (`--color-`, `--spacing-`, `--font-`, …). */ export declare const TokenTailwindCompiler: { /** Compile a token array into a Tailwind v4 `@theme` block. */ readonly compile: typeof compile; }; export {}; //# sourceMappingURL=token-tailwind.d.ts.map