Radii

Learn how to utilize and tailor corner radii in Design Blocks to enhance the aesthetics and visual coherence of your project.


Use the radii key in the extendTokens section of your blocks.config.ts file to extend the default radii values.

ts
const [lightThemeTokens] = createTokens({
  theme: {
    extendTokens: {
      radii: {
        // Configure your radii here
      },
    },
  },
});

Overriding the default radii

if you’d like to override the default radii, you can do so using the theme.tokens.radii section of your blocks.config.ts file:

ts
const [lightThemeTokens] = createTokens({
  theme: {
    tokens: {
      radii: {
        base: 8,
        sm: 4,
        md: 10,
      },
    },
  },
});

Radii tokens

Design Blocks ships with the following radii tokens by default:

NameValue
none0
base4
sm2
md6
lg8
xl12
2xl16
3xl20
4xl24
5xl28
full9999