@theemo/theme
v1.0.1
Published
Theemo Theme Runtine
Readme
@theemo/theme
Theemo manager when loaded with vite.
Installation
pnpm add -D @theemo/vite @theemo/themeConfiguration
Add @theemo/vite to load all themes
// 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.
import { ThemeManager } from '@theemo/theme';
const manager = new ThemeManager();
manager.switchTheme('ocean');