API Reference
Detailed documentation for Plumeria APIs and plugins.
Plumeria provides a set of powerful APIs and plugins to help you build type-safe, performant styles.
JavaScript API
The core JavaScript APIs for defining styles, themes, and animations.
create
Create type-safe CSS-in-JS styles with full TypeScript support.
createStatic
Define static styles that are extracted at build time.
createTheme
Create and manage design tokens and themes using CSS variables.
variants
Create complex component variations with a simple API.
keyframes
Define CSS keyframes for animations.
viewTransition
First-class support for the View Transitions API.
marker & extended
Apply styles based on parent markers or extended selectors.
styleName & use()
Apply styles to elements using the styleName and use functions.
Plugins
Integrate Plumeria with your favorite tools and frameworks.
@plumeria/next-plugin
Official plugin for Next.js supporting both Webpack and Turbopack.
@plumeria/unplugin
Universal bundler plugin supporting Vite, Webpack, Rspack, and more.
@plumeria/eslint-plugin
ESLint rules to ensure best practices and prevent common errors.
@plumeria/postcss-plugin
PostCSS integration for advanced CSS processing.