Card

Create layout boxes with different styles.

Table of contents

Usage

The Card component consists of the card itself, the card body and an optional card title. Typically, cards are arranged in grid columns.

ClassDescription
.uk-cardAdd this class to a <div> element to define the Card component.
.uk-card-bodyAdd this class to the card to create padding between the card and its content.
.uk-card-titleAdd this class to a heading to define a card title.

Style modifiers

UIkit includes a number of modifiers that can be used to add a specific style to cards.

ClassDescription
.uk-card-primaryAdd this class to modify the card and emphasize it with a primary color.
.uk-card-secondaryAdd this class to modify the card and give it a secondary background color.
.uk-card-destructiveAdd this class to modify the card and give it a destructive background color.

You can also divide a card into header and footer — around the default body. Just add the .uk-card-header or .uk-card-footer class to a <div> element inside the card.

Customize

Customize your Franken UI experience.