Semantic Base Colors
Each semantic token has a base hex value. All six tokens support the full shade ramp described below.| Token | Class Prefix | Base Hex |
|---|---|---|
| Primary | .{type}-primary | #0740f9 |
| Secondary | .{type}-secondary | #aaebfd |
| Neutral | .{type}-neutral | #6b7280 |
| Success | .{type}-success | #3DC13C |
| Warning | .{type}-warning | #F4BB1B |
| Error | .{type}-error | #F13737 |
{type} with text, background, or border depending on which property you need to set.
The 11-Step Shade Ramp
Every semantic token supports eleven steps: five lighter shades, the base, and five darker shades. The ramp suffix follows this pattern:| Suffix | Direction |
|---|---|
-l-5 | Lightest |
-l-4 | Lighter |
-l-3 | Light |
-l-2 | Slightly light |
-l-1 | Just above base |
| (none) | Base |
-d-1 | Just below base |
-d-2 | Slightly dark |
-d-3 | Dark |
-d-4 | Darker |
-d-5 | Darkest |
.background-primary is the base blue, while .background-primary-l-3 gives you a lighter mid-tint and .background-primary-d-2 steps into a deeper shade.
Using Shade Variants
Apply a shade suffix whenever the base token is too saturated or too light for your context. A common pattern is using a light tint for a section background and the base token for a prominent call-to-action inside it.Structural Grays
Alongside the semantic tokens, AtomicKit includes fixed gray values for typography hierarchy and neutral surfaces. These are available across text, background, and border utilities:- white / black — absolute extremes for high-contrast needs
- gray-dark (
#374151) — primary body text - gray (
#6b7280) — secondary text, captions - gray-light — muted text (
#9ca3affor text;#f3f4f6for backgrounds;#e5e7ebfor borders)
The
text-gray-* classes are intended for typographic hierarchy tiers and are fixed values. The text-neutral class and its shade variants follow the full 11-step semantic ramp and are better suited when you need programmatic shade stepping.Accessibility
Color Utility Categories
Text Colors
Set
color on headings, body copy, links, and status labels using .text-* classes.Background Colors
Fill sections, cards, and panels with
.background-* classes across the full palette.Border Colors
Apply
.border-* color classes alongside width and style utilities for complete borders.