Ollie Block Academy

Adding Customization Options

Adding Color Support With Default Controls

Color support provides text and background color controls through an empty object in the color section. WordPress assumes you want both controls when no specific configuration is provided.

Use experimental__defaultControls to specify which color options appear by default versus hidden in the options menu. This improves the user experience by surfacing the most commonly needed controls.

The color system integrates with theme color palettes automatically, providing users with theme-appropriate color choices while maintaining design consistency across the site.

Back to: Ollie Block Academy > Adding Customization Options