Skip to content
Theme
endue.ai

Components, Surfaces

Card

A surface for one standalone object, with a raised variant for things that float.

Name in code Card

default

One standalone object. Radius 12, 1px border, no shadow.

inset: a section inside a card (radius 8)

raised New

A surface that floats above content. Only for the composer and approval requests.

interactive

A soft surface and a shadow on hover, a ring on focus.

The card is the surface for cards and panels. Use it for one standalone object, and use raised only for things that float above content.

When to use

Ask first: is this block something you can pick up on its own? If the answer is no, it is not a card. Group it with a heading and spacing, and divide the rows with List.

variant Surface Use
default card, corner radius 12, 1px border One standalone object (a plan, a connected tool)
inset background, corner radius 8 A section inside a card
raised card, corner radius 12, 1px border, shadow-sm A floating surface (the composer, an approval request)
  • raised is only for things that float above content, such as the composer and the approval request.
  • Lists and sections use List (rows divided by a hairline) in place of a card.
  • In light, the page and the card are both white. Only the border sets the card apart.
  • There is no tinted variant.
  • padding is none, md or lg. interactive shows a soft surface and a shadow on hover, and a ring on focus.

Markup

<div class="Card_card Card_card--default Card_card--pad-md">…</div>
<div class="Card_card Card_card--raised Card_card--pad-md">…</div>

Don’t

  • Don’t put a shadow on default. Shadow belongs to raised and to hover.
  • Don’t wrap each row of a list in a card.
  • Don’t put a card inside a card. The inner surface is inset.