# What changed in @lobehub/ui

> 27 changes in @lobehub/ui 4 to 6 from its official release notes, upgrade guides and advisories: 18 breaking, 7 new APIs and options. Each one cited. Sources checked 2026-10-28. HTML: https://unstale.sh/npm/@lobehub/ui/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @lobehub/ui 6

### Breaking changes

- antd is no longer a dependency or peer, and antd-based components are replaced by base-ui versions. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- antd-style is no longer a dependency or peer; use the styling APIs exported by @lobehub/ui instead. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- controlOutline is dropped from the lobe token. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The project now owns the design token engine through createLobeToken. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- Import createStaticStyles from @lobehub/ui instead of antd-style. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- cssVar resolves only to var(--lobe-*) variables. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The function now returns precise key types instead of Partial<AliasToken>. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The function now returns precise key types instead of Partial<AliasToken>. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The base-ui subpath is removed; import components from @lobehub/ui instead. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The form subpath is removed; import from @lobehub/ui/form instead. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- An ESLint rule autofixes imports that use the removed base-ui subpaths. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- The motion peer dependency requirement is now ^13. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- V6 ProTable is provided without rc-table. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- V6 Table is provided without rc-table. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- ThemeProvider is removed; use theme.css with theme attributes on html or wrap a subtree in ThemeScope. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- Video is rebuilt as a player with sections, markers, and a player handle. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)

### New APIs and options

- Set data-neutral-color on html to configure the neutral color without ThemeProvider. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- Set data-primary-color on html to configure the primary color without ThemeProvider. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- Set data-theme on html to configure the theme without ThemeProvider. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- Import this stylesheet to use the new theme setup without ThemeProvider. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- ColorSwatches adds a renderPicker slot and a custom colour chip. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)
- ThemeScope can wrap a subtree as an alternative to setting theme attributes on html. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)

### Performance

- Hovering date-picker cells now re-renders only the input preview. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)

### Behavior and default changes

- Any hex value is accepted as primaryColor, with readable custom primary colors and named status palettes. (6.0.0) — [release notes](https://github.com/lobehub/lobe-ui/blob/HEAD/CHANGELOG.md)

## @lobehub/ui 5

### Breaking changes

- Removed from the main entry; import it from @lobehub/ui/base-ui instead. (5.0.0) — [release notes](https://github.com/lobehub/lobe-ui/releases/tag/v5.0.0)
- Removed from the main entry; import it from @lobehub/ui/base-ui instead. (5.0.0) — [release notes](https://github.com/lobehub/lobe-ui/releases/tag/v5.0.0)

## @lobehub/ui 4

### New APIs and options

- Adds MotionProvider and updates components to use Motion for animations. (4.0.0) — [release notes](https://github.com/lobehub/lobe-ui/releases/tag/v4.0.0)
