Theming
The CSS import order Pro requires, and what it adds to the theme
Pro is themed exactly as the core is: the same custom properties, the same data-theme switching,
the same cascade layer. Two things are Pro's own — the order its styles must be imported in, and
the chart ramp it adds.
Tokens, overrides, dark mode and component variables are in Theming.
CSS Import Order
Tailwind first, the core second, Pro last:
@import "tailwindcss";
@import "@peakui/styles";
@import "@peakui-pro/styles";The order is not a preference. Pro's components go into the components cascade layer — the one
the core puts its own into — so inside that layer the import order decides, and Pro wins where it
redefines something. Left out of the layer, a Pro rule would outrank every layer there is, and
your own utility class could never override it.
Themes
Pro ships the shared token layer and no theme of its own yet: a theme comes from the core, and Pro follows it. That includes a themed subtree, which is the useful case for a dashboard — a chart inside it resolves its ramp from that subtree's accent, not the page's.
<section data-theme="default-dark">
<KPI>
<KPI.Header>
<KPI.Title>Requests</KPI.Title>
</KPI.Header>
<KPI.Content>
<KPI.Value>1,280</KPI.Value>
</KPI.Content>
</KPI>
</section>To find values before writing any CSS, use the core's Theme Builder: it previews a whole page, reports the contrast of the pairs it changes and exports the CSS.
What Pro Adds to the Tokens
Five variables, --chart-1 to --chart-5, derived from --accent — the derivation, the override
recipe and the forced-colors fallback are on Colors.