Repository navigation
v2.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.