Theme builder
Start from a personality and make it yours: colors, corners, shadows, type and motion. Everything in the preview is the real library. Copy the code when it feels right.
Invite a teammate
They get an email with a link to join.
This week
You tune how it looks. The motion language and signature moments stay with the personality. Each personality keeps its own changes.
Add it to your global CSS, after plonk-ui/theme.css. Only the tokens you changed are written.
[data-plonk-personality="sticker"] {
/* Nothing changed yet. Pick a color or move a slider. */
}Using the code
The builder only writes the tokens you changed. Put the CSS version in your global stylesheet, after Plonk's theme:
@import "tailwindcss";
@import "plonk-ui/theme.css";
[data-plonk-personality="sticker"] {
--plonk-color-primary: #7c5cff;
--plonk-color-on-primary: #ffffff;
--plonk-radius-md: 16px;
}Or pass the same tokens to the provider. They are typed, so a misspelled token name is a TypeScript error:
import type { ReactNode } from "react";
import { PlonkProvider } from "plonk-ui";
export function App({ children }: { children: ReactNode }) {
return (
<PlonkProvider
personality="sticker"
style={{ "--plonk-color-primary": "#7c5cff" }}
>
{children}
</PlonkProvider>
);
}Both reach dialogs, menus and toasts too. More on the three ways to apply tokens on the Colors page.
Saving and sharing
Your draft stays in this browser, so you can leave and come back. Copy link puts the whole theme in a link: whoever opens it starts from your draft.
What stays with the personality
A theme changes how a personality looks, not how it moves. Springs or steps, the jelly's timing, press effects like the comic's POW! and the arcade's points all come with the personality you start from. For the full list of tokens, see Tokens; for motion, see Motion.