The first 3.0 beta: one prop vocabulary across components, theme density, numbers on the spacing scale, merged components, and a codemod that migrates 2.x code.
Once UI 3.0 is the one breaking release we planned, and its first beta is on npm today. It gives every component the same prop names, adds a density setting to the theme, folds overlapping components together, and ships a codemod that moves your 2.x code over for you. 3.0.0 is planned for early January; until then the beta lives on the next tag.
npm i @once-ui-system/core@next
What 3.0 is
2.x grew one component at a time, and it showed. A toggle reported its state with onToggle, a field with onChange, a select with onSelect. A colour role was variant on a Button, scheme on a Tag and state on a Timeline. A bare number meant rem on a width and a percentage on a mask. 3.0 settles each of these once, so what you learn on one component holds on the next. It is a cleanup, not a redesign: apps look the same after the move.
How to try it
Start on a 2.x app with a clean working tree, and upgrade react and react-dom to 19 first, since React 19 is now the floor. Then run the codemod while the app is still on 2.x. It is a script in the core repo, not a package, so clone the beta tag next to your app and point it at your source:
git clone --depth 1 --branch v3.0.0-beta.0 https://github.com/once-ui-system/core ../once-ui-core
node ../once-ui-core/scripts/codemod-3.0.mjs src --dry # see what it would change
node ../once-ui-core/scripts/codemod-3.0.mjs src
npm i @once-ui-system/core@next
It only touches Once UI's own components, and running it twice changes nothing. Lines marked ! in its report are the spots it could not rewrite exactly, each with its file and line, for you to finish by hand. The migration guide walks through every step.The effects (RevealFx and the other Fx components) and blocks such as StylePanel and Banner move to their own packages in 3.0, and both are now on npm under the next tag. If your app uses them, the codemod's closing note lists which files import each package; add them alongside core:
npm i @once-ui-system/fx@next @once-ui-system/blocks@next
The 3.0 docs are live on their own site while the beta runs:
What changed
One prop vocabulary. State X is always X, defaultX and onXChange: value, defaultValue and onValueChange on every field, checked and on toggles, and on disclosures. now only ever means the native input event, so a form library's works on every field. names the colour role (brand, accent, neutral, info, success, warning, danger) everywhere, only means appearance, Text and Heading take , and is the native .Theme density. Set density to compact, normal or spacious in the style of your once-ui.config, and every Button, Tag, Switch, Checkbox, Slider and the other controls without a size follow it. It works through CSS, so it holds in server components too, and a size you set always wins.Numbers on the spacing scale. A number on a size, spacing or offset prop now means what the spacing token of the same name means: 16 is "16" is 1rem, so width={320} is 320px at the default root size. Any CSS length string works too ("320px", "40rem", "50%"). The codemod writes your old rem numbers as rem strings, so nothing moves.Fewer components. Twenty-three components fold into the one that already did most of their job. Badge and Chip become Tag, DataTable takes the name Table, DateRangePicker and DateRangeInput become a range prop on DatePicker and DateInput, and UserMenu becomes User with a dropdown.Here is a small 2.x component:
<Column maxWidth={40} gap="16">
<Badge title="New" icon="rocket" href="/blog" />
<Switch checked={on} onToggle={setOn} ariaLabel="Email alerts" />
<Text variant="body-default-s">Changes save on their own.</Text>
<DataTable columns={columns} rows={rows} />
<Button variant="danger">Delete account</Button>
</Column>
And the same code after the codemod, untouched by hand:
<Column maxWidth="40rem" gap="16">
<Tag variant="announce" label="New" prefixIcon="rocket" href="/blog" />
<Switch checked={on} onCheckedChange={setOn} aria-label="Email alerts" />
<Text textVariant="body-default-s">Changes save on their own.</Text>
<Table columns={columns} rows={rows} />
<Button tone="danger">Delete account</Button>
</Column>
In our own test migrations, the codemod moved the Once UI starter, Magic Portfolio, Magic Docs and Frametic to 3.0 with 0 spots left to fix by hand.
What's next
The beta stays on next while we run the codemod over more apps and fix what turns up. 3.0.0 is planned for early January. If the codemod leaves something odd in your app, or misses a rename, open an issue on the core repo with the line it reported: that is exactly what the beta is for.