Card

Component

Card

A quiet panel. Add squish when it should press.

Classes

ClassType
cardComponentThe panel. A plain card is white.
card-smSizeSmall.
card-lgSizeLarge.
primaryColorA tint. A plain card is white.
secondaryColorPink by default.
tertiaryColorTeal by default.
neutralColorGray by default.
successColorGreen by default.
errorColorRed by default.
warningColorAmber by default.
infoColorSky by default.
squishStateAdds the press to the card.

Plain

Studio notes

A white jelly panel.

<section class="card">
  <h3>Studio notes</h3>
  <p>A white jelly panel.</p>
</section>

Colors

Primary

Secondary

Tertiary

Neutral

Success

Error

Warning

Info

<section class="card primary">
  <h3>Primary</h3>
</section>
<section class="card secondary">
  <h3>Secondary</h3>
</section>
<section class="card tertiary">
  <h3>Tertiary</h3>
</section>
<section class="card neutral">
  <h3>Neutral</h3>
</section>
<section class="card success">
  <h3>Success</h3>
</section>
<section class="card error">
  <h3>Error</h3>
</section>
<section class="card warning">
  <h3>Warning</h3>
</section>
<section class="card info">
  <h3>Info</h3>
</section>

Sizes

The sizes change the type as well as the padding: 14px, 16px, and 20px.

Small

Regular

Large

<section class="card card-sm"><h3>Small</h3></section>
<section class="card"><h3>Regular</h3></section>
<section class="card card-lg"><h3>Large</h3></section>