Skip to main content
Nexus Design System
GitHub

Radius, borders & shadows

Corner radius, border width and shadow are three separate theme fields. Change corners (Radius in the theme picker), stroke (Border Width) or elevation (Shadow), and the matching examples update.

Radius

nxds has nine radius utilities. Eight follow corners. full is always 9999px.

base
sm
md
lg
xl
2xl
3xl
4xl
full
Modemd value (px)
square0
subtle4
smooth8
round12
extra-round16

Border widths

Each stroke mode sets three widths: thin, default and thick. The sample box after the table uses --nx-borderwidth-thick, so it changes with stroke.

Modethin (px)default (px)thick (px)
normal0.512
fine0.50.51
strong123
border-width: var(--nx-borderwidth-thick)

Shadows

nxds has seven shadow levels and an inset shadow. All of them follow elevation. Light and dark mode have separate shadows, because a light-mode shadow disappears on a dark background.

2xs
xs
sm
base
lg
xl
2xl
inner