toolkit/themes/shared/design-system/text-and-typography.css

Propagation: 100%

Back to Home
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Typography scale */
:root {
  font: message-box;
}

h1,
.heading-xlarge {
  font-weight: var(--heading-font-weight);
  font-size: var(--heading-font-size-xlarge);
}

h2,
.heading-large {
  font-weight: var(--heading-font-weight);
  font-size: var(--heading-font-size-large);
}

h3,
.heading-medium {
  font-weight: var(--heading-font-weight);
  font-size: var(--heading-font-size-medium);
}

/* Text helpers */
.text-deemphasized {
  font-size: var(--font-size-small);
  color: var(--text-color-deemphasized);
}

.text-error {
  color: var(--text-color-error);
  font-weight: var(--font-weight-bold);
}

.text-truncated-ellipsis {
  /* Will not work on `display: flex` items
    unless you wrap its contents with another element that has this class. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
Back to Home