Newer Version Available
Styling with Design Tokens and Styling Hooks
Capture the essential values of your visual design into named tokens
or global styling hooks. Reuse these values throughout your Lightning components CSS
resources. Tokens and styling hooks make it easy to ensure that your design is consistent, and
even easier to update your design as it evolves.
Design tokens and styling hooks are visual design “atoms” for building a design for your components or apps. Specifically, they’re named entities that store visual design attributes: pixel values for margins and spacing, font sizes and families, or hex values for colors. Both design tokens and styling hooks are a terrific way to centralize the low-level values, which you then use to compose the styles that make up the design of your component or app.