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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Canvas Kit v10, we will be deprecating
spaceNumberswhich mapped to pixel values in favor of ourrembasedspacetokens.The table below shows the deprecated values:
spaceNumberspixel valuespaceNumberstokenHow to use
spacetoken instead of deprecatedspaceNumbersspacetoken maps to toremvalues,spacetoken rem valuespacetokenNote: The value of
spaceis a string. In most cases you can just use this value for styling.Example using
spacewith CSS Calc instead of deprecatedspaceNumbers.This will be important to keep in mind if you're using
spaceNumberswith calculations currently and then post migration torem.Beta Was this translation helpful? Give feedback.
All reactions