Anta design system

Colors

Background

These tokens define how surfaces are structured and layered across the interface. They help create visual hierarchy and guide the user’s attention.

Light theme
bg-base-success#f7fcf9
bg-section#ffffff
bg-pane-success#ecf9f0
bg-block-success#e2f5e8
bg-spot-success#d9f2e0
Dark theme
bg-base-success#05140a
bg-section#171519
bg-pane-success#081f0f
bg-block-success#0c2814
bg-spot-success#0d2b16

bg-base is the main background color for the page. Use it for large surfaces and overall layouts.

bg-section is used for secondary areas, such as side navigation or grouped sections. It helps separate content without adding too much contrast.

bg-pane is used for blocks that need stronger emphasis, such as cards, panels, or highlighted content.

bg-block and bg-spot are darker background variations. Their use cases are still exploratory.

Illustration

Text

These tokens define how text is presented across the interface. They help establish hierarchy, readability, and consistent contrast.

Light theme
Aa
text-1-success#004618
Aa
text-2-success#1f5c31
Aa
text-3-success#1f5c31cc
Aa
text-4-success#1f5c3199
Aa
text-5-success#1f5c3166
Dark theme
Aa
text-1-success#9ddeb1
Aa
text-2-success#74cd8e
Aa
text-3-success#74cd8ecc
Aa
text-4-success#74cd8e99
Aa
text-5-success#74cd8e66

text-1 — Primary text, for headings and key content.

text-2 — Secondary text, for descriptions and supporting content.

text-3 — Subdued text, for labels, statuses and secondary data.

text-4 — Minor text, for timestamps, counters and metadata.

text-5 — Placeholder text, for hints and non-critical information.

Border

These tokens define how borders are used to separate, group, and structure elements across the interface.

Light theme
border-1-success#44c169
border-2-success#88d7a0
border-3-success#b3e5c2
border-4-success#c6ecd1
border-5-success#d9f2e0
Dark theme
border-1-success#329550
border-2-success#226737
border-3-success#1f5c31
border-4-success#12391e
border-5-success#0f321a

Border colors are used depending on how much separation is needed and the background they appear on.

border-1 and border-2 are used when a container needs to be clearly defined or when separating elements on stronger backgrounds such as bg-block and bg-spot.

border-3 sits in the middle. It provides a moderate level of contrast, useful when a boundary should be visible but not dominant.

border-4 is used to separate bg-base and bg-pane, providing a slightly stronger level of contrast.

border-5 is used on lighter surfaces. It works well between bg-base and bg-section, often appearing in spacing areas to subtly define boundaries.