Migrating from px
to rem
#2343
josh-bagwell
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Canvas Kit v10, we will be deprecating
spaceNumbers
which mapped to pixel values in favor of ourrem
basedspace
tokens.The table below shows the deprecated values:
spaceNumbers
pixel valuespaceNumbers
tokenHow to use
space
token instead of deprecatedspaceNumbers
space
token maps to torem
values,space
token rem valuespace
tokenNote: The value of
space
is a string. In most cases you can just use this value for styling.Example using
space
with CSS Calc instead of deprecatedspaceNumbers
.This will be important to keep in mind if you're using
spaceNumbers
with calculations currently and then post migration torem
.Beta Was this translation helpful? Give feedback.
All reactions