Skip to content

Search

Start typing to search.


Show all pages

Documentation

layout

Grid

Lays out cards or tiles in as many equal columns as fit.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

Columns appear as room allows, each at least 16rem wide, and drop to one column on phones. No breakpoints needed.

  • Lessons

    Plan and move lessons.

  • Students

    Follow progress per student.

  • Invoices

    Send and track payments.

HTML

Examples

Narrower columns

Set --ca-grid-min for a different minimum width, here with a Tailwind arbitrary property.

  • Students

    128

  • Lessons

    42

  • Cars

    6

  • Instructors

    4

HTML

Guidance and accessibility

When to use

  • Use a grid for items of the same kind, such as cards, stats or photos.
  • The number of columns follows the space, so the same grid works in a sidebar and across a page.

Accessibility

  • Use a list (<ul>) for a set of items, so screen readers announce how many there are.
  • Items keep their markup order in every column count.

Classes

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

Classes of the grid component
ClassKindUse it for
ca-gridComponentEqual columns, each at least --ca-grid-min wide (16rem by default).
ca-grid--smSizeTight space between items.
ca-grid--mdSizeDefault space.
ca-grid--lgSizeWide space.

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

    Plan and move lessons.

  • Students

    Follow progress per student.

  • Invoices

    Send and track payments.

Calaca skin

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

  • Lessons

    Plan and move lessons.

  • Students

    Follow progress per student.

  • Invoices

    Send and track payments.

Proof skin

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

  • Lessons

    Plan and move lessons.

  • Students

    Follow progress per student.

  • Invoices

    Send and track payments.

Crossview skin

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

  • Lessons

    Plan and move lessons.

  • Students

    Follow progress per student.

  • Invoices

    Send and track payments.

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" />