Skip to main content
Question

Check design: using the right token for dimensions

  • May 29, 2026
  • 1 reply
  • 33 views

Cheikh_Ahmadou_Bamba_Ndiaye

Currently check designs suggests the wrong tokens even though I have explicit names for tokens.

For example, it tells me I’m using a hardcoded value for a horizontal or vertical gap, fine, but it suggests a border radius token or border width token. Meanwhile, I have tokens called “spacing” that could be suggested.

Same thing for corner radius adjustments, it suggests border widths even though I have border radius tokens.

Is there a way to configure this if we can’t get the “smart” version yet?

Thanks ! :)

 

ps: the feature is really nice by the way and already saves a ton of time !

 

1 reply

flauridsen
  • New Participant
  • June 12, 2026

Have you scoped your token variables? I think this helps the check design feature not suggest width values for border-radius (and similar) if set up correctly. It also works for colors and strings.

 

In your variable list there’s a small Edit button that shows in the right side when you hover over the variable. If you click it you can choose what content your variable can be used for.

 

Here’s an example for border-radius: