Skip to content
Discussion options

You must be logged in to vote

You can use the --spacing() helper function:

.my-element {
  width: --spacing(60);
}

V4 changed how some of these utilities work, opting to have an infinite spacing scale rather than set values. Thus, in this new system, var(--spacing) is multiplied to give the equivalents of the spacing values in v3.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LanFeusT23
Comment options

Answer selected by LanFeusT23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants