Changelog
Every release of nuxt-penumbra, newest first.
The current version is 1.0.0. This page is copied from packages/nuxt-penumbra/CHANGELOG.md at build time, the same file that ships in the npm package.
All notable changes to this project are documented here. The format follows Keep a Changelog, and the project follows Semantic Versioning.
[Unreleased]
[1.0.0]
Added
- Color-mode mode: animates changes to
@nuxtjs/color-mode’spreferenceand never stores a theme itself. Chosen automatically when@nuxtjs/color-modeis installed. - Standalone mode: a small built-in theme store for apps without
@nuxtjs/color-mode. It keeps the visitor’s choice inlocalStorage, followsprefers-color-schemeand other tabs, and sets adata-*attribute or a class on<html>. An inline head script applies the theme before first paint. usePenumbra():theme,preference,themes,setThemeandtoggleTheme, with per-calltransition,duration,easing,directionandoriginoptions.<PenumbraToggle>: a real button whose accessible name states the current and next theme, with a scoped slot, forced-colors styles and per-instancethemes,transition,duration,easinganddirection.definePenumbraTransition()to register a custom effect.- 30 View Transitions effects from
@penumbra/core, an instant fallback wheredocument.startViewTransitionis missing. - Nuxt UI support without wrappers: Nuxt UI’s color mode is animated as it is.
- A navigation guard, so a theme change made while a page transition runs does not collide with it.
- Reduced-motion handling: with
prefers-reduced-motion: reducethe theme changes without an effect. - Module options:
mode,themes,transition,duration,easing, and in standalone modedefault,attributeandstorageKey, validated at build time.