Node.js-specific utilities and runtime functionality for Tailwind CSS v4, providing compilation tools, module dependency analysis, source map handling, path normalization, and optimization utilities.
Build a helper that ingests a CSS entry file defining a Tailwind-style design system, resolves any imported stylesheets from a project base directory, and returns a normalized token summary plus the list of files that were read. Use the dependency's design system loading utility rather than manually parsing CSS.
@import to pull in another stylesheet, tokens from both files appear in the summary and the files list contains each resolved path once in load order. @test--<group>.<name> (e.g., --color.primary: #0ea5e9;) become nested keys in the summary (e.g., tokens.color.primary === "#0ea5e9"), preserving the raw string values. @test@generates
export interface DesignSystemSummary {
tokens: Record<string, any>;
files: string[];
}
export interface LoadOptions {
baseDir?: string;
}
export async function loadDesignSystemSummary(
entryCssPath: string,
options?: LoadOptions
): Promise<DesignSystemSummary>;Loads design systems from CSS with Node-aware resolution.
tessl i tessl/npm-tailwindcss--node@4.1.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10