
Toyota Mania
Every model, every era, one weekend.
Get ticketsA Card is a clipped, padded box that groups related content. It ships few defaults and a handful of opt-in features; the rest of every card in Figma comes from layouts, components and utilities.

Every model, every era, one weekend.
Get ticketsUsable — may still change
<article class="tng-card has-surface has-border"> <div class="tng-frame is-16-9 tng-card-fullbleed"> <img src="/assets/toyota-mania.webp" alt="" /> </div> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p></article>
Every model, every era, one weekend.
A bare .tng-card has no surface and no border. Its defaults:
| What | Default |
|---|---|
| Layout | Flex column |
| Padding | 16, set through --tng-card-padding-block and --tng-card-padding-inline |
| Gap | Equal to the block padding |
| Corner radius | --tng-cards-corner-radius: square on Toyota, 8px on Lexus, 10px on Kinto |
| Clipping | Content and media are clipped to the corner radius |
| Text colour | Follows the scheme; .is-contrast on the card switches it and its content |
A direct-child <img>, <picture>, <video> or .tng-card-media covers the whole card, behind the content.
<div class="tng-card has-backdrop"> <img src="/assets/toyota-mania.webp" alt="" /> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p></div>
Every model, every era, one weekend.
A frame is ordinary content: it sits inside the padding like any other child.
<div class="tng-card has-surface has-border"> <div class="tng-frame is-16-9"> <img src="/assets/toyota-mania.webp" alt="" /> </div> <h3 class="tng-text-title">Toyota Mania</h3></div>
A direct child with .tng-card-fullbleed bleeds through the inline padding to the card’s edge, and through the block padding when it is the first or last child. It works on any element, not only a frame. It reads the padding from --tng-card-padding-*, so change the padding through those properties rather than a p-* utility.
<div class="tng-card has-surface has-border"> <h3 class="tng-text-title">Toyota Mania</h3> <div class="tng-frame is-16-9 tng-card-fullbleed"> <img src="/assets/toyota-mania.webp" alt="" /> </div></div>
.has-surface paints the card background: --tng-cards-rested-background-color, or --tng-color-surface-contrast-subtle on a contrast card.
<div class="tng-card has-surface"> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p></div>Every model, every era, one weekend.
.has-border draws a 1px --tng-cards-border-color border, or --tng-color-border-contrast-muted on a contrast card. Use the border utilities for any other border.
<div class="tng-card has-border"> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p></div>Every model, every era, one weekend.
.has-backdrop dims the media evenly and switches the text to the contrast colour. Add .is-contrast when the card holds components, so they switch too. See Media above.
.has-scrim lays a dark gradient over the media, darkest at the top and bottom edges, and switches the text to the contrast colour.
<div class="tng-card tng-frame is-16-9 has-scrim justify-content-end"> <img src="/assets/toyota-mania.webp" alt="" /> <h3 class="tng-text-title">Toyota Mania</h3></div>
.is-responsive-padding raises the inline padding to 24 from 1024px.
<div class="tng-card has-surface has-border is-responsive-padding"> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p></div>Every model, every era, one weekend.
.is-contrast on the card switches the card and everything inside it.
<div class="tng-card has-surface has-border is-contrast"> <h3 class="tng-text-title">Toyota Mania</h3> <a class="tng-button is-secondary" href="#">Get tickets</a></div>When the whole card is one destination, make the card the <a>. It gets the focus ring, and its media zooms on hover and press. With .has-surface its fill changes on hover and press, and with .has-border its border changes on press.
<a class="tng-card tng-frame is-16-9 has-scrim justify-content-end" href="#"> <img src="/assets/toyota-mania.webp" alt="" /> <span class="tng-text-title">Toyota Mania</span></a>The card is a flex column, so the layout utilities (gap-*, align-items-*, justify-content-*, align-self-*) and the spacing utilities (p-*, pbe-*, …) adjust it directly. Align text with .text-start, .text-center and .text-end (Varia).
The cards in Figma, composed from the card, layouts and utilities.
<div class="tng-card has-backdrop has-border is-contrast gap-3xl"> <img src="/assets/toyota-mania.webp" alt="" /> <h3 class="tng-text-title">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p> <a class="tng-link is-neutral" href="#"> <span>Get tickets</span> <i class="tng-icon icon-arrow-right" aria-hidden="true"></i> </a></div><article class="tng-card has-surface has-border is-responsive-padding gap-3xl pbe-3xl"> <div class="tng-frame tng-card-fullbleed"> <img src="/assets/toyota-mania.webp" alt="" /> <button class="tng-icon-button is-md is-filled on-contrast align-self-center justify-self-center" aria-label="Play video" > <i class="tng-icon icon-player" aria-hidden="true"></i> </button> <span class="tng-tag align-self-end justify-self-end m-3xl"> Topic 1 </span> </div> <span class="tng-label align-self-end"> <i class="tng-icon icon-time" aria-hidden="true"></i> <span>2 min</span> </span> <div class="tng-stack gap-xl"> <h3 class="tng-text-title is-8">Toyota Mania</h3> <p class="tng-text-body">Every model, every era, one weekend.</p> </div> <a class="tng-button" href="#">Get tickets</a> <a class="tng-button is-secondary" href="#">See the programme</a></article>
Topic 1
Every model, every era, one weekend.
<a class="tng-card tng-frame is-16-9 has-scrim p-4xl gap-none justify-content-end align-items-center text-center" href="#"> <img src="/assets/toyota-mania.webp" alt="" /> <span class="tng-text-title is-10 tng-overflow-ellipsis"> New cars </span> <span class="tng-text-body is-emphasis"> Find the Toyota that fits your life. </span></a>The Card is a thin wrapper that renders the tng-card element and nothing else: the content, layouts, components and utilities that make up each card in Figma are provided by the caller as children. Every opt-in feature (surface, border, backdrop, scrim, contrast, responsive padding) is a class added through className; see the CSS tab for what each one does.
The wrapper can render as one of three elements:
div (default): a plain container.article: a self-contained piece of content, such as a card in a carousel or a list.anchor: the whole card is one destination. Pass href like on any anchor element.CardProperties extends <React.HTMLAttributes<HTMLDivElement>>, <React.HTMLAttributes<HTMLElement>> or <React.AnchorHTMLAttributes<HTMLAnchorElement>> depending on the as prop, which means it includes all standard HTML attributes (including children and ref) that can be applied to that element. href, target and rel are therefore only available with as="anchor".
| Prop | Type | Description | Optional |
|---|---|---|---|
as |
'div' | 'anchor' | 'article' |
The element to render, 'div' by default |
✅ |
className |
ClassValue |
Additional class names can be added (tng-card is added by default) |
✅ |
These classes can be added through className.
| Class | Description |
|---|---|
has-surface |
Paints the card’s own background: --tng-cards-rested-background-color, or --tng-color-surface-contrast-subtle on a contrast card |
has-border |
Draws a 1px border: --tng-cards-border-color, or --tng-color-border-contrast-muted on a contrast card. Use the border utilities for any other border |
has-backdrop |
Dims the media that covers the card evenly and switches the text to the contrast colour. Add is-contrast when the card holds components, so they switch too |
has-scrim |
Lays a dark gradient over the media that covers the card, darkest at the top and bottom edges, and switches the text to the contrast colour |
is-contrast |
Switches the card and everything inside it (text, surface, border and components) to the contrast scheme |
is-responsive-padding |
The card has 16px of padding by default. With this class the inline padding becomes 24px, but only from 1024px upwards; below that it stays 16px |
tng-card-fullbleed |
Set on a direct child: it bleeds through the inline padding to the card’s edge, and through the block padding when it is the first or last child |
Layout and spacing utilities (gap-*, p-*, align-items-*, justify-content-*, text-*) and tng-frame with its aspect ratios (is-16-9, is-21-9, is-9-16) are added the same way.
A direct-child <img>, <picture>, <video> or .tng-card-media covers the whole card, behind the content. Combine it with has-backdrop or has-scrim to keep the text readable. To place media inside the padding instead, wrap it in a tng-frame; add tng-card-fullbleed to let it bleed to the card’s edge.
A div card with media behind the content (has-backdrop), a border, and everything switched to the contrast scheme (is-contrast). gap-3xl widens the gap between the children.
import { Card, Link } from '@tmedxp/react-components';
const SimpleCardExample = () => { return ( <Card className="has-backdrop has-border is-contrast gap-3xl"> <img src="/assets/toyota-mania.webp" alt="" /> <h3 className="tng-text-title">Toyota Mania</h3> <p className="tng-text-body">Every model, every era, one weekend.</p> <Link href="#" text="Get tickets" isNeutral trailingIcon="arrow-right" opensInNewWindowLabel="Opens in a new window" /> </Card> );};
export { SimpleCardExample };Rendered as an article. A surface, a border and responsive padding (is-responsive-padding) frame the card, and the media bleeds to the card’s edge (tng-card-fullbleed). gap-3xl and pbe-3xl set the spacing between the children and below the last one.
import { Card, Icon, IconButton, MainButton } from '@tmedxp/react-components';
const FeatureCarouselCardExample = () => { return ( <Card as="article" className="has-surface has-border is-responsive-padding gap-3xl pbe-3xl" > <div className="tng-frame tng-card-fullbleed"> <img src="/assets/toyota-mania.webp" alt="" /> <IconButton iconName="player" size="md" isFilled className="on-contrast align-self-center justify-self-center" aria-label="Play video" /> <span className="tng-tag align-self-end justify-self-end m-3xl"> Topic 1 </span> </div> <span className="tng-label align-self-end"> <Icon name="time" /> <span>2 min</span> </span> <div className="tng-stack gap-xl"> <h3 className="tng-text-title is-8">Toyota Mania</h3> <p className="tng-text-body">Every model, every era, one weekend.</p> </div> <MainButton as="link" href="#" text="Get tickets" /> <MainButton as="link" href="#" variant="secondary" text="See the programme" /> </Card> );};
export { FeatureCarouselCardExample };Rendered as an anchor, so the whole card is one destination. tng-frame is-16-9 makes the card a 16:9 frame that the image fills, has-scrim darkens it, and the utilities replace the default padding and gap and centre the text at the bottom.
import { Card } from '@tmedxp/react-components';
const SmartBlockCardExample = () => { return ( <Card as="anchor" href="#" className="has-scrim tng-frame is-16-9 p-4xl gap-none justify-content-end align-items-center text-center" > <img src="/assets/toyota-mania.webp" alt="" /> <span className="tng-text-title is-10 tng-overflow-ellipsis"> New cars </span> <span className="tng-text-body is-emphasis"> Find the Toyota that fits your life. </span> </Card> );};
export { SmartBlockCardExample };A div card framed at 16:9 with a gradient over the image (has-scrim), so the title stays readable at the bottom (justify-content-end).
import { Card } from '@tmedxp/react-components';
const ScrimCardExample = () => { return ( <Card className="has-scrim tng-frame is-16-9 justify-content-end"> <img src="/assets/toyota-mania.webp" alt="" /> <h3 className="tng-text-title">Toyota Mania</h3> </Card> );};
export { ScrimCardExample };A card with a surface and a border on the contrast scheme (is-contrast): the button inside switches with it.
import { Card, MainButton } from '@tmedxp/react-components';
const ContrastCardExample = () => { return ( <Card className="has-surface has-border is-contrast"> <h3 className="tng-text-title">Toyota Mania</h3> <MainButton as="link" href="#" variant="secondary" text="Get tickets" /> </Card> );};
export { ContrastCardExample };A card is a visual grouping, not a widget: it has no role, keyboard behaviour or state of its own. Its accessibility comes from the markup inside it. Two patterns cover most cards: a card that holds its own links and buttons, and a card that is one link. A link card follows the WAI-ARIA Link pattern. The target is WCAG 2.1 AA.
<article> for self-contained cards. Use <article> when the card would make sense on its own, such as a story or an offer, and start it with a heading. Use a <div> when the card only groups part of a larger section. A list of cards can be a <ul> of cards (1.3.1 Info and Relationships).<a class="tng-card">. The whole card is the target and its text is the link’s name (2.4.4 Link Purpose). Never nest other links or buttons inside it. The focus ring is built in.alt="". Media behind the content is usually decoration. When it carries meaning, describe it in alt (1.1.1 Non-text Content).prefers-reduced-motion: no-preference.