Skip to content

4wpdev/4wp-style-switcher

Repository files navigation

4WP Style Switcher — theme.json style variations for FSE block themes

4WP Style Switcher

Apply theme.json style variations per page, let visitors switch styles on the frontend, and add a Light/Dark toggle to the navigation menu (FSE block themes).

4WP Style Switcher

Demo

Watch the 4WP Style Switcher demo on YouTube

Try it in WordPress Playground

Open live demo →

Setting Value
Theme Twenty Twenty-Five
Allowed variations Morning, Afternoon, Evening
Default style Morning
Light / Dark Morning ↔ Midnight
Frontend switcher On (bottom right)
Menu Light/Dark block in navigation

Requirements

  • WordPress 6.4+
  • Block theme with style variations in /styles/

Development

cd wp-content/plugins/4wp-style-switcher
composer install
composer test

Links

License

GPL-2.0-or-later — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors