Cards & Tiles Shortcodes
Documentation and live specimens for Carbon cards, base tiles, clickable tiles, expandable tiles, and digital business cards.
Cards and tiles group related information and actions into bounded, structured containers following the 16-column 2x Grid.
1. Card (card)
The card shortcode implements the expressive Carbon card component. Cards support optional eyebrows, status tags, action links with arrow icons, media headers, and the official Carbon AI modifier gradient border.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
title | String | Optional | Card headline |
eyebrow | String | Optional | Pre-heading taxonomy or category label |
href | String | Optional | Target link URL |
actionText | String | "Learn more" | Label for the footer action button |
tag | String | Optional | Status tag text displayed in the header |
tagColor | String | "blue" | Tag colorway (blue, green, red, purple, warm-gray) |
icon | String | "arrow--right" | Icon name for the action link |
ai | Boolean | false | When true, applies the Carbon AI gradient border and AI badge |
aiText | String | Optional | Explainability description for the AI popover |
Standard Card Example
Hugo Pipes Asset Pipeline
| |
Card with AI Modifier (ai="true")
When a card contains content generated or synthesised by an artificial intelligence model, pass ai="true" to display the signature Carbon AI gradient border and explainability badge:
Automated Syntax Summariser
AI-generated content
This summary text was generated by an AI model to illustrate placeholder rendering in theme cards.
| |
2. Base Tile (tile)
The base tile shortcode renders a clean rectangular container using --cds-layer-01 background and standard border tokens. It can be formatted as a static block or a selectable item.
Example
| |
Tile with AI Modifier
ai="true" render an accessible AI slug badge in the top right corner and a distinctive multi-colour gradient border. | |
3. Clickable Tile (clickable-tile)
The clickable-tile turns the entire surface into a focusable link with keyboard accessibility and active state elevation.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
href | String | Required | Destination link URL |
title | String | Optional | Tile headline |
Example
Explore Navigation Shortcodes →
| |
4. Expandable Tile (expandable-tile)
The expandable-tile divides content into two sections: an above-the-fold summary always visible, and an expanded drawer revealed when the user clicks the interactive chevron. Use the <!-- more --> separator in Markdown to designate the split.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
title | String | Required | Header title for the tile |
Example
Click chevron to view full configuration details
hugo.yaml.params.carbon or overridden per section via front-matter cascade. | |
5. Digital Business Cards (vcard)
The vcard shortcode parses RFC 6350 vCard files (.vcf) or direct parameters to render an interactive contact card complete with:
- Instant
.vcffile download. - One-click contact copying to clipboard.
- Pure client-side, zero-network QR code generation.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
file | String | Optional | Path to a .vcf file in static/ |
name | String | Optional | Contact full name |
title | String | Optional | Professional job title |
org | String | Optional | Organisation or department |
email | String | Optional | Email address |
phone | String | Optional | Phone number |
website | String | Optional | Personal or organisation website |
location | String | Optional | City and country |
badge | String | Optional | Role badge label |
badgeColor | String | "blue" | Tag colorway |
github | String | Optional | GitHub profile URL |
linkedin | String | Optional | LinkedIn profile URL |
Example
Open Source Maintainer
Public DomainScan with camera on iOS or Android to import contact directly
| |