Import the stylesheet
Import the token stylesheet and the Tailwind mapping once, in your global CSS, after
Tailwind itself. Tell Tailwind where to find the component class names with @source.
@import "tailwindcss";
@import "@usecredo/tokens/tokens.css";
@import "@usecredo/tailwind-config/theme.css";
@source "../node_modules/@usecredo/ui/dist";
@usecredo/tokens/tokens.cssdeclares the CSS variables for every theme. Colour roles are scoped bydata-theme; scales (spacing, radius, border width, typography) apply to:root.@usecredo/tailwind-config/theme.cssmaps those variables to Tailwind theme values, so utilities such asbg-actions-primary-defaultexist.@sourcepoints at the built components so Tailwind generates the utilities they use. Adjust the relative path to where your CSS file sits relative tonode_modules.
The CSS variable prefix is --cr-.
@usecredo/tailwind-config/precompiled.css is a provisional stylesheet for projects that
cannot run Tailwind.
The default font stack names Lexend. The packages do not load font files.
Next: set the theme attribute.