Repository navigation
Releases
TokiForge v2.5.1 — Security Hardening for Token Imports and Previews
TokiForge 2.5.1 is a security-focused patch release that hardens how the CLI, Tokens Studio integration, playground, and Astro adapter handle token data.
What’s fixed
- CLI preview renders token data safely and listens only on the local machine.
- Tokens Studio imports reject unsafe object paths before applying imported tokens.
- Playground share links validate token values before applying them as CSS declarations.
- Astro static CSS generation validates theme filenames and keeps generated files inside the configured output directory.
Dependencies and tooling
This release updates Axios, Next.js, Astro, Storybook, and SvelteKit. It also fixes the VitePress configuration warnings about extensionless imports. The production dependency audit found zero critical advisories. One high-severity Turbo Stream advisory remains in the Remix 2 dependency chain. Upstream advisory
All 355 targeted tests, TypeScript checks, and the documentation build passed.
v2.5.0 — Token Inspection, Native Exports, Storefront Previews & Theme Fixes
TokiForge 2.5.0 connects token edits directly to their consumers—trace a color token to its source, inspect CSS usages, compare WCAG contrast across brands, and verify generated web and native outputs.
Highlights
Token Formats & Generated Output
- W3C DTCG Resolution & Validation: Resolve chained aliases, explicit
$rootgroup roots, and local DTCG group inheritance with nested overrides. Invalid references, inheritance cycles, and unsupported structured color values are reported with exact token paths. - Structured Colors & Live Aliases: Export structured
srgbanddisplay-p3colors to CSS. Preserve selected aliases as live CSS custom properties vialiveAliasesso scoped palette overrides update dependent components (flattened CSS remains the default). - Native Platform Exports: Generate UIKit Swift, Android XML, and React Native TypeScript directly from your project build configuration using token types and sRGB fallbacks.
- Build & Watch Parity: Aligned initial
watchoutput with project builds (CSS selector, prefix, and@layer), and addedbuild --checkto detect missing or stale web, responsive, and native artifacts without rewriting them.
CLI Inspection, MCP Server & Impact Review
- New CLI Commands:
explain— inspect alias chains and resolved token valuesrename --dry-run— preview JSON patches across tokens and usage bindingsaudit-css— detect raw literals and matching tokens in CSSusages— locate direct and indirect CSS token references
- Local MCP Server: Inspect project tokens, explain aliases, audit CSS, and find usages from MCP-compatible clients.
- Token Impact Reporting: Trace token changes through aliases to named components and themes, flagging WCAG contrast threshold crossings.
Runtime & Framework Adapters
- Instance Isolation & Cleanup: Isolate styles across runtime instances, clean up scoped styles on teardown, eliminate duplicate initial system-theme notifications, and handle retired stored theme names when following OS preferences.
- React & Next.js Lifecycle + SSR: Update provider lifecycles on configuration or tenant changes, extend SSR/hydration coverage (scoped CSS, cookie-selected first paint, saved preferences), and safely handle SSR theme scripts running before
document.bodyexists. - Color & Accessibility Accuracy: Fixed color parsing and hue normalization, accounted for translucency in contrast calculations, and used unrounded ratios for accessibility checks.
Playground & Storefront Examples
- Harbor & Orchard Storefront Fixtures: Interactive checkout previews with token usage bindings, light/dark comparison, live contrast feedback, and downloadable tokens.
- Named Snapshots: Save, compare, and restore named snapshots across reloads with timestamps in Collaboration.
- Editor & Export Improvements: Shared token traversal across panels, improved keyboard selection and narrow-screen layout, escaped TypeScript export names/values, alpha preservation in Flutter and Swift exports, and accurate clipboard feedback.
Full Changelog: v2.4.0...v2.5.0
v2.4.0 — Runtime/Tools/Node Core Split, Modern CSS Export & Adapter Unification
TokiForge 2.4.0 splits @tokiforge/core into three purpose-built entry points with CI-enforced bundle budgets, adds modern CSS export, moves every remaining framework adapter onto the shared ThemeController, and aligns all packages and docs to 2.4.0.
Highlights
Lean, enforced core entry points
| Import | What you get | Use from |
|---|---|---|
@tokiforge/core/runtime |
ThemeRuntime, ThemeController, TokenExporter, ColorUtils, AccessibilityUtils |
Browser bundles, framework adapters |
@tokiforge/core/tools |
SSRUtils, TokenAnalytics, AnalyticsReporter, SemanticTokenManager, TokenVersioning, ResponsiveTokens, BrandManager, ComponentTheming, TokenRegistry, IDESupport, pluginManager, iOS/Android/RN exporters |
Build scripts, Storybook, docs sites (browser-safe, no fs) |
@tokiforge/core/node |
Everything above + TokenParser, FigmaDiff, CICDValidator |
CLI, Node tooling, VS Code |
@tokiforge/core |
Same as /node |
Backwards-compatible default |
Theme switching ({ ThemeRuntime, ThemeController }) measures 2.71 KB gzipped. Budgets are enforced in CI with size-limit on real tree-shaken imports: /runtime ≤ 3 KB, full /runtime ≤ 6 KB, /tools ≤ 14 KB, React/Vue/Svelte adapters ≤ 4 KB. Run pnpm size or pnpm size:why locally (Node 22+).
Modern CSS export
TokenExporteremitscolor-mix(),@layer, and@containeralongside CSS variables andlight-dark().- Deeper DTCG composite handling;
prefers-*and container-query breakpoints for responsive tokens.
Adapter unification
- Vue, Angular, Emotion, and styled-components now wrap
ThemeController, matching React, Next.js, Remix, Solid, Svelte, and SvelteKit. - React, Next.js, Remix expose
watchSystemThemeandstorageKey; Next.js and Remix re-exportSSRUtils. - Storybook ships an official
registerexport; Astro's injected script usesThemeControllerandgenerateStaticCSSwrites files to disk. - Tailwind peer widened to
tailwindcss@^3 || ^4.
CLI & tooling
tokiforge buildemits responsive and interactive-state CSS.- CLI and Tailwind read files via
@tokiforge/core/node. - Figma plugin
ui.html+manifest.jsonpackaged intodist; VS Code extension gains apackagescript for VSIX builds.
Docs site
- Resolves
@tokiforge/core/runtimefrom the prebuiltdist(source fallback);predev/prebuildbuild core + vue. ApiPlaygroundand seasonal overlay lazy-loaded; config split intoconfig.ts/head.ts/nav.ts; unusedvite/vitestdeps and Node stubs removed.- New Performance guide table with measured vs. budgeted sizes; Troubleshooting covers moved
/toolssymbols and Vite alias pitfalls.
Fixes
- Emotion / styled-components
switchThemenow applies the requested theme name. - Docs for
ResponsiveTokens,FigmaDiff, andCICDValidatormatch the shipped APIs. - Root
tsconfigmaps/runtime,/tools,/nodeto source so typecheck works before a build.
Tests & CI
- New suites for
FigmaDiff,CICDValidator,IDESupport; Angular tests enabled. 303 tests passing. size-limitreplaces the ad-hoc gzip script; runs once per CI matrix (ubuntu / Node 22).
Migration
// Browser bundles
import { ThemeRuntime, ThemeController } from '@tokiforge/core/runtime';
// Moved from /runtime → /tools in 2.4.0
import { SSRUtils, TokenAnalytics, IOSExporter } from '@tokiforge/core/tools';
// Node / CLI
import { TokenParser, CICDValidator } from '@tokiforge/core/node';@tokiforge/core (default) is unchanged and still exports everything. No other breaking changes.
Install
npm install @tokiforge/core@^2.4.0
# with an adapter
npm install @tokiforge/react@^2.4.0Full details in CHANGELOG.md.
v2.3.0 — Shared ThemeController, DTCG Tokens, CSS-in-JS Adapters & Modern CSS
TokiForge 2.3.0 introduces a shared headless ThemeController that all framework adapters now build on, W3C DTCG token format support, four new packages (Emotion, styled-components, CMS, design-tools), a modern OKLCH color engine — and a large batch of critical fixes across the core exporter, framework adapters, and the CLI.
✨ Highlights
ThemeController(core) — a headless controller that owns the full theming lifecycle: initial-theme resolution (persisted → option → config default), CSS injection, localStorage persistence, system-theme watching, and change subscriptions. The React, Next.js, Remix, Solid, Svelte, and SvelteKit adapters are now thin wrappers over it, so theming behaves identically in every framework.- W3C DTCG format support —
$value/$type/$descriptiontoken files parse transparently, andTokenParser.toDTCG()exports for Figma Variables, Tokens Studio, and Style Dictionary v4 interop. Both formats can be mixed in one file. - Composite tokens — typography objects flatten to per-part variables, shadow tokens compose to
box-shadowstrings (multi-shadow andinsetsupported), font stacks join into fallback lists, andcubicBezierbecomescubic-bezier(). - Modern CSS output —
TokenExporter.exportLightDarkCSS()emits a single stylesheet using the CSSlight-dark()function +color-schemefor zero-JS light/dark switching, andcontroller.setThemeWithTransition()cross-fades theme switches via the View Transitions API with graceful fallback. - OKLCH color engine & APCA —
ColorUtils.parseColor()(hex/rgb/hsl), OKLCH conversions,generateScale()for Tailwind-style 50–900 palettes, perceptualmix(), andAccessibilityUtils.calculateAPCA()implementing the WCAG 3 candidate contrast algorithm. tokiforge docs— generates a self-contained static HTML styleguide (swatches, CSS variables, values, descriptions) from a token file.
📦 New packages
@tokiforge/emotion— Emotion adapter withThemeProvider,useTheme, andstyledre-export@tokiforge/styled-components— styled-components v5+ adapter with the same API@tokiforge/cms— headless CMS integrations for Contentful, Strapi, and Sanity (fetch & push)@tokiforge/design-tools— Sketch and Adobe XD plugin API adapters
🐛 Critical fixes
- Core:
TokenExporter.flattenTokensdropped ancestor keys —color.primaryemitted--hf-primaryinstead of the documented--hf-color-primary, colliding same-named leaves across groups. Full paths are now emitted everywhere. - Core: chained token references (
{a}→{b}→ value) now resolve fully, with circular-reference protection; shorthand 3/4-digit hex no longer producesNaN. - CLI: the published binary crashed on launch (
require is not defined in ES module scope) — now built as ESM. - Next.js: the
'use client'directive was stripped from the built bundle, breaking App Router usage; the index and server entries now build sequentially with the directive preserved. - All adapters: initial theme application now respects the persisted /
initialTheme/defaultThemeresolution order (previously React had empty initial tokens, Vue injected no CSS on load, and Next.js/Remix ignored the persisted theme).
🛠️ Infrastructure
- Test suites added for the Next.js, Remix, Astro, Solid, SvelteKit, and Storybook adapters; the React suite is re-enabled — 400+ tests across the monorepo now run on every push across Linux, Windows, and macOS on Node 20 and 22.
- New bundle-size CI guard fails the build when gzipped bundles exceed budget.
- New Token Diff GitHub Action comments a design-token change summary on PRs that touch token files.
Full Changelog: 2.2.4...2.3.0
v2.2.4 — Monorepo Alignment, HMR Mismatch Recovery & Premium SEO Engine
🚀 We are excited to release v2.2.4! This release establishes complete stability across the TokiForge framework ecosystem, synchronizing all 26 workspaces, resolving stale hot-reload chunk conflicts, and fully optimizing the platform for modern SEO standards.
🌟 What's New in v2.2.4
📦 Complete Monorepo Alignment
- Version Sync: Synchronized all publishable workspaces and dependency trees onto version
2.2.4. - Lockfile Integrity: Resolved ERESOLVE conflicts by downgrading the root ESLint instance to
v9.x(perfectly meeting React Hook peer dependencies) and purged all conflictingpackage-lock.jsonconfigurations.pnpm-lock.yamlis now the clean, single source of truth.
⚡ Graceful HMR Chunk Recovery
- Resolved the stale client module failure (
Failed to fetch dynamically imported module: VisualEditor.tsx). - Integrated a high-performance, automatic retry boundary helper inside the Visual Playground. If a chunk hash updates on the dev server, the playground will automatically recover via a seamless, one-time refresh, avoiding runtime blackouts.
🌐 High-Performance SEO & Meta Engine
- Injected a comprehensive metadata system into the Visual Playground:
- Full JSON-LD structured data mapping (
WebApplication) for advanced search indexing. - Standardized OpenGraph and Twitter card schemas for seamless social card sharing.
- Canonical path routing, crawler instructions, and custom asset fallbacks.
- Full JSON-LD structured data mapping (
🧪 Playwright Port Alignments
- Realigned the Visual Playground's Vite configuration to serve on port
5173, syncing it perfectly with the E2E test suites in Playwright.
📦 Registry Footprint
The following packages are published and fully accessible in the NPM registry:
@tokiforge/core@2.2.4@tokiforge/react@2.2.4@tokiforge/vue@2.2.4@tokiforge/svelte@2.2.4@tokiforge/angular@2.2.4@tokiforge/tailwind@2.2.4@tokiforge/figma@2.2.4tokiforge-cli@2.2.4
💾 How to Install / Upgrade
Update all adapter dependencies in your projects using pnpm or your preferred manager:
pnpm update @tokiforge/core@latest @tokiforge/react@latestv2.0.1 — Plugin options, provider options & frontend fixes
TokiForge v2.0.1
Patch release with new plugin and provider options, frontend fixes, and docs updates.
Fixes
- Playground: ThemeRuntime lifecycle (state + effect init/destroy); no re-creation every render
- React: ThemeContext single init with proper cleanup; Remix/Next provider effect deps and
runtime.destroy()on unmount - SSR: Removed unused
cookieMaxAgedestructure ingenerateSSRHead(build fix)
New options
Theme providers (React, Vue, Next, Remix)
storageKey— LocalStorage key for theme persistence (default:tokiforge-theme)persist— Read/write theme from storage (default:true)onThemeChange— Callback when theme changes (e.g. analytics)- React:
suppressHydrationWarningfor root/body
Tailwind plugin
baseSelector,strict,includeUtilities,excludePaths,tokens,customUtilityPrefix,debugthemeMappings: addedboxShadow,lineHeight,animation
SSR
cookieNameandcookieMaxAgeingenerateSSRHeadoptions
Core
- Generic
Plugin<TOptions>and optionaloptionsSchemaon Plugin interface
Other
- Playground: error boundary, lazy tabs, virtualized token list, a11y (ARIA/keyboard, button types, labels), Prettier
- Reduced
any/unknownin catch blocks; error boundaries in examples
Upgrade: npm install @tokiforge/core@^2.0.1 @tokiforge/react@^2.0.1 (or your adapter). See CHANGELOG for full details.
v2.0.0 – Production-ready design token engine
- Major milestone: unified, production-grade theming engine with multi-framework support (React, Vue, Svelte, Angular, Next.js/Remix).
- Accessibility and runtime theming upgrades; comprehensive token export/parser tooling.
- Added Changesets-driven release automation and CI/CD (lint/typecheck/test/build matrices).
- Playwright visual regression setup; all core package builds/tests green.
- Documentation refreshed with release workflow, CI requirements, and exporter guides.
Full Changelog: v1.3.0...2.0.0
v1.2.0 - Performance, Accessibility & Advanced Features
🚀 TokiForge v1.2.0
Release Date: December 10, 2025
This major release introduces performance optimizations, accessibility features, advanced token capabilities, and new integrations to make TokiForge more powerful and accessible than ever.
✨ Performance Optimizations
Caching System
- Built-in caching support in
ThemeRuntimewith multiple strategies:- Memory cache: Fastest, RAM-based storage (lost on page reload)
- localStorage: Persistent storage with ~5MB limit
- IndexedDB: Large capacity async storage for massive token sets
- Service Worker: Offline support with stale-while-revalidate pattern
- Multi-tier caching with
CacheManagerfor optimal performance - Automatic cache management with TTL (Time To Live) and size limits
- Configurable cache strategies per theme configuration
Lazy Loading
- Progressive token chunk loading to reduce initial bundle size
- On-demand loading with
loadChunk()method for specific token categories - CDN support for token distribution (jsDelivr, unpkg, etc.)
- Preloading capabilities for chunks that will be needed soon
- Chunk status checking with
isChunkLoaded()method - Configurable timeouts and retries for reliable token loading
Compression
- Gzip and Brotli compression utilities for token data
- Base64 encoding support for localStorage storage
- Automatic compression when storing tokens in localStorage
- Compression ratio tracking to monitor storage efficiency
- Decompression utilities for seamless token restoration
♿ Accessibility Features
High Contrast Mode
- Automatic system preference detection via
prefers-contrast: highandforced-colors: active - WCAG AAA compliant color enhancement
- Theme variant support for high contrast themes
- Manual control via
getAccessibilityPreferences()API
Reduced Motion
- Respects
prefers-reduced-motion: reducesystem preference - Automatic CSS injection to disable animations and transitions
- Configurable transition disabling per theme
- System preference watching for real-time updates
Color Blind Support
- Three color vision deficiency types:
- Protanopia: Red-green color blindness (red deficiency)
- Deuteranopia: Red-green color blindness (green deficiency)
- Tritanopia: Blue-yellow color blindness
- Automatic color transformations for accessible color palettes
- Manual mode control via
setColorBlindMode()API - Real-time color adjustments without theme reload
Font Size Scaling
- System preference detection for user font size preferences
- Manual scaling control (0.5x to 3.0x multiplier)
- Configurable base font size for consistent scaling
- Dynamic font size updates via
setFontSizeScale()API
🔧 Advanced Token Features
Token Functions
Compute token values dynamically using built-in or custom functions:
Color Functions:
darken(color, amount)- Darken colors by percentagelighten(color, amount)- Lighten colors by percentagemix(color1, color2, weight)- Mix two colors with weightalpha(color, alpha)- Add alpha channel to colors
Math Functions:
add(...values)- Add multiple valuessubtract(a, b)- Subtract valuesmultiply(...values)- Multiply valuesdivide(a, b)- Divide values
Unit Functions:
px(value)- Convert to pixelsrem(value)- Convert to rem unitsem(value)- Convert to em units
Custom Functions:
- Register custom functions via
TokenFunctions.register() - Support for custom logic and transformations
Token Expressions
Use mathematical expressions in token values:
- Basic operations:
+,-,*,/with parentheses grouping - CSS
calc()support for complex calculations - Token reference integration in expressions
- Automatic expression processing during token parsing
References with Fallbacks
Safe token references with fallback support:
- Syntax:
{token.path || fallback} - Multiple fallback levels:
{token.primary || {token.secondary} || #000000} - Type-safe fallbacks for strings, numbers, and references
- Automatic fallback resolution during token parsing
Token Scoping
Component-scoped tokens for isolated theming:
- Create scoped token sets with
TokenScoping.createScope() - Extract component tokens from global token sets
- Apply scope metadata for component isolation
- Namespace support for component-specific tokens
Theming API
Programmatic theme creation and management:
- Fluent builder pattern with
ThemeBuilder - Theme extension and overriding capabilities
- Variant creation from base themes
- Token addition via
addToken()andaddTokens()methods - Theme configuration generation with
createThemeConfig()
Validation Plugins
Custom validation rules for tokens:
- Plugin registration system via
ValidationPluginManager - Token-level validation with custom rules
- Global validation support for entire token sets
- Error reporting with detailed validation messages
Transformation Pipeline
Transform tokens before export:
- Chainable transformations with
TransformationPipeline - Built-in transformations:
flatten- Flatten nested token structuresexpandReferences- Expand token referencesremoveDeprecated- Remove deprecated tokensaddNamespace- Add namespace prefix to tokens
- Custom transformation steps for specific use cases
- Async transformation support for complex operations
🔌 New Integrations
Storybook Addon
Theme management directly in Storybook:
- Theme switcher in Storybook toolbar
- Token viewer panel for inspecting tokens
- Automatic theme initialization in stories
- Decorator support via
withTokiForge() - Parameter configuration for theme settings
Enhanced Figma Sync
Improved Figma integration with advanced features:
- Conflict resolution strategies (local, remote, merge)
- Sync status detection for added, modified, and removed tokens
- Better error handling with detailed error messages
- Token comparison with
FigmaDiffclass - JSON export for diff results
Design Tool Adapters
Support for popular design tools:
- Sketch adapter for export/import tokens
- Adobe XD adapter for design token sync
- Color style conversion between tools and TokiForge
- Plugin-ready architecture for design tool plugins
CMS Integration
Headless CMS support for token management:
- Contentful adapter with token fetching and watching
- Strapi adapter with push/pull capabilities
- Sanity adapter for Sanity CMS integration
- Custom adapter base class for creating your own CMS adapters
- Real-time token updates via watch mechanisms
Design System Tools
Integration with design system platforms:
- Zeroheight adapter for pushing/pulling tokens
- InVision DSM adapter for design system sync
- Sync with merge strategies for conflict resolution
- API integration for automated token synchronization
📚 Documentation Updates
- ✅ New guide: Performance Optimization - Learn about caching, lazy loading, and compression
- ✅ New guide: Accessibility Features - Complete guide to accessibility features
- ✅ New guide: Advanced Token Features - Deep dive into functions, expressions, and scoping
- ✅ New guide: Integrations - How to integrate with Storybook, Figma, CMS, and design tools
- ✅ Updated API documentation for all new features
- ✅ Updated examples with new feature demonstrations
🎯 Migration Guide
Upgrading from v1.1.2
-
Update dependencies:
npm install @tokiforge/core@^1.2.0 @tokiforge/react@^1.2.0
... update other packages as needed
- Enable new features (optional):t
const theme = new ThemeRuntime({
themes: [...],
performance: {
cache: { strategy: 'localStorage', ttl: 3600 },
loading: { source: '/tokens', lazy: true },
},
accessibility: {
highContrast: { autoDetect: true },
reducedMotion: { autoDetect: true },
},
}); - No breaking changes - All existing code continues to work!
- Enable new features (optional):t
📦 Package Updates
All packages have been updated to v1.2.0:
@tokiforge/core@1.2.0@tokiforge/react@1.2.0@tokiforge/vue@1.2.0@tokiforge/svelte@1.2.0@tokiforge/angular@1.2.0@tokiforge/tailwind@1.2.0@tokiforge/figma@1.2.0@tokiforge/storybook@1.2.0tokiforge-cli@1.2.0
🙏 Thank You
Thank you to all contributors and users who helped make this release possible!
Full Changelog: v1.1.2...v1.2.0
Documentation: https://tokiforge.dev
Installation: npm install @tokiforge/core
🚀 v1.1.2 - Package Export Standardization & TypeScript Fixes
This release standardizes all packages to use modern export patterns, fixes all TypeScript compilation errors, and ensures full compatibility with modern bundlers. All packages now have consistent exports, proper type definitions, and improved developer experience.
✨ Key Improvements
Package Exports Standardization
- ✅ Standardized all packages to use modern export pattern (
type: modulewith.cjs/.jsextensions) - ✅ Fixed Vue package exports configuration (removed redundant
defaultfield) - ✅ Fixed Angular package exports configuration (removed redundant
defaultfield and duplicatetypingsfield) - ✅ All packages now consistently export both CommonJS (
.cjs) and ESM (.js) formats - ✅ Improved compatibility with modern bundlers (Vite, Webpack 5+, Rollup)
TypeScript Fixes
- ✅ Fixed all 12 TypeScript compilation errors
- ✅ Added missing
generateReport()method toTokenAnalyticsclass - ✅ Added missing
exportJSON()method toFigmaDiffclass - ✅ Added missing
validateAliases()method toTokenParserclass - ✅ Added missing
getContrastRatio()method toColorUtilsclass - ✅ Added missing
generateReport()method toCICDValidatorclass - ✅ Fixed unused variables and imports
- ✅ Updated CLI commands with correct API methods and type annotations
Build System Improvements
- ✅ All packages build successfully
- ✅ Type definitions generated for all packages
- ✅ Source maps generated for better debugging
- ✅ Build configurations standardized across all packages
📦 Packages Updated
All packages updated to version 1.1.2:
@tokiforge/core@1.1.2@tokiforge/vue@1.1.2@tokiforge/react@1.1.2@tokiforge/svelte@1.1.2@tokiforge/angular@1.1.2@tokiforge/tailwind@1.1.2@tokiforge/figma@1.1.2tokiforge-cli@1.1.2
🔧 Technical Details
Export Structure
All packages now use:
"type": "module"for explicit ESM supportindex.cjsfor CommonJS exportsindex.jsfor ESM exports- Proper
exportsfield without redundantdefaultentries - Type definitions (
.d.ts) for full TypeScript support
🐛 Bug Fixes
- Fixed Vue package resolution errors caused by incorrect exports configuration
- Fixed Angular package resolution errors caused by redundant export fields
- Fixed TypeScript compilation errors in CLI commands
- Fixed missing method implementations in core package
- Fixed unused variables and imports
📚 Documentation
- Updated all documentation to reflect version 1.1.2
- Updated installation instructions
- Updated troubleshooting guide
- Updated API documentation
🚀 Migration
No migration required. This release is fully backward compatible.
📥 Installation
ash
npm install @tokiforge/core@1.1.2
npm install @tokiforge/vue@1.1.2
npm install @tokiforge/react@1.1.2
npm install @tokiforge/svelte@1.1.2
npm install @tokiforge/angular@1.1.2
npm install @tokiforge/tailwind@1.1.2
npm install @tokiforge/figma@1.1.2
npm install tokiforge-cli@1.1.2---
Full Changelog: v1.1.1...v1.1.2
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