Skip to content

Spacing & Effects

Layout rhythm, corner shapes, and depth — the visual building blocks that give the system its feel.

Border Radius

Seven radius tokens shape everything from subtle input rounding to fully circular avatars.

XXS1px
XS2px
S3px
M4px
L5px
XL6px
Full999px

Spacing Scale

All spacing is built on a 4 px grid. These tokens control padding, margins, and gaps throughout the system.

XXS2px
XS4px
S8px
M16px
L24px
XL32px
XXL48px
XXXL64px

Stroke Width

Border thickness for dividers, outlines, and component borders.

TokenValueUse case
--coar-stroke-width-xs0.5 pxHairline dividers
--coar-stroke-width-s1 pxDefault borders
--coar-stroke-width-m2 pxEmphasis borders
--coar-stroke-width-l4 pxHeavy accents

Shadows & Elevation

Six shadow levels create the illusion of depth. The shadow is the demo — notice how each card lifts further off the surface.

XSHover states
SCards
MDropdowns
LModals
XLOverlays
FocusFocus ring

Token Reference

Spacing

TokenValueUsage
--coar-spacing-xxs2 pxTight inner gaps
--coar-spacing-xs4 pxSmall padding, icon gaps
--coar-spacing-s8 pxCompact padding, list gaps
--coar-spacing-m16 pxDefault padding and gaps
--coar-spacing-l24 pxSection padding
--coar-spacing-xl32 pxLarge section gaps
--coar-spacing-xxl48 pxPage-level spacing
--coar-spacing-xxxl64 pxHero / splash spacing

Border Radius

TokenValue
--coar-radius-xxs1 px
--coar-radius-xs2 px
--coar-radius-s3 px
--coar-radius-m4 px
--coar-radius-l5 px
--coar-radius-xl6 px
--coar-radius-full999 px

Shadows

TokenUsage
--coar-shadow-xsSubtle lift for hover states
--coar-shadow-sCards and raised elements
--coar-shadow-mDropdowns and popovers
--coar-shadow-lModals and dialogs
--coar-shadow-xlElevated overlays
--coar-shadow-focusKeyboard focus ring

Released under the Apache-2.0 License.