vite-plugin-theme
JSON →Vite plugin for dynamically changing theme colors at runtime. Version 0.8.6 requires Vite >=2.0.0 and Node >=12.0.0. It extracts specified color variables from CSS output at build time, generating a separate theme stylesheet (app-theme-style.css) that can be dynamically swapped via JavaScript. Unlike CSS custom properties or runtime CSS-in-JS approaches, this plugin works with static CSS and supports deep customization options like custom selector resolution and variable extraction logic. Released under MIT, maintained by Vben Admin team. Not actively updated since mid-2023.
Traffic · last 30 days stale · no recent hits
total hits 14
actors 5 distinct systems
last hit 24d ago ByteDance
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/vite-plugin-theme
compatibility /v1/registry/vite-plugin-theme/compatibility