Card
The Card component provides a reusable pattern for card in the interface.
Meta first
Heading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
123 AVC Heading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Only slot
Here we've only sent data to the slot and nothing with the parameters.
Heading
SubHeading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Card with a collapsible body

Heading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Card images
The images can be set to cover 100% of the width or if you wish set padded to true to keep the image in the middle. You can also set a background color which can be seen in the example with padding.
Heading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
123 AVC Heading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Card with date badge
Cards with date badges can be used to show the date of the card.
With image
lorem ipsum dolor sit amet, consectetur adipiscing elit
With Placeholder
lorem ipsum dolor sit amet, consectetur adipiscing elit
Without image
lorem ipsum dolor sit amet, consectetur adipiscing elit
Buttons
You can configure a card with buttons that will be rendered in the footer.
Linked card
Links whole card.
Container Aware
Enables container awareness on the component (adjusts layout depending on available space).
Card has action
Adds visual effect to indicate that the card has an action attached (i.e. a link)
Hightlight Card
A modifier to highlight the card.

TEST
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Accent
Gives the card a more plain styling with accent colors
Heading
SubHeading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Heading
SubHeading
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
Flat UI
Gives the card a flat style
API
| Parameter | Default | Description |
|---|---|---|
|
eyebrow
|
A smaller heading above the primary one | |
|
heading
|
The card heading | |
|
subHeading
|
A subheading below the heading, explaining more stuff. | |
|
meta
|
Small text below title, in meta style. | |
|
content
|
The card content | |
|
buttons
|
[] | Array with buttons that has parameters like href, text and attributeList. |
|
image
|
false | A url to an image. |
|
ratio
|
16:9 | The ratio of the image |
|
collapsible
|
false | If the content should be collapsible. |
|
tags
|
A tags array | |
|
link
|
A hyperlink to another location. | |
|
linkText
|
The text of the link, if not set, the link will not be displayed. | |
|
date
|
false | Preformatted date |
|
dateBadge
|
false | Display date as a badge. Requires image to be set. |
|
hasPlaceholder
|
false | If the card should have a placeholder, if the image is missing. |
|
icon
|
false | An array with the same specification as the icon component |
|
iconBackgroundColor
|
The background color of the icon | |
|
color
|
default | The background color of the image. |
|
metaFirst
|
false | If the meta should be displayed before the heading. |
|
headingAboveImage
|
false | If the headings should be displayed above the image. |
CSS API
| Variable | Default | Type | Values | Description |
|---|---|---|---|---|
|
--c-card--border-width
|
var(--border-width) | range | - | Size |
|
--c-card--border-radius
|
var(--border-radius) | range | - | Border Radius |
|
--c-card--space
|
var(--space) | range | - | Base spacing unit. Used for padding and margin inside components. |
|
--c-card--color--surface
|
var(--color--surface) | color | - | Surface |
|
--c-card--color--primary
|
var(--color--primary) | color | - | Primary |
|
--c-card--shadow-color
|
var(--shadow-color) | rgba | - | Shadow Color |
|
--c-card--shadow-amount
|
var(--shadow-amount) | range | - | Multiplier for elevation shadows. 0 = none, 1 = default. |
|
--c-card--color--surface-border
|
var(--color--surface-border) | color | - | Manual companion token for borders on surface elements. |
|
--c-card--color--surface-alt
|
var(--color--surface-alt) | color | - | Manual companion token for subtle surface backgrounds. |
|
--c-card--color--secondary
|
var(--color--secondary) | color | - | Secondary |
|
--c-card--color--surface-contrast
|
var(--color--surface-contrast) | color | - | Used for text and icons on surface backgrounds with less contrast. |
|
--c-card--corner-shape
|
var(--corner-shape) | select | square, round, squircle, circular, bevel, scoop | Corner Shape |
|
--c-card--base
|
var(--base) | range | - | Main unit that drives radius and spacing scales. |
|
--c-card--color--primary-contrast
|
var(--color--primary-contrast) | color | - | Primary Contrast |
|
--c-card--font-size-300
|
var(--font-size-300) | range | - | Two steps above base in the type scale. Equivalent to h5. |