Layout
Card
Cards are surfaces that display content and actions for a single element. They are one of the most used layout elements.
Elements
The component is composed of multiple elements. Check out the corresponding pages for more information on each child component. Children can be used in whichever order.
card
the wrappercard__media
the wrapper of an optional image elementcard__mediaInner
the image
card__header
the header elementcard__label
optional caption element, usually for category placeholder (text style is automated)card__title
the title (text style is automated)card__subtitle
optional subtitle (text style is automated)
card__content
some content (cards can have multiple instances of that element)card__actions
optional ctas
Card label
Card title
Card subtitle
Sustainability is a social goal for people to co-exist on Earth over a long time. Specific definitions of this term are disputed and have varied with literature, context, and time.
Properties
Add classes to the wrapper class to change the style of the component.
Size
Override the default size of the component.
class="card card--xs"
XSmall
This is a card subtitle
class="card card--sm"
Small
This is a card subtitle
class="card"
Default
Medium
This is a card subtitle
class="card card--lg"
Large
This is a card subtitle
class="card card--xl"
XLarge
This is a card subtitle
Color
You can use the color utility classes to change the background or border color and text color of the component and content. If you do not add any class, the default is fill--paper
. Here are some examples.
class="card"
Default
Paper
This is a card subtitle
class="card fill--primary"
Default
This is a card subtitle
class="card fill--warning"
Primary
This is a card subtitle
class="card fill--default stroke--primary"
Primary
This is a card subtitle
Direction
Change the direction of the component.
class="card"
Default
Portrait
This is a card subtitle
class="card card--landscape"
Landscape
This is a card subtitle
Alignement
Change the text alignement of the component.
class="card"
Default
Left
This is a card subtitle
class="card card--center"
Center
This is a card subtitle
class="card card--right"
Right
This is a card subtitle
Transparent
Remove padding around the card (not between card children) and background colour.
class="card card--transparent"
Transparent
This is a card subtitle
Has shadow
Add a box-shadow
to the element
class="card card--hasShadow"
Has shadow
This is a card subtitle