Project docsneobrutal-ui

Design tokens

The color, type, border, radius, and shadow variables shared by every component.

On this page5 sectionsBack to top

The base registry item defines the visual contract used by every component. Tokens are plain CSS variables, so they can be changed without replacing component source.

#Core colors

TokenPurpose
--backgroundPage and canvas background
--secondary-backgroundInputs, panels, and contrasting surfaces
--foregroundDefault text and icon color
--mainPrimary accent and selected state
--main-foregroundContent displayed on the main accent
--borderOutlines and hard-shadow color

#Shape and depth

  • --radius-base controls the shared component corner radius.
  • --box-shadow-x and --box-shadow-y control hard-shadow direction and depth.
  • --shadow combines those values into the standard raised surface shadow.
  • Pressed controls translate by the shadow distance and reduce the shadow to its final edge.
  • --font-weight-base and --font-weight-heading keep body and heading weight consistent.

#Extended tokens

The base item also defines chart colors, sidebar colors, destructive states, focus rings, and light and dark theme values. Components consume semantic names instead of hard-coded palette values.

#Customize

Use the Styling tool to change the palette, radius, and shadow direction and copy the generated CSS into your project.

#Design handoff

The registry CSS is the current source of truth. A design kit will be linked only when it mirrors the shipped tokens and is maintained alongside component changes.