Tokens

Colors

Sprkl uses Neutral, Primary, Accent and Semantic (Success, Warning, Error and Info) scales. There's no need to use nor customize all colors. You can start by adding components to your layout and changing the swatches for this specific components.

Background colors

To style elements you can use related class to a specific color. All background color classes looks like BGC Primary-900, where BGC=BackgroundColor Primary=ColorGroup and 900=ColorLevel. Below you can see all text color classes available in the system.

Primary

Primary colors appears most frequently across the website and components. They used for important actions, components, blocks, etc. You can create more complex color schemes by adding accent color.

BGC Primary-900
BGC Primary-800
BGC Primary-700
BGC Primary-600
BGC Primary-500
BGC Primary-400
BGC Primary-300
BGC Primary-200
BGC Primary-100
BGC Primary-50
Accent
BGC Accent-900
BGC Accent-800
BGC Accent-700
BGC Accent-600
BGC Accent-500
BGC Accent-400
BGC Accent-300
BGC Accent-200
BGC Accent-100
BGC Accent-50
Neutrals

Neutral colors are mainly used for the interface elements such as texts, dividers, borders and neutral backgrounds.

BGC Neutrals-900
BGC Neutrals-800
BGC Neutrals-700
BGC Neutrals-600
BGC Neutrals-500
BGC Neutrals-400
BGC Neutrals-300
BGC Neutrals-200
BGC Neutrals-100
BGC Neutrals-50

Semantic

Semantic colors used to provide visual feedback on users input such as errors, warnings, information messages, success messages etc. Important note that you can use those colors in any other cases.

Error
BGC Error-900
BGC Error-800
BGC Error-700
BGC Error-600
BGC Error-500
BGC Error-400
BGC Error-300
BGC Error-200
BGC Error-100
BGC Error-50
Warning
BGC Warning-900
BGC Warning-800
BGC Warning-700
BGC Warning-600
BGC Warning-500
BGC Warning-400
BGC Warning-300
BGC Warning-200
BGC Warning-100
BGC Warning-50
Success
BGC Success-900
BGC Success-800
BGC Success-700
BGC Success-600
BGC Success-500
BGC Success-400
BGC Success-300
BGC Success-200
BGC Success-100
BGC Success-50
Info
BGC Info-900
BGC Info-800
BGC Info-700
BGC Info-600
BGC Info-500
BGC Info-400
BGC Info-300
BGC Info-200
BGC Info-100
BGC Info-50

Black & White

Black and white color scales moved to a separate group, but also could be used for interface elements such as texts, dividers, borders and neutral backgrounds.

Black
BGC Black-100
BGC Black-88
BGC Black-80
BGC Black-72
BGC Black-64
BGC Black-56
BGC Black-48
BGC Black-40
BGC Black-32
BGC Black-24
BGC Black-16
BGC Black-8
BGC Black-4
White
BGC White-100
BGC White-88
BGC White-80
BGC White-72
BGC White-64
BGC White-56
BGC White-48
BGC White-40
BGC White-32
BGC White-24
BGC White-16
BGC White-8

Text colors

To style text elements you can use related class to a specific color. All text color classes looks like TC Primary-900, where TC=TextColor Primary=ColorGroup and 900=ColorLevel. Below you can see all text color classes available in the system.

Primary
TC Primary-900
TC Primary-800
TC Primary-700
TC Primary-600
TC Primary-500
TC Primary-400
TC Primary-300
TC Primary-200
TC Primary-100
TC Primary-50
Accent
TC Accent-900
TC Accent-800
TC Accent-700
TC Accent-600
TC Accent-500
TC Accent-400
TC Accent-300
TC Accent-200
TC Accent-100
TC Accent-50
Neutrals
TC Neutrals-900
TC Neutrals-800
TC Neutrals-700
TC Neutrals-600
TC Neutrals-500
TC Neutrals-400
TC Neutrals-300
TC Neutrals-200
TC Neutrals-100
TC Neutrals-50
Error
TC Error-900
TC Error-800
TC Error-700
TC Error-600
TC Error-500
TC Error-400
TC Error-300
TC Error-200
TC Error-100
TC Error-50
Warning
TC Warning-900
TC Warning-800
TC Warning-700
TC Warning-600
TC Warning-500
TC Warning-400
TC Warning-300
TC Warning-200
TC Warning-100
TC Warning-50
Success
TC Success-900
TC Success-800
TC Success-700
TC Success-600
TC Success-500
TC Success-400
TC Success-300
TC Success-200
TC Success-100
TC Success-50
Info
TC Info-900
TC Info-800
TC Info-700
TC Info-600
TC Info-500
TC Info-400
TC Info-300
TC Info-200
TC Info-100
TC Info-50
White
TC White-100
TC White-88
TC White-80
TC White-72
TC White-64
TC White-56
TC White-48
TC White-40
TC White-32
TC White-24
TC White-16
TC White-8