A provider component that sets the visual context for all Rad UI components within it — controlling appearance, accent color, radius, and scaling.
import Theme from "@radui/ui/Theme"- appearance sets light or dark for everything inside; nested Themes can differ
- accentColor picks the ramp that --rad-ui-color-accent-* resolves to
- radius and scaling adjust control radii and density through tokens
- classNamespace turns on generated class names such as rad-ui-button for the default stylesheet
- Exposes its settings as data attributes on its container for your own CSS
Import all parts of the component and piece them together.
A provider component that sets the visual context for all Rad UI components within it.
| Prop | Type | Default |
|---|---|---|
appearance | enum | dark |
accentColor | string | "gray" |
radius | string | "" |
scaling | string | "" |
id | string | "rad-ui-theme-container" |