Component changelog
Theme changelog
Component-specific release notes collected from the full changelog. This page filters the published entries that mention Theme.
Release
v1.1.0
Minor Changes
-
dc6aaa7: feat(build): publish per-component Clarity style sources
Each component's Clarity styles now ship in the package and can be imported from
@radui/ui/styles/clarity/<Component>/<file>.clarity.scss. For example,@radui/ui/styles/clarity/Button/button.clarity.scss.- The folder structure matches the source, so relative
@useimports between components still resolve when you compile a single file with Sass. @radui/ui/themes/default.cssis unchanged and remains the recommended way to load the full Clarity theme.- The docs site uses these files to show the exact styles that ship in each released version.
- The folder structure matches the source, so relative
-
0bcb1ef: feat(theme): default
Themeappearance to dark<Theme>now rendersdata-rad-ui-theme="dark"when noappearanceis passed. Previously it defaulted to'system'and followed the OS color scheme.To keep the old behavior, pass it explicitly:
<Theme appearance="system">...</Theme>appearance="light"andappearance="dark"are unchanged.
Release
v1.0.0
Major Changes
-
56ab619: Tailwind CSS v4 support. Tailwind v3 is no longer supported.
The Tailwind preset is now a CSS file instead of a JavaScript config object. Import it after Tailwind itself:
@import "tailwindcss"; @import "@radui/ui/themes/tailwind-presets/default.css";Breaking changes:
-
The
@radui/ui/themes/tailwind-presets/default.jsexport has been removed. Upgrade Tailwind to v4 before upgrading Rad UI. -
The preset covers colours only, as before. Spacing, radius, shadow, blur and typography keep Tailwind's own defaults.
-
The colour ramp no longer contains
<alpha-value>. Opacity modifiers keep working (bg-gray-500/90), so nothing needs replacing. -
Tailwind v4 dropped its default border colour, so bare
bordernow inheritscurrentColorinstead ofgray-200. To restore the old default, add this to your base layer:@layer base { *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: oklch(from var(--rad-ui-color-gray-200) l c h); } } -
var(--color-gray-500)no longer resolves. Readvar(--rad-ui-color-gray-500)instead, which is what v3 emitted anyway.
Applying v4's utility renames to your own markup:
shadow-sm→shadow-xs,shadow→shadow-sm,blur-sm→blur-xs,blur→blur-sm,backdrop-blur-sm→backdrop-blur-xs,backdrop-blur→backdrop-blur-sm,outline-none→outline-hidden,bg-gradient-to-*→bg-linear-to-*, and barering→ring-3. Runningnpx @tailwindcss/upgradehandles most of this automatically. -
Minor Changes
-
56ab619: Release
TextFieldand add theme styles forFieldset.TextFieldis now published. Previously it shipped with styles and tests but was missing from the export list, so@radui/ui/TextFielddid not resolve.Fieldsetnow renders with Rad UI styling in both themes instead of the browser default, and itsinvalidanddisabledprops have a visual effect.