Theemo / @theemo/theme
@theemo/theme
Theemo manager when loaded with vite.
Installation
sh
pnpm add -D @theemo/vite @theemo/theme
Configuration
Add @theemo/vite
to load all themes
ts
// vite.config.ts
import { defineConfig } from 'vite'
import { theemo } from '@theemo/vite';
export default defineConfig({
plugins: [
theemo({
defaultTheme: '<your-default-theme-name>'
})
]
});
Usage with @theemo/theme
Instantiate ThemeManager
to start switching themes and features.
ts
import { ThemeManager } from '@theemo/theme';
const manager = new ThemeManager();
manager.switchTheme('ocean');
References
Classes
Interfaces
- ColorContrastFeature
- ColorSchemeFeature
- CustomFeature
- MotionFeature
- PackageTheme
- TheemoConfig
- TheemoOptions
- TheemoRuntimeConfig
- Theme