Vue
Add shared theme state to a Vue 3 application.
Install
Register the plugin
Import your stylesheet from the app entry. Define styles for the registered palette keys and the light and dark appearances.
Use the composable
Call useUITheme during setup. Its state values are refs. Pass the click event to use the button as the transition origin. Use setTheme for an immediate change.
For a separate scope, wrap a subtree in UIThemeProvider. For server rendering, create a fresh app and plugin per request. Use the Nuxt guide for automatic Nuxt integration.
Add editable controls
The Vue registry uses Reka. Set up Tailwind and palette styles, then preview the CLI changes.
Example
Open the Vue application. Its shared screens and styles live in the Vue demo workspace.

