Cards
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
Variations
Basic Card
Something to remember
All components can be copied and pasted and easily implemented in your tailwind css projects. You can either copy all the components in the preview window from the copy icon on the top right corner in the code blocks or just hover and click on the one component you need and paste it on your project.
Card with Icon
Bonus
All components come with proper attributes to ensure full accessibility with the WAI-ARIA standards. Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them.
Card with Subtitle
A place under the night sky
By George Johnson, jun3 28
There’s nothing better than hiking along the rocky footpaths, accompanied only by the noise of cicadas. As the boat docks in the harbor, gaze upon white and blue houses, craggy cliffs, sweeping olive groves, and the dazzling blues of the Aegean sea.
Basic Image Card
Memories of the past
By George, jun 3 2023
Basic Blog Card
The easy way to go
By George, jun 3 2023
Experience the simple pleasures of a world with no cars, and only gentle walks through palm tree forests, and fallen coconuts. An island that’s home to extraordinary cliffs, swelling oceans, and mammoth manta rays.
Blog Card with Avatar
Blog Card with Action Button
E-commerce Card
Greek breakfast
$8.99
Blueberry Superpower: Vanilla Greek Yogurt + Fresh Blueberries + Granola + Honey.
Social Story Card
User Profile Card
Nichole Jones
Senior Designer
Card with Form
Image Overlay Card
Horizontal Card
On small screens the horizontal card turns to a normal card. Resize your browser to see the card's behavior on small screens.
Empty Card
Usage
Cards are elements that display content and actions on a single topic.
They should be easy to scan for relevant and actionable information.
Specs
Cards have no singular layout, typographic, or image size. They can include:
- Card header: the card header can include a title, subtitle and even a user avatar. The card header has inner padding of 1.5rem (24px).
- Card image: the card's image expands to the full width of the card (or half in horizontal cards).
- Card body: The main area of the card. It has inner padding of 1.5rem (24px). If the card's body is following the header the top padding is removed.
- Card action: This area includes a set of actions (links or buttons) and has horizontal padding of 0.5rem (8px) so that the button text is aligned with the card's body text.
Accessibility notes
There’s no accessibility standard to follow, no <card>
element or an ARIA design pattern. Instead, the potential accessibility barriers you might encounter are depending on the card’s purpose and content.