
Plumeria brings predictable overrides to React styling. When you combine styles in an array, the rightmost style wins for each property, regardless of import or load order. The compiler merges styles at build time, and an overridden property never reaches the element. What ships is class names and CSS. A value the compiler cannot resolve stops the build until it is fixed.
Docs · Blog · Playground

The compiler is written in Rust with oxc, so builds are fast — see the benchmark. The CSS types and the property list the linter checks against both come from cssdefs.
Example
Pass styles to the sx prop as an array of static and dynamic styles. At build time, the compiler resolves sx into a static className; dynamic values are passed as CSS variables through the style attribute — no runtime library is involved.
import * as css from '@plumeria/core';
const styles = css.create({
text: {
fontSize: 12,
color: 'gray'
},
active: {
color: 'navy'
},
scale: (value) => ({
scale: value
})
});
export default function App({ active }) {
const scale = useScale(); // from your own hook
return (
<div
sx={[
styles.text,
active && styles.active,
styles.scale(scale)
]}
/>
);
}
Compiled:
<div
className={((active) ? "xhrr6ses xhxthtyw xvbwmxqp" : "xhrr6ses xhxthtyw xuifcaas")} style={{ "--xfuma1qq-value": scale }}
/>
Generated CSS:
.xhrr6ses:not(#\#) {
font-size: 12px;
}
.xuifcaas {
color: gray;
}
.xhxthtyw {
scale: var(--xfuma1qq-value);
}
.xvbwmxqp {
color: navy;
}
text and active both set color, and the element only ever receives one of the two classes: the merge is already decided in the compiled className. The :not(#\#) on font-size ranks a longhand above its shorthand without depending on stylesheet order — see Specificity.
Explore the documentation for the core principles, full API reference, and integrations.
Getting started
npx @plumeria/init
It detects the bundler and the package manager, asks what it cannot detect — which spelling of a two-named property the project writes, what the styling prop is called, whether .jsx/.tsx files apply styles only through the styling prop, and whether to set up ESLint — then installs the packages and writes the configs. It shows the plan before writing anything.
To set it up by hand, add @plumeria/next-plugin for Next.js or @plumeria/unplugin for Vite, webpack, Rollup and the other bundlers.
Benchmark
For how Plumeria compares with other libraries, see the benchmark. The harness is public.
API Stability
Plumeria publishes frequently. To make that legible, every public API is rated for future change likelihood — not past churn.
| Rating | Label | Meaning |
|---|
| ★★★★★ | Frozen | Bug fixes ship continuously. The signature will not change. |
| ★★★★☆ | Stable | Additive only. Existing signatures will not move. |
| ★★★☆☆ | Candidate | Shape is settled. Details may still change. |
Core API — @plumeria/core
| API | Rating | Label |
|---|
css.create | ★★★★★ | Frozen |
css.createTheme | ★★★★★ | Frozen |
css.createStatic | ★★★★★ | Frozen |
css.keyframes | ★★★★★ | Frozen |
css.viewTransitionClass | ★★★★★ | Frozen |
css.positionTry | ★★★★☆ | Stable |
css.varType | ★★★★☆ | Stable |
css.marker | ★★★★☆ | Stable |
css.extended | ★★★★☆ | Stable |
css.use | ★★★★★ | Frozen |
Styled API — @plumeria/react