Radius

One base radius, and steps a few pixels either side of it. Change --radius and every corner on the ramp follows; the steps below the ramp and the section's lip hold their own size.

Base

  • --radius

    Every step on the ramp is made from it

Steps

Read off each class, since Tailwind writes the step into the class itself.

  • .rounded-4xs

    A message bubble's corner by its sender's avatar

  • .rounded-3xs

    Below the ramp: a group card's cover strip, a key cap

  • .rounded-2xs

    Below the ramp: a 28px chat thumbnail

  • .rounded-xs

    The base less 6px

  • .rounded-sm

    The base less 4px

  • .rounded-md

    The base less 2px

  • .rounded-lg

    The base

  • .rounded-xl

    The base plus 4px

  • .rounded-2xl

    The base plus 8px

  • .rounded-3xl

    The base plus 12px

  • .rounded-4xl

    The base plus 16px: a phone frame

  • .rounded-5xl

    The base plus 24px: a diagram chip, the dynamic island

  • .rounded-6xl

    The base plus 40px: a chip's tall icon box

  • .rounded-screen

    A phone's screen inside its 4xl frame, less the bezel

  • .rounded-section

    The lip where one full-bleed section rides over the next, by the viewport

  • .rounded-section-md

    The same lip from md up

  • .rounded-full

    Pills, avatars and round buttons