Documentation
Build beautiful, themeable React interfaces with minimal effort. Vartheme handles the heavy lifting of CSS variables and state management.
Installation
Install the package via your preferred package manager.
Basic Usage
Simply wrap your root component with ThemeProvider. This provides the context for themes and handles automatic CSS variable injection.
Add the built-in animated toggle anywhere:
Themes
Vartheme comes with 5 hand-crafted color palettes.
Default
Modern Purple
Ocean
Deep Sea
Forest
Evergreen
Sunset
Evening Glow
Rose
Velvet Rose
useThemeContext
Access theme state and controls from any component.
CSS Variables
Tailwind Plugin
Example usage: