Theme Customization
Customize the look and feel of WorkOS Widgets using Radix Themes.
The theme prop can be used to customize the overall appearance of WorkOS Widgets.
theme support relies on external stylesheets from Radix Themes and WorkOS Widgets. Start by importing both stylesheets into your application.
CSS imports
CSS
The dominant color of the theme. See the Radix Themes color guide for more details.
The color scheme of the theme. See the Radix Themes dark mode guide for more details.
The grayscale palette of the theme. See the Radix Themes color guide for more details.
The radius of the theme's components. See the Radix Themes radius guide for more details.
The linear scaling applied to the theme. See the Radix Themes scaling guide for more details.
See the Radix Themes API reference for more information on theming options.
Underlying components can be styled using the elements prop. This object is a mapping of component names to their respective Radix Theme component props.
Elements customization
JavaScript
Each element is mapped to a Radix Theme component and accepts the same props as its respective component. See the Radix Themes documentation for each component for all available props.