gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Add size presets as an optional size units

Open EricDu opened this issue 3 years ago • 0 comments

What problem does this address?

The current size options are px, %, em, rem, vh and vw. In some cases, I would like to be able to use a measurement that matches my preset sizes, like border-width: var(--wp--preset--spacing--50).

What is your proposed solution?

Add a "PRESET" option to the list of units and, when selected, an option to select the size like you can for padding and margin.

EricDu avatar Aug 10 '23 14:08 EricDu