It walks .tsx, .jsx and .mdx, but not plain .ts files, so anything there is left for tsc to find. Every rename is scoped to the component it belongs to, so a fill or radius on an unrelated component survives untouched. It also follows import aliases.Run it once, on a 1.8 tree. Running it twice is a no-op, but running it over code you already wrote against 2.0 can change Skeleton widths.
2. Install only the peers you import
Charts, CodeBlock and MediaUpload moved to their own subpaths. The codemod moves the imports; installing what they need is yours, and only for the subpaths you actually use:
Subpath
Install
@once-ui-system/core/data
recharts@^3.10.1
@once-ui-system/core/code
prismjs@^1.30.0
@once-ui-system/core/media
compressorjs@^1.3.0
An app that imports none of them installs none of them.
3. On Next.js, change one import
If your app runs on Next, do this before anything else, because it is the one step whose absence never errors:
Same component, same props, with the Next adapters already wired in. Skip it and internal links do a full page reload and images skip next/image optimisation.
The changes that don't error
These compile cleanly and still change what you ship, so give them a minute each.
Textarea grows by default.lines used to default to 3 and now defaults to "auto". Search for <Textarea and add lines={3} wherever you wanted the fixed box. The codemod can't decide this for you.
Effect timing is milliseconds.RevealFx and were the only seconds-valued props, so becomes . The codemod reports small literals and any expression like instead of guessing.
What tsc will catch for you
The rest surfaces as type errors, which is the easy kind.ColorInput's onChange hands back the value, like every other onChange in the library, instead of an event. Property accesses such as props.isChecked aren't JSX, so the codemod can't see them, but tsc can.Icon names are a real type now, so a typo is a compile error instead of a blank space. Expect it to find bugs you already had. Register your own icons by augmenting the interface:
LayoutProvider no longer takes a breakpoints prop. The widths are fixed at xs 480, s 768, m 1024 and l 1440, with xl as the base state above them. That is what lets a responsive Flex render the right layout on the server. If you relied on custom widths, the nearest equivalent is a media query of your own in a CSS module.
Renames at a glance
The codemod applies all of these, but it helps to know the new names when you write fresh code:
Component
1.8
2.0
Dialog, Modal, DatePicker, DropdownWrapper
isOpen
open
Checkbox, ,
, ,
/
/
,
,
, ,
/
/
,
No component was removed. Particle is now ParticleFx, and the old name stays as an alias until 3.0. Your stylesheet imports keep working as they are, and radius still means roundness, so radius="none" is fine.
Check yourself
Codemod ran once, and you read its report
Peers installed only for the subpaths you import
Next apps import LayoutProvider from @once-ui-system/core/next
The full checklist, with every rename and the reasoning behind each change, is in the migration guide on GitHub. If something breaks on 2.0, open an issue there with your version.
More beginner guides
delay
ShineFx
speed
delay={0.2}
delay={200}
index * 0.1
ScrollContainer is a track now. Tiles no longer come pre-shaped as portrait cards, they paint past the edge (pass clip for the old behaviour, or a phone may scroll sideways), and a trackpad swipe no longer moves it. Dragging and the controls replace that.
The browser floor moved. Every colour token is oklch() now, with no fallback, so the floor is Chrome 111, Safari 15.4 and Firefox 113.