Skip to documentation

Design system / Sources & standards

Current repository source

typography.css

src/theming/primitives/typography.css

This view contains the escaped source read during the deployment build. Code and policy text are unchanged. Markdown is shown as source, not rendered as a document. A new deployment refreshes the content.

:root {
  /*
   * Typography primitives.
   *
   * The base rem size is 10px (1rem = 10px), so 1.6rem = 16px.
   * The fluid type scale supplies the active Tailwind utility contract.
   * Variables are grouped by purpose: family, size, line height, weight,
   * and letter spacing.
   */

  /* Font families */
  --cxh-font-sans: ui-sans-serif, system-ui, sans-serif;
  --cxh-font-mono: ui-monospace, monospace;

  /*
   * Fluid minor-third type scale (1.2 ratio).
   *
   * The medium step interpolates from 1.45rem (14.5px) at 360px to
   * 1.8rem (18px) at 2560px. Each other step derives from medium, so
   * the hierarchy is constant at every viewport width.
   */
  --cxh-type-size-md: clamp(1.45rem, calc(1.3927rem + 0.1591vw), 1.8rem);
  --cxh-type-size-xs: calc(var(--cxh-type-size-md) / 1.44);
  --cxh-type-size-sm: calc(var(--cxh-type-size-md) / 1.2);
  --cxh-type-size-lg: calc(var(--cxh-type-size-md) * 1.2);
  --cxh-type-size-xl: calc(var(--cxh-type-size-md) * 1.44);
  --cxh-type-size-2xl: calc(var(--cxh-type-size-md) * 1.728);
  --cxh-type-size-3xl: calc(var(--cxh-type-size-md) * 2.0736);
  --cxh-type-size-4xl: calc(var(--cxh-type-size-md) * 2.48832);
  --cxh-type-size-5xl: calc(var(--cxh-type-size-md) * 2.985984);
  --cxh-type-size-jumbo: calc(var(--cxh-type-size-md) * 3.583181);

  /* Adjustable reading rhythms, independent of the fluid size scale. */
  --cxh-type-line-height-tight: 1.4;
  --cxh-type-line-height-loose: 1.6;

  /* Existing interface defaults; values are theme details, not ADR policy. */
  --cxh-type-line-height-heading: 1.1;
  --cxh-type-line-height-title: 1.2;
  --cxh-type-line-height-body: var(--cxh-type-line-height-tight);
  --cxh-type-line-height-label: 1.2;

  /* Font weights */
  --cxh-font-weight-light: 300;
  --cxh-font-weight-normal: 400;
  --cxh-font-weight-medium: 500;
  --cxh-font-weight-semibold: 600;
  --cxh-font-weight-bold: 700;

  /* Letter spacing */
  --cxh-letter-spacing-tighter: -0.05em;
  --cxh-letter-spacing-tight: -0.025em;
  --cxh-letter-spacing-normal: 0;
  --cxh-letter-spacing-wide: 0.025em;
  --cxh-letter-spacing-wider: 0.05em;
  --cxh-letter-spacing-expanded: 0.12em;
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.