WordPress
Labels in the WordPress backend use pixel values for easier visualization. In code, the variables are noted in relative rem units and numbered sequentially so they can be easily adjusted and extended.
0px
--wp--preset--border-radius--0
2px
--wp--preset--border-radius--1
4px
--wp--preset--border-radius--2
8px
--wp--preset--border-radius--3
12px
--wp--preset--border-radius--4
16px
--wp--preset--border-radius--5
24px
--wp--preset--border-radius--6
32px
--wp--preset--border-radius--7
Infinite
--wp--preset--border-radius--infinite
Nested Border Radius
Figma
Usage
| Token | Use |
|---|---|
0 | No rounding: media that sit edge to edge, as in the seamless gallery |
1 | Reserved for fine details; currently unused |
2 | Form fields and controls: inputs, selects, form buttons |
3 | Small elements inside components: header menus, submenus, the header search, shop badges |
4 | Surfaces: boxes, images, featured images, media and text, product images |
5, 6 and 7 | Reserved for large surfaces; currently unused |
infinite | Fully rounded: buttons, the search field, avatars |