Upgrade Guide
This is the upgrade guide if you're going from 0.x to 1.x.
Installing
Run this command in your terminal:
Instantiation
In your main SCSS stylesheet, use the @use
at-rule to use the library.
Breaking Changes
Converters
Some of the converter functions have been removed and/or renamed.
The rem-to-px()
function has been removed. And this will not be added back in the future.
The px-to-rem()
function still exists, however upon using, it will throw a warning. This function will be removed in the future.
The aforementioned function has been replaced with the to-rem()
function.
Syntax Changes
Key Creation
When creating keys, you can now directly query a valid token using the key-create()
function. Unlike before, you had to use the token-get()
function (along with its namespace) (which can get pretty annoying to type at times), this shorter syntax is now available for you to use. No more carpal tunnel I guess?
Raw values in Keys
You can now query raw values in keys up to layer one.
New separator setting
You can now set a custom separator for all aspects of the design system: (tokens, keys, and breakpoints).
This greatly improves parity with the design system specifications, especially if your team prefers to use a different separator for token naming.