Blocks Design System

Reset

styles.css only defines tokens and component classes; it never restyles your elements. The global reset is opt-in.

tsx
import '@blocks/design-system/styles.css'
import '@blocks/design-system/reset.css'

It sets:

  • box-sizing: border-box on every element.
  • The body’s margin, font, line height and colors from the tokens.
  • The monospace font on code, kbd, pre and samp.
  • A visible keyboard focus outline in the focus-ring color on every focusable element.
  • Under prefers-reduced-motion: reduce, animations and transitions collapse to --ds-duration-instant, and smooth scrolling is turned off.

Components keep their own essential focus treatment, so they stay accessible in an app that doesn’t load the reset. The reset demo loads it with Geist.