border-color property on any Elementor element. Because border-color alone won’t render a visible border, you must always combine a .border-* color class with a border-width utility and a border-style utility — for example, border-1 border-solid border-gray. AtomicKit provides structural grays for everyday dividers and outlines, plus six semantic tokens for status-aware and brand borders.
Available Border Color Classes
| Class | Hex |
|---|---|
.border-white | #ffffff |
.border-black | #000000 |
.border-gray | #6b7280 |
.border-gray-light | #e5e7eb |
.border-primary | #0740f9 |
.border-secondary | #aaebfd |
.border-neutral | #6b7280 |
.border-success | #3DC13C |
.border-warning | #F4BB1B |
.border-error | #F13737 |
Border color utilities only affect
border-color. A visible border also requires a width (e.g., border-1) and a style (e.g., border-solid). Always apply all three.Complete Border Examples
Pair the color class with width and style utilities to produce a fully rendered border. The examples below show common patterns from subtle dividers to semantic status outlines.Using Shade Variants
Append-l-1 through -l-5 or -d-1 through -d-5 to any semantic token to adjust the border intensity. Lighter shades work well for subtle tinted outlines; darker shades add emphasis or simulate a deeper edge.
Best Practices
- Always include width and style. A color class alone does nothing — every border element needs
border-{width},border-{style}, andborder-{color}together. - Use
.border-gray-lightfor soft dividers. On white or gray-light backgrounds,border-gray-lightcreates a subtle structural edge that doesn’t compete with content. Reach for.border-grayor.border-blackwhen the border needs to read clearly at a glance. - Match semantic border colors to their status context. A
.border-erroroutline on an input field reinforces the validation failure; using it for decoration dilutes the signal and confuses users. - On dark or colored backgrounds, use white or a light shade variant. A
.border-gray-lightborder disappears on a dark surface — switch to.border-whiteor a light semantic shade (e.g.,.border-primary-l-4) to keep the edge visible.
Related
Background Colors
Combine border colors with background fills for complete card and panel styles.
Text Colors
Coordinate border and text colors from the same semantic token for cohesive status components.