Skip to content

Use with Tailwind

@n3wth/ui ships a token bridge that maps the Newth theme onto Tailwind v4’s @theme layer. Import it alongside Tailwind in your global stylesheet.

For an app using Tailwind v4, import the token bridge and site CSS in your global stylesheet:

@import 'tailwindcss';
@import '@n3wth/ui/tailwind-theme.css';
@import '@n3wth/ui/site.css';

When you retain compatibility components, replace the final import and add an explicit source:

@import 'tailwindcss';
@import '@n3wth/ui/tailwind-theme.css';
@import '@n3wth/ui/styles';
@source '../node_modules/@n3wth/ui/dist/**/*.js';

Resolve @source relative to the CSS file. Workspace consumers scan their built packages/ui/dist directory instead.