Skip to documentation

Design system / Sources & standards

Current repository source

typography.css

src/theming/semantics/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 {
  /*
   * Semantic typography tokens. These alias primitive font sizes,
   * line heights, weights, and families to purpose-driven names.
   *
   * Role aliases expose independent size and line-height properties.
   */

  /*
   * Fluid interface type roles. Size and line-height remain independent
   * properties so components can select each deliberately.
   */
  --reading-rhythm-tight: var(--cxh-type-line-height-tight);
  --reading-rhythm-loose: var(--cxh-type-line-height-loose);

  /* A semantic family accent, composed with any existing fluid size role. */
  --font-family-monospace-accent: var(--cxh-font-mono);

  --text-body: var(--cxh-type-size-md);
  --text-body--line-height: var(--cxh-type-line-height-body);
  --text-secondary: var(--cxh-type-size-sm);
  --text-secondary--line-height: var(--cxh-type-line-height-body);
  --text-label: var(--cxh-type-size-sm);
  --text-label--line-height: var(--cxh-type-line-height-label);
  --text-eyebrow: var(--cxh-type-size-xs);
  --text-eyebrow--line-height: var(--cxh-type-line-height-label);
  --text-eyebrow--font-weight: var(--cxh-font-weight-semibold);
  --letter-spacing-eyebrow: var(--cxh-letter-spacing-expanded);

  --text-title: var(--cxh-type-size-xl);
  --text-title--line-height: var(--cxh-type-line-height-title);
  --text-secondary-title: var(--cxh-type-size-lg);
  --text-secondary-title--line-height: var(--cxh-type-line-height-title);
  --text-title-jumbo: var(--cxh-type-size-jumbo);
  --text-title-jumbo--line-height: var(--cxh-type-line-height-heading);
  --text-secondary-title-jumbo: var(--cxh-type-size-5xl);
  --text-secondary-title-jumbo--line-height: var(--cxh-type-line-height-heading);

}

@layer utilities {
  .text-body {
    font-size: var(--text-body);
    line-height: var(--tw-leading, var(--text-body--line-height));
  }

  .text-supporting {
    font-size: var(--text-secondary);
    line-height: var(--tw-leading, var(--text-secondary--line-height));
  }

  .text-label {
    font-size: var(--text-label);
    line-height: var(--tw-leading, var(--text-label--line-height));
  }

  .text-eyebrow {
    font-size: var(--text-eyebrow);
    line-height: var(--tw-leading, var(--text-eyebrow--line-height));
    font-weight: var(--tw-font-weight, var(--text-eyebrow--font-weight));
    letter-spacing: var(--tw-tracking, var(--letter-spacing-eyebrow));
  }

  .text-title {
    font-size: var(--text-title);
    line-height: var(--tw-leading, var(--text-title--line-height));
  }

  .text-title-jumbo {
    font-size: var(--text-title-jumbo);
    line-height: var(--tw-leading, var(--text-title-jumbo--line-height));
  }

  .text-secondary-title-jumbo {
    font-size: var(--text-secondary-title-jumbo);
    line-height: var(--tw-leading, var(--text-secondary-title-jumbo--line-height));
  }
}
All sources and standards
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.