Note: This README was generated using AI (Anthropic's Claude) via Cursor Composer.
A highly experimental WordPress plugin that allows visitors to switch between block theme style variations on the frontend. This plugin was created entirely using AI prompts with Cursor Composer as a proof of concept.
Style Variation Switcher adds a floating color palette switcher to your WordPress site, allowing visitors to preview and switch between different color variations of your block theme. It's specifically designed to work with theme.json style variations, focusing on color-only variations.
- Floating color palette switcher UI
- Automatically detects and displays color-only variations
- Shows preview swatches using theme colors
- Accessible design with screen reader support
- Automatic font preloading for variations
- Clean, minimal interface
- Built for WordPress block themes using theme.json
- Uses WordPress Theme JSON Resolver API
- Follows WordPress coding standards
- Built with vanilla JavaScript and jQuery
- Fully responsive design
- WordPress 6.0 or higher
- A block theme with style variations
- PHP 7.4 or higher
- Upload the plugin files to
/wp-content/plugins/style-variation-switcher
- Activate the plugin through the WordPress plugins screen
- Your theme must have style variations defined in theme.json
Once activated, the plugin automatically adds a floating color switcher to your site. The switcher will only show variations that are color-only (no typography or other styling changes).
This plugin was created as an experimental proof of concept using AI-assisted development:
- Developed entirely using Cursor Composer prompts
- Built iteratively through AI conversation
- Focused on WordPress best practices and coding standards
- Demonstrates potential of AI-assisted WordPress development
As this is a proof of concept:
- Only works with block themes
- Only shows color-only variations
- Minimal configuration options
- May not work with all theme structures
- Experimental and not recommended for production use
- Created using Cursor Composer AI
- Developed by Nick Diego
- Inspired by WordPress style variation system
GPL v2 or later
This is an experimental plugin created as a proof of concept. It is not recommended for production use without thorough testing and validation.