Choose a framework adapter
typescriptcss is a zero-runtime CSS-in-JS library. You write styles as inline chains directly on your elements, and the build plugin collects them into a stylesheet with hashed class names.
Choose the adapter at the layer that owns your build. All adapters share the same collector and the same inline-chain authoring API.
Install typescriptcss
Install the runtime, then add the adapter that matches your build tool. Install only one adapter for a typical application.
Add the plugin to your config
Register the adapter in the configuration file owned by your framework or bundler.
Write your styles inline
Import the utilities you need and build a chain, then call it to produce the style object. No class names or separate CSS file are required.
Compose states and breakpoints
Insert dark, sm, md, or lg anywhere in the chain to scope the styles after it. Everything stays in the same expression.
Run the build
Use the framework’s normal production build command after registering its adapter.