You need to sign in to do that
Don't have an account?
Nadia Gainsbourg 17
How to Reference Standard Design Tokens
I'm new to Lightning Design System and am trying to find concrete examples of how to apply standard design tokens from this guide: https://www.lightningdesignsystem.com/design-tokens/#category-font-size
I have a Lightning Component, but it's unclear how to reference them.
Would appreciate any help!
I have a Lightning Component, but it's unclear how to reference them.
Would appreciate any help!
.THIS {
font-size:token($font-size-10);
}
It doesn't work. It says there's no such token. I don't get it, because this token is taken directly from the official guide.
Here is the steps to use token first time
1. First you have to create a tokon with the name of 'DefaultTokens'
2. Second create the token in your default tokens like
DefaultTokens.tokens
3. Now use the token in your component
Please test and let me know
Thanks