Newer Version Available

This content describes an older version of this product. View Latest

Create a Tokens Bundle

Create a tokens bundle in your org using the Developer Console.

To create a tokens bundle:

  1. In the Developer Console, select File | New | Lightning Tokens.
  2. Enter a name for the tokens bundle.
    In this developer preview of tokens, you can only create one tokens bundle, and the only allowed bundle name is defaultTokens. The tokens defined within it are automatically accessible in your Lightning components.
You have an empty tokens bundle, ready to edit.
1<aura:tokens>
2
3</aura:tokens>

In this developer preview of Lightning tokens, you can’t edit the tokens bundle name or description in the Developer Console after you create it. The bundle’s AuraBundleDefinition can be modified using the Metadata API. Although you can set a version on a tokens bundle, doing so has no effect.

Note