Overview
Design tokens are parameters that affect all UI look 'n' feel and they are the main configuration file of a Theme. Component-specific tokens often inherit from global tokens but are named specifically to apply those tokens in component development.
Global Tokens
FastStore uses a default theme called Brandless, which provides structural styles for your components and pages. Please read Brandless's page to further information about the themeable architecture.
Its presets are defined on src/base/tokens.scss in @faststore/ui (opens in a new tab) and it's separated in these main areas:
- Colors- The store palette with all the tones needed. See more
- Typography- A standard scale and basic definitions for your text: - font family,- weightand- sizes.See more
- Spacing- All tokens used for spacings on the store: - padding,- marginsand- sizes. It's also used as base for grid tokens.See more
- Grid & Layout- Padding,- Container,- Gapsand- Breakpointsdefinitions.See more
- Interactive Controls- Tap,- Statesand- Sizingdefinitions.See more
- Refinements- Transition,- Bordersand- Shadowdefinitions.See more