Skip to content
TeaCSS documentation

Installation

Add TeaCSS to a project and connect its source scan to the code that uses StyleSheet.

Install TeaCSS in the project:

sh
bun add teacss

Configure the build

Add the TeaCSS integration for the framework that builds the application. The integration owns extraction and generated CSS; application code continues to write utilities directly where they are used.

Include every source

Point the source scan at the application and at any Teasim packages whose rendered markup contains utilities. A missing source path does not produce a runtime error — it produces missing CSS — so keep the scan boundary explicit and reviewable.

Import the entry once

Import the generated CSS entry at the application boundary rather than inside individual components. Components describe which utilities they need; the application decides where the compiled stylesheet enters the page.