Figma
How the Figma file maps to the tokens and components in code.
The Figma file and the code share the same names. If you can find a variable or component in Figma, you can find it in the CSS or the React package under the same name.
Variables
Figma variables use slash-separated names such as bg/surface and accent/default. In CSS the slash becomes a hyphen and the name gets the --aloxe- prefix: --aloxe-bg-surface, --aloxe-accent-default.
The Color page lists every variable with its CSS name and its Light and Dark values.
Modes
The file has a Light and a Dark mode for colour and elevation, and a brand collection for Cobalt, Ember and Moss. In code these are the data-theme and data-brand attributes. See Theming.
Components
Each component in the catalog records the Figma component name it matches. Variants in Figma correspond to props in React: for example the Button variant and size props.
Where to get the file
The Core file is meant for Figma Community. The Community link is not published yet, so this page will point to it once it is. The Pro file is delivered with a Pro license.