Skip to content

Search

Start typing to search.


Show all pages

Documentation

layout

Card

Groups related content and actions on one surface.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

A card needs the component class; title and description are optional parts.

Lessons this week

Three lessons are planned. You can move a lesson up to 24 hours before it starts.

HTML

Examples

With actions

Put buttons in ca-card__footer, the main action first.

Invite your team

Members can plan lessons and see every student's progress.

HTML

In a grid

Cards stretch to their grid cell. Lay them out with Tailwind's grid utilities.

Theory exam

Practice 40 questions in the format of the real exam.

Driving test

Book your test once your instructor marks you ready.

HTML

Guidance and accessibility

When to use

  • Use a card to group content that belongs together, such as a lesson, an invoice or a setting.
  • Keep one main action per card. Several cards that each shout “primary” compete for attention.
  • A whole card that links somewhere is easier to use with one link on the title than with the card wrapped in an <a>.

Accessibility

  • Use an element that fits the content: <article> for standalone items, <section> with a heading for parts of a page.
  • ca-card__title styles text; it does not choose a heading level. Pick the level that follows the headings around the card.
  • Content order in the markup is the reading order. Do not reorder visually with CSS in ways that change meaning.

Classes

Generated from the component contract. Parts use __, modifiers use --.

Classes of the card component
ClassKindUse it for
ca-cardComponentVertical stack with the card surface, edge and spacing.
ca-card__titlePartHeading of the card. Use the heading level that fits the page outline.
ca-card__descriptionPartSupporting text below the title.
ca-card__footerPartRow of actions that wraps on narrow screens.

Skins

The same markup, dressed by each skin. Structure and behavior stay the same; only the look changes.

Base skin

Neutral grayscale starting point; product skins extend it and change what differs.

Lessons this week

Three lessons are planned. You can move a lesson up to 24 hours before it starts.

Calaca skin

The Calaca UI brand: hueso paper and tinta ink, cempasúchil marigold, rosa and jade.

Lessons this week

Three lessons are planned. You can move a lesson up to 24 hours before it starts.

Proof skin

Pilot skin pushed far from base: square, heavy, offset shadows, larger targets.

Lessons this week

Three lessons are planned. You can move a lesson up to 24 hours before it starts.

Crossview skin

The CrossView proofing table: cool ground, bond-paper sheets, rule-grey hairlines, one red mark.

Lessons this week

Three lessons are planned. You can move a lesson up to 24 hours before it starts.

Framework notes

Link the prebuilt stylesheet of your skin next to your brand theme. No build step.

HTML
<link rel="stylesheet" href="theme.css" />
<link rel="stylesheet" href="ca-base.css" />