Skip to content

Search

Start typing to search.


Show all pages

Documentation

type

Code

Inline code, such as a class name or a command in a sentence.

CSS onlyPlain classes; no JavaScript in any stack.

Usage

Wrap the code in <code> with the class.

Add ca-button--primary to the main action of a view.

HTML

Examples

Guidance and accessibility

When to use

  • Use inline code for names people type or copy: class names, file names, commands.
  • For several lines, use a code block.

Accessibility

  • <code> tells assistive technology the text is code; keep the element.
  • Long names break instead of widening the page.

Classes

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

Classes of the code component
ClassKindUse it for
ca-codeComponentMonospace text on a tinted background; long names may break anywhere.

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.

Add ca-button--primary to the main action of a view.

Calaca skin

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

Add ca-button--primary to the main action of a view.

Proof skin

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

Add ca-button--primary to the main action of a view.

Crossview skin

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

Add ca-button--primary to the main action of a view.

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