Skip to content
KodeKarsa

Design systemFoundations

Shape and surface

Corners soften from the inside out, and surfaces separate layers without heavy borders.

Sourcesrc/styles/app.css

rounded-full9999px
rounded-tile20px
rounded-panel24px
rounded-card28px
surface

Cards. Flat in dark, white with a soft shadow in light.

glass

Floating chrome: header, popups, menus.

bg-panel

Flat fills such as pills and soft buttons.

bg-inset

Chips and fields that sit on a card.

Guidelines

Do

  • Use a smaller radius for elements inside a card.
  • Use glass only for chrome that floats over content.

Don't

  • Write rounded-[28px]; use rounded-card.
  • Nest cards inside cards inside cards.

Accessibility

  • In high contrast mode, surfaces stay separated by edges, not shadow alone.