MMM options widely accept CSS variables to sync with Block Theme Style / Presets
-
Proposal: It would be cool if most MMM customization fields (colors, dimensions) would accept CSS variables.
Advantages: Keep the menu style in sync with the block theme and its presets/customizations and reduce the maintenance/adaptation effort drastically. Very quickly try out or switch between block-themes or preset-styles of a block theme and MMM visually adapts in an instant!
- Dimensions: For Menu Padding Top, I’d like to set
var(--wp--style--root--padding-top)
and in the theme styles--wp--style--root--padding-top
can point either to a preset variable like--wp--preset--spacing--40
or a customized value like4px
. Whenever I change the theme paddings, MMM adapts instantly. - Colors: If a theme has color variables like
--color-menu
or--color-menu-subitem
which are 100% intended to be used for menus or variables like--color-primary
or--color-secondary
or--color-primary-opposite
which are also more/less suited, then again MMM fits into the theme’s color scheme in an instant!
- Dimensions: For Menu Padding Top, I’d like to set
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘MMM options widely accept CSS variables to sync with Block Theme Style / Presets’ is closed to new replies.