Newer Version Available
Using Standard Design Tokens
Salesforce exposes a set of “base” tokens that you can access in your component style
resources. Use these standard tokens to mimic the look-and-feel of the Salesforce Lightning
Design System (SLDS) in your own custom components.
Once added to defaultTokens (or another tokens bundle
that defaultTokens extends) you can reference tokens from
force:base just like your own tokens, using the token() function and token name. For
example:
You can mix-and-match your tokens with the standard tokens. It’s a best practice to develop a naming system for your own tokens to make them easily distinguishable from standard tokens. Consider prefixing your token names with “my”, or something else easily identifiable.