Repository navigation
v1.1.1 - Enhanced ThemeRuntime API, Vue Export Fixes, and Angular Package
π What's New
β¨ Enhanced ThemeRuntime API
We've significantly expanded the ThemeRuntime class with new methods:
getThemeTokens(themeName)- Retrieve tokens for any theme by namegetAvailableThemes()- Get a list of all available theme namesnextTheme()- Cycle through themes programmaticallydestroy()- Clean up runtime resources and remove injected CSSwatchSystemTheme(callback)- Watch for system theme changes (light/dark mode)detectSystemTheme()- Static method to detect current system theme preference
π Angular Package
Complete Angular adapter (@tokiforge/angular) with:
ThemeService- Injectable service using Angular Signals- Full SSR support with
@angular/ssr - Static and dynamic theme modes
- localStorage persistence
- System theme detection
π§ Vue Package Export Fixes
Fixed critical export resolution issues:
- Added
defaultexport to package.json exports field - Fixed ESM/CJS module resolution
- Resolved "Failed to resolve entry" errors
π Bug Fixes
- Vue Package: Fixed package.json exports to match build outputs
- Core Package: Fixed Vitest configuration timeout issues on Windows
- Angular Package: Created missing
src/index.tsfile - Build System: Improved build reliability across all packages
π Documentation & Testing
- Updated ThemeRuntime API documentation with all new methods
- Added comprehensive Angular API documentation
- Added 37 new tests for ThemeRuntime
- Improved test coverage across all packages
π¦ Packages Updated
All packages updated to v1.1.1:
@tokiforge/core@1.1.1@tokiforge/react@1.1.1@tokiforge/vue@1.1.1@tokiforge/angular@1.1.1β¨ NEW@tokiforge/svelte@1.1.1@tokiforge/tailwind@1.1.1@tokiforge/figma@1.1.1tokiforge-cli@1.1.1
π Quick Start
Vue Users (Fixed!)
npm install @tokiforge/vue@^1.1.1 @tokiforge/core@^1.1.1### Angular Users (New!)
npm install @tokiforge/angular@^1.1.1 @tokiforge/core@^1.1.1### Enhanced ThemeRuntimecript
import { ThemeRuntime } from '@tokiforge/core';
const runtime = new ThemeRuntime(config);
// Get available themes
const themes = runtime.getAvailableThemes();
// Watch system theme
runtime.watchSystemTheme((theme) => {
runtime.applyTheme(theme);
});## π Documentation
Full Changelog: v1.1.0...v1.1.1