Skip to content

v1.0.10

Choose a tag to compare

@beartropy-legacy beartropy-legacy released this 23 Feb 22:17
· 13 commits to main since this release

Added

  • ToggleTheme: @beartropyHtmlClass Blade directive — reads a bt_theme cookie server-side and renders the dark class on <html> for zero-FOUC on first paint.
  • ToggleTheme: Theme preference is now persisted to a bt_theme cookie alongside localStorage, enabling server-side rendering.

Fixed

  • ToggleTheme: Eliminated dark-mode FOUC on wire:navigate by adding data-navigate-once to all @BeartropyAssets head elements, preventing Livewire from removing and re-adding the stylesheet during navigation.
  • ToggleTheme: Added inline <style> with color-scheme CSS rules so native form controls (inputs, selects) respect dark mode without waiting for JS.