Card

Component

Card

A quiet panel. Add squish when it should press.

Import jellyfy/card.css with jellyfy/material.css and jellyfy/motion.css. Or import jellyfy/jellyfy.css, which already includes this file and every other component.

Classes

ClassType
cardComponentThe panel. With no color class, the card stays plain.
card-smSizeSmall size
card-mdSizeMedium size (default)
card-lgSizeLarge size
primaryColorA wash of this solid. The text is the surface content color. With no color class, the card stays plain.
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 plain 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

Medium

Large

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