The Card component provides a reusable pattern for card in the interface.
Meta first
Eyebrow
Heading
This is the meta (after title)
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
This is the meta (before title)
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.
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--has-image c-card--ratio-16-9" data-uid="6a44f0fd0c4f5" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd0c87d" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-svg c-image--cover" data-uid="6a44f0fd0c71f" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="/assets/img/component.svg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd0dc12" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd0d36c" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd0d2df" data-component="group">
<!-- typography.blade.php original: span -->
<span class="c-typography c-card__eyebrow u-margin__bottom--2 c-typography__variant--meta" data-uid="6a44f0fd0ca47" data-component="typography"><span>Eyebrow</span></span>
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd0cad0" data-component="typography">
Heading
</h2><!-- typography.blade.php original: span -->
<span class="c-typography c-typography__variant--meta" data-uid="6a44f0fd0d1ff" data-component="typography">This is the meta (after title)</span>
</div>
</div><!-- typography.blade.php original: span -->
<span class="c-typography c-card__date c-typography__variant--meta" data-uid="6a44f0fd0da71" data-component="typography"><!-- icon.blade.php -->
<time class="c-date" data-date="2026-07-01T10:50:37" datetime="2026-07-01T10:50:37" data-uid="6a44f0fd0d9e4" data-component="date">Wed 01 Jul 2026</time></span>
<!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd0db4d" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--has-image c-card--ratio-16-9" data-uid="6a44f0fd0dce7" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd0dee6" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-svg c-image--cover" data-uid="6a44f0fd0ddd9" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="/assets/img/component.svg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd0e47e" data-component="card__body">
<!-- typography.blade.php original: span -->
<span class="c-typography c-typography__variant--meta" data-uid="6a44f0fd0dfd9" data-component="typography">This is the meta (before title)</span> <!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd0e17b" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd0e102" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd0e094" data-component="typography">
123 AVC Heading
</h2>
</div>
</div><!-- typography.blade.php original: span -->
<span class="c-typography c-card__date c-typography__variant--meta" data-uid="6a44f0fd0e336" data-component="typography"><!-- icon.blade.php -->
<time class="c-date" data-date="2026-07-01T10:50:37" datetime="2026-07-01T10:50:37" data-uid="6a44f0fd0e2e1" data-component="date">Wed 01 Jul 2026</time></span>
<!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd0e3f4" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'eyebrow' => 'Eyebrow',
'color' => 'primary',
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => [
'src' => '/assets/img/component.svg',
'alt' => 'ALT',
'backgroundColor' => 'secondary',
'padded' => true
],
'meta' => "This is the meta (after title)",
'date' => date('Y-m-d H:i:s')
])
@endcard
</div>
<div class="o-grid-4@md">
@card([
'color' => 'primary',
'heading' => '123 AVC Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => [
'src' => '/assets/img/component.svg',
'alt' => 'ALT',
'backgroundColor' => 'secondary',
'padded' => true
],
'meta' => "This is the meta (before title)",
'metaFirst' => true,
'date' => date('Y-m-d H:i:s')
])
@endcard
</div>
</div>
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.
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--panel c-card--highlight c-card--ratio-16-9" data-uid="6a44f0fd0f407" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__header" data-uid="6a44f0fd0f2ea" data-component="card__header">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h2" data-uid="6a44f0fd0f1f7" data-component="typography">
Heading
</p><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h4" data-uid="6a44f0fd0f25d" data-component="typography">
SubHeading
</p>
</div>
<div class="c-card__body" data-uid="6a44f0fd0f386" data-component="card__body">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0fd0f33d" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'classList' => [
'c-card--panel',
'c-card--highlight'
]
])
@card__header()
@typography([
'variant' => 'h2'
])
Heading
@endtypography
@typography([
'variant' => 'h4'
])
SubHeading
@endtypography
@endcard__header
@card__body()
@typography([
'variant' => 'p'
])
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
@endtypography
@endcard__body
@endcard
</div>
</div>
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.
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'collapsible' => true,
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT']
])
@endcard
</div>
</div>
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.
Jul
1
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.
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => [
'src' => 'https://images.unsplash.com/photo-1503023345310-bd7c1de61c7d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=1000&q=80',
'alt' => 'ALT',
'backgroundColor' => 'secondary',
'square' => true
],
'date' => date('Y-m-d H:i:s'),
'dateBadge' => true
])
@endcard
</div>
<div class="o-grid-4@md">
@card([
'color' => 'primary',
'heading' => '123 AVC Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => [
'src' => '/assets/img/component.svg',
'alt' => 'ALT',
'backgroundColor' => 'secondary',
'padded' => true
],
'date' => date('Y-m-d H:i:s')
])
@endcard
</div>
</div>
Card with date badge
Cards with date badges can be used to show the date of the card.
Jul
1
With image
lorem ipsum dolor sit amet, consectetur adipiscing elit
Jul
1
With Placeholder
lorem ipsum dolor sit amet, consectetur adipiscing elit
Jul
1
Without image
lorem ipsum dolor sit amet, consectetur adipiscing elit
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<a class="c-card c-card--has-image c-card--action c-card--ratio-16-9" href="https://getmunicipio.com" aria-label="Heading - Linked card is not compatible with either dropdown or buttons."
data-uid="6a44f0fd28f73" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd290e4" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-jpg c-image--cover" data-uid="6a44f0fd29021" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://www.w3schools.com/w3css/img_lights.jpg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd292e5" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd29227" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd291da" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd29181" data-component="typography">
Heading
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd29299" data-component="typography">
Linked card is not compatible with either dropdown or buttons. Markup will break if used togheter.
</p>
</div>
</div></a>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'heading' => 'Heading',
'content' => 'Linked card is not compatible with either dropdown or buttons. Markup will break if used togheter.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'link' => "https://getmunicipio.com"
])
@endcard
</div>
</div>
Container Aware
Enables container awareness on the component (adjusts layout depending on available space).
Resize the preview above to see the card's container aware feature.
<div class="c-card c-card--has-image c-card--has-footer c-card--ratio-16-9" data-uid="6a44f0fd29774" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd298e2" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-jpg c-image--cover" data-uid="6a44f0fd29827" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://www.w3schools.com/w3css/img_lights.jpg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd29ae2" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd29a25" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd299d9" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd29980" data-component="typography">
Heading
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd29a98" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely
used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more
advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
<div class="c-card__footer" data-js-toggle-class="u-display--none" data-js-toggle-item="6a44f0fd2974f" data-uid="6a44f0fd29c51" data-component="card__footer">
<button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!" data-uid="6a44f0fd29ba3" data-component="button"><span class=
"c-button__label"><span class="c-button__label-text">Lets go!</span></span></button> <button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!"
data-uid="6a44f0fd29c02" data-component="button"><span class="c-button__label"><span class="c-button__label-text">Lets go!</span></span></button>
</div>
</div>
</div><br />
<!-- card.blade.php -->
<div class="c-card c-card--has-footer c-card--ratio-16-9" data-uid="6a44f0fd29cd7" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__body" data-uid="6a44f0fd29efa" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd29e3f" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd29df5" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd29da7" data-component="typography">
Heading
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd29eb0" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely
used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more
advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
<div class="c-card__footer" data-js-toggle-class="u-display--none" data-js-toggle-item="6a44f0fd29cb6" data-uid="6a44f0fd2a05e" data-component="card__footer">
<button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!" data-uid="6a44f0fd29fb4" data-component="button"><span class=
"c-button__label"><span class="c-button__label-text">Lets go!</span></span></button> <button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!"
data-uid="6a44f0fd2a010" data-component="button"><span class="c-button__label"><span class="c-button__label-text">Lets go!</span></span></button>
</div>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--meta" data-uid="6a44f0fd2a0c7" data-component="typography">
Resize the preview above to see the card's container aware feature.
</p>
@card([
'collapsible' => false,
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'buttons' => [
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!'],
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!']
],
])
@endcard
<br/>
@card([
'collapsible' => false,
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'buttons' => [
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!'],
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!']
],
])
@endcard
@typography([
'variant' => 'meta'
])
Resize the preview above to see the card's container aware feature.
@endtypography
Inset Inherit
Demonstrate inset inheritance on the component & subcomponents (adjusts padding depending on available space).
Resize the preview above to see the card and nested accordion inherit the inset spacing.
<div class="c-card c-card--has-image c-card--has-footer c-card--ratio-16-9" data-uid="6a44f0fd3e09b" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__header" data-uid="6a44f0fd3a706" data-component="card__header">
<h3 class="c-card__heading">
Heading
</h3>
</div>
<div class="c-card__body u-padding--0" data-uid="6a44f0fd3e024" data-component="card__body">
<div class="c-accordion c-accordion c-accordion--bordered" style="--c-accordion--heading-count: 1;" id="id_6a44f0fd3cf7a" data-uid="6a44f0fd3cf87" data-component="accordion">
<details class="c-accordion__item c-accordion__item" style="--c-accordion__item--heading-count: 1;" id="id_6a44f0fd3d783" data-uid="6a44f0fd3d795" data-component="accordion__item">
<summary class="c-element c-accordion__item__heading" data-uid="6a44f0fd3db7e" data-component="element">
<!-- typography.blade.php original: span -->
<span class="c-typography c-accordion__item__heading-item c-typography__variant--h4" role="heading" aria-level="3" data-uid="6a44f0fd3daa2" data-component="typography">Accordion
heading</span> <!-- icon.blade.php -->
</summary>
<div class="c-element c-accordion__item__content" data-uid="6a44f0fd3dbc8" data-component="element">
Accordion content should keep the same inset rhythm as the rest of the card when the container grows.
</div>
</details>
<details class="c-accordion__item c-accordion__item" style="--c-accordion__item--heading-count: 1;" id="id_6a44f0fd3dc13" data-uid="6a44f0fd3dc20" data-component="accordion__item">
<summary class="c-element c-accordion__item__heading" data-uid="6a44f0fd3dd8e" data-component="element">
<!-- typography.blade.php original: span -->
<span class="c-typography c-accordion__item__heading-item c-typography__variant--h4" role="heading" aria-level="3" data-uid="6a44f0fd3dcd4" data-component="typography">Accordion
heading</span> <!-- icon.blade.php -->
</summary>
<div class="c-element c-accordion__item__content" data-uid="6a44f0fd3dde6" data-component="element">
Accordion content should keep the same inset rhythm as the rest of the card when the container grows.
</div>
</details>
<details class="c-accordion__item c-accordion__item" style="--c-accordion__item--heading-count: 1;" id="id_6a44f0fd3de32" data-uid="6a44f0fd3de3f" data-component="accordion__item">
<summary class="c-element c-accordion__item__heading" data-uid="6a44f0fd3df87" data-component="element">
<!-- typography.blade.php original: span -->
<span class="c-typography c-accordion__item__heading-item c-typography__variant--h4" role="heading" aria-level="3" data-uid="6a44f0fd3ded4" data-component="typography">Accordion
heading</span> <!-- icon.blade.php -->
</summary>
<div class="c-element c-accordion__item__content" data-uid="6a44f0fd3dfcd" data-component="element">
Accordion content should keep the same inset rhythm as the rest of the card when the container grows.
</div>
</details>
</div>
</div>
</div>
</div><br />
<!-- card.blade.php -->
<div class="c-card c-card--has-footer c-card--ratio-16-9" data-uid="6a44f0fd3e110" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__body" data-uid="6a44f0fd3e34a" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd3e295" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd3e23e" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd3e1ec" data-component="typography">
Heading
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd3e303" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely
used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more
advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
<div class="c-card__footer" data-js-toggle-class="u-display--none" data-js-toggle-item="6a44f0fd3e0f5" data-uid="6a44f0fd3e4a6" data-component="card__footer">
<button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!" data-uid="6a44f0fd3e403" data-component="button"><span class=
"c-button__label"><span class="c-button__label-text">Lets go!</span></span></button> <button class="c-button c-button__filled c-button__filled--primary c-button--md" aria-label="Lets go!"
data-uid="6a44f0fd3e45c" data-component="button"><span class="c-button__label"><span class="c-button__label-text">Lets go!</span></span></button>
</div>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--meta" data-uid="6a44f0fd3e50d" data-component="typography">
Resize the preview above to see the card and nested accordion inherit the inset spacing.
</p>
@card([
'collapsible' => false,
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'buttons' => [
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!'],
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!']
],
])
@card__header()
<h3 class="c-card__heading">Heading</h3>
@endcard__header
@card__body(['classList' => ['u-padding--0']])
@accordion([
'list' => [
[
'heading' => 'Accordion heading',
'content' => 'Accordion content should keep the same inset rhythm as the rest of the card when the container grows.'
],
[
'heading' => 'Accordion heading',
'content' => 'Accordion content should keep the same inset rhythm as the rest of the card when the container grows.'
],
[
'heading' => 'Accordion heading',
'content' => 'Accordion content should keep the same inset rhythm as the rest of the card when the container grows.'
]
]
])
@endaccordion
@endcard__body
@endcard
<br/>
@card([
'collapsible' => false,
'heading' => 'Heading',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components. Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'buttons' => [
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!'],
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!']
],
])
@endcard
@typography([
'variant' => 'meta'
])
Resize the preview above to see the card and nested accordion inherit the inset spacing.
@endtypography
Card has action
Adds visual effect to indicate that the card has an action attached (i.e. a link)
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'collapsible' => false,
'heading' => 'Heading',
'content' => ' aaaa Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'buttons' => [
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!'],
['type' => 'filled', 'color' => 'primary', 'text' => 'Lets go!']
],
'icon' => ['icon' => 'settings', 'customColor' => '#000', 'size' => 'md'],
])
@endcard
</div>
</div>
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.
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--highlight c-card--has-image c-card--ratio-16-9" data-uid="6a44f0fd3f46a" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd3f5f2" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-jpg c-image--cover" data-uid="6a44f0fd3f51f" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://www.w3schools.com/w3css/img_lights.jpg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd3f901" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd3f83c" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd3f6e3" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd3f692" data-component="typography">
TEST
</h2>
</div><button class="c-button c-card__title-expand-button c-button__basic c-button__basic--default c-button--md c-button__toggle c-button--icon-only" js-toggle-trigger="6a44f0fd3f446"
data-toggle-icon="close" aria-pressed="false" aria-label="expand_more" type="button" data-uid="6a44f0fd3f783" data-component="button"><span class="c-button__label"><span class=
"c-button__label-icon"><!-- icon.blade.php -->
</span></span></button>
</div>
<div class="c-card--collapse" data-js-toggle-class="c-card--collapse" data-js-toggle-item="6a44f0fd3f446">
<!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd3f8b6" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'collapsible' => true,
'heading' => 'TEST',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'classList' => [
'c-card--highlight'
]
])
@endcard
</div>
</div>
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.
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--accented c-card--ratio-16-9" data-uid="6a44f0fd40430" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__header" data-uid="6a44f0fd40168" data-component="card__header">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h2" data-uid="6a44f0fd40095" data-component="typography">
Heading
</p><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h4" data-uid="6a44f0fd40112" data-component="typography">
SubHeading
</p>
</div>
<div class="c-card__image-container" data-uid="6a44f0fd40308" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-1&ixid=eyjhchbfawqiojeymdd9&w=500&q=80 c-image--cover" data-uid="6a44f0fd401c9" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://images.unsplash.com/photo-1503023345310-bd7c1de61c7d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=500&q=80" alt=
"Card illustration" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd403cf" data-component="card__body">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0fd4037d" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
<div class="o-grid-4@md">
<!-- card.blade.php -->
<div class="c-card c-card--accented c-card--ratio-16-9" data-uid="6a44f0fd40600" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__header" data-uid="6a44f0fd4052a" data-component="card__header">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h2" data-uid="6a44f0fd40488" data-component="typography">
Heading
</p><!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--h4" data-uid="6a44f0fd404ce" data-component="typography">
SubHeading
</p>
</div>
<div class="c-card__body" data-uid="6a44f0fd405ab" data-component="card__body">
<!-- typography.blade.php original: p -->
<p class="c-typography c-typography__variant--p" data-uid="6a44f0fd4056e" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div>
</div>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'classList' => [
'c-card--accented'
]
])
@card__header()
@typography([
'variant' => 'h2'
])
Heading
@endtypography
@typography([
'variant' => 'h4'
])
SubHeading
@endtypography
@endcard__header
@card__image()
@image([
'src' => 'https://images.unsplash.com/photo-1503023345310-bd7c1de61c7d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&w=500&q=80',
'alt' => 'Card illustration',
'cover' => true,
'classList' => [
'c-card__image'
]
])
@endimage
@endcard__image
@card__body()
@typography([
'variant' => 'p'
])
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
@endtypography
@endcard__body
@endcard
</div>
<div class="o-grid-4@md">
@card([
'classList' => [
'c-card--accented'
]
])
@card__header()
@typography([
'variant' => 'h2'
])
Heading
@endtypography
@typography([
'variant' => 'h4'
])
SubHeading
@endtypography
@endcard__header
@card__body()
@typography([
'variant' => 'p'
])
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
@endtypography
@endcard__body
@endcard
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
<!-- card.blade.php -->
<a class="c-card c-card--flat c-card--has-image c-card--action c-card--ratio-16-9" href="https://getmunicipio.com" aria-label="Flat UI Cards - Atoms are the fundemental building blocks."
data-uid="6a44f0fd52878" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd52a4a" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-jpg c-image--cover" data-uid="6a44f0fd52962" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://www.w3schools.com/w3css/img_lights.jpg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd52c8b" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd52bcb" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd52b7f" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd52b27" data-component="typography">
Flat UI Cards
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd52c3f" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div></a>
</div>
<div class="o-grid-12@md">
<!-- card.blade.php -->
<a class="c-card c-card--flat c-card--has-image c-card--action c-card--ratio-16-9" href="https://getmunicipio.com" aria-label="Flat UI Cards - Atoms are the fundemental building blocks."
data-uid="6a44f0fd52d1e" data-component="card">
<div class="c-card__paint-container">
<div class="c-card__image-container" data-uid="6a44f0fd52e95" data-component="card__image">
<!-- image.blade.php -->
<figure class="c-image c-card__image c-image--type-jpg c-image--cover" data-uid="6a44f0fd52dd6" data-component="image">
<div class="c-image__image-wrapper">
<img loading="lazy" class="c-image__image" src="https://www.w3schools.com/w3css/img_lights.jpg" alt="ALT" />
</div>
</figure>
</div>
<div class="c-card__body" data-uid="6a44f0fd53080" data-component="card__body">
<!-- group.blade.php -->
<div class="c-group c-card__heading-container c-group--horizontal c-group--justify-content-space-between c-group--align-items-center" data-uid="6a44f0fd52fc6" data-component="group">
<!-- group.blade.php -->
<div class="c-group c-group--vertical" data-uid="6a44f0fd52f7c" data-component="group">
<!-- typography.blade.php original: h2 -->
<h2 class="c-typography c-card__heading u-margin__y--0 c-typography__variant--h3" data-uid="6a44f0fd52f2f" data-component="typography">
Flat UI Cards
</h2>
</div>
</div><!-- typography.blade.php original: p -->
<p class="c-typography c-card__content c-typography__variant--p" data-uid="6a44f0fd53036" data-component="typography">
Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.
</p>
</div>
</div></a>
</div>
</div>
<div class="o-grid">
<div class="o-grid-4@md">
@card([
'heading' => 'Flat UI Cards',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'classList' => [
'c-card--flat'
],
'link' => "https://getmunicipio.com"
])
@endcard
</div>
<div class="o-grid-12@md">
@card([
'heading' => 'Flat UI Cards',
'content' => 'Atoms are the fundemental building blocks. They are rarely used just by them self but mostly used to build more advanced components.',
'image' => ['src' => 'https://www.w3schools.com/w3css/img_lights.jpg', 'alt' => 'ALT'],
'classList' => [
'c-card--flat'
],
'link' => "https://getmunicipio.com"
])
@endcard
</div>
</div>
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
null
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
null
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.
beforeContent
Slot content rendered before the predefined card layout inside the paint container.
afterContent
Slot content rendered after the predefined card layout inside the paint container.
floating
Slot content rendered in the card floating area.
aboveContent
Slot content rendered above the card content inside the body area.
belowContent
Slot content rendered below the card content inside the body area.
slot
Full custom card layout. Use card child components such as card__header, card__image, card__body, card__floating and card__footer to recreate card areas.
Subcomponents
Child components for card, including purpose and supported Blade parameters.
Card Body
Blade directive: @card__body()
Content placed in the card body area.
Parameter
Default
Type
Purpose
slot
string
Content placed in the card body area.
classList
[]
array
Additional CSS classes added to the wrapping element.
attributeList
[]
array
Additional HTML attributes added to the wrapping element.
@card__body()
Slot content
@endcard__body
Card Floating
Blade directive: @card__floating()
Content placed in the card floating area.
Parameter
Default
Type
Purpose
slot
string
Content placed in the card floating area.
classList
[]
array
Additional CSS classes added to the wrapping element.
attributeList
[]
array
Additional HTML attributes added to the wrapping element.
@card__floating()
Slot content
@endcard__floating
Card Footer
Blade directive: @card__footer()
Content placed in the card footer area.
Parameter
Default
Type
Purpose
slot
string
Content placed in the card footer area.
classList
[]
array
Additional CSS classes added to the wrapping element.
attributeList
[]
array
Additional HTML attributes added to the wrapping element.
@card__footer()
Slot content
@endcard__footer
Card Header
Blade directive: @card__header()
Content placed in the card header area.
Parameter
Default
Type
Purpose
slot
string
Content placed in the card header area.
classList
[]
array
Additional CSS classes added to the wrapping element.
attributeList
[]
array
Additional HTML attributes added to the wrapping element.
@card__header()
Slot content
@endcard__header
Card Image
Blade directive: @card__image()
Content placed in the card image area.
Parameter
Default
Type
Purpose
slot
string
Content placed in the card image area.
classList
[]
array
Additional CSS classes added to the wrapping element.
attributeList
[]
array
Additional HTML attributes added to the wrapping element.
@card__image()
Slot content
@endcard__image
CSS API
Variable
Default
Type
Values
Description
--c-card--border-width
var(--border-width)
range
-
Controls the width of card borders and internal dividers.
--c-card--border-radius
var(--border-radius)
range
-
Border Radius
--c-card--space
var(--space)
range
-
Controls padding inside the card and spacing between card elements.
--c-card--color--surface
var(--color--surface)
color
-
Controls the card surface, text contrast, border, and alternate layout colors.
--c-card--color--primary
var(--color--primary)
color
-
Controls highlighted card details, including accent borders and accented header backgrounds.
--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
-
Controls the background shown behind transparent images and SVG illustrations.
--c-card--color--surface-contrast
var(--color--surface-contrast)
color
-
Used for text and icons on surface backgrounds with less contrast.
--c-card--color--surface-contrast-muted
var(--color--surface-contrast-muted)
color
-
Derived muted contrast for text and icons on surface backgrounds.
--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-200
var(--font-size-200)
range
-
One step above base in the type scale. Equivalent to h6/subtitle.