Storybook Storybook
v1.81.11

# Tipografia

A tipografia é usada para apresentar seu design e conteúdo da forma mais clara e eficiente possível.

# ⚠️ Importante

Os componentes de tipografia estão descontinuados. Procure utilizar as classes css para estilizar seu texto.

Os componentes CB1, CB2, CB3, CDisplay, CH1, CH2, CH3 e CSubtitle devem ser evitados.


# Estilos de tipografia disponíveis

DISPLAY: The quick brown fox jumps over the lazy dog

H1: The quick brown fox jumps over the lazy dog

H2: The quick brown fox jumps over the lazy dog

H3: The quick brown fox jumps over the lazy dog

SUBTITLE: The quick brown fox jumps over the lazy dog

B1: The quick brown fox jumps over the lazy dog

B2: The quick brown fox jumps over the lazy dog

B3: The quick brown fox jumps over the lazy dog

BTN: The quick brown fox jumps over the lazy dog

BTN-SM: The quick brown fox jumps over the lazy dog

INPUT: The quick brown fox jumps over the lazy dog

LABEL: The quick brown fox jumps over the lazy dog

TAG: The quick brown fox jumps over the lazy dog

<p class="c-text-display">DISPLAY: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-h1">H1: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-h2">H2: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-h3">H3: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-subtitle">SUBTITLE: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-b1">B1: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-b2">B2: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-b3">B3: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-btn">BTN: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-btn-sm">BTN-SM: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-input">INPUT: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-label">LABEL: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-hyperlink">HYPERLINK: The quick brown fox jumps over the lazy dog</p>
<p class="c-text-tag">TAG: The quick brown fox jumps over the lazy dog</p>

# API

Para usar as classes de tipografia é preciso primeiro importar o estilos.

import '@estrategiahq/coruja-web-ui/dist/coruja-web-ui.css'
1

# Estilos tipográficos

Cada classe disponível configura os aspectos: tamanho da fonte, peso da fonte e altura da linha.

Essas classes já são responsivas e se adequam para o tamanho do DS Mobile em resoluções abaixo de tablet.

# Desktop

ClasseTamanho Fonte (font-size)Espessura (font-weight)Altura linha (line-height)Estilos
.c-text-display3.625rem9004rem---
.c-text-h13rem7005rem---
.c-text-h22.25rem7003rem---
.c-text-h31.5rem7002rem---
.c-text-subtitle1.125rem7001.5rem---
.c-text-b11.125rem5001.75rem---
.c-text-b20.8125rem5001.5rem---
.c-text-b30.6875rem5001rem---
.c-text-btn0.8125rem7001.5rem---
.c-text-btn-sm0.6875rem5001remuppercase
.c-text-input0.8125rem5001.5rem---
.c-text-label0.8125rem7001.5rem---
.c-text-hyperlink0.8125rem7001.5remunderline
.c-text-tag0.5rem7001rem---

# Mobile

ClasseTamanho Fonte (font-size)Espessura (font-weight)Altura linha (line-height)Estilos
.c-text-display3rem9003.5rem---
.c-text-h12.25rem7003rem---
.c-text-h21.5rem7002rem---
.c-text-h31.125rem7001.75rem---
.c-text-subtitle1.125rem5001.75rem---
.c-text-b10.8125rem7001.5rem---
.c-text-b20.8125rem5001.5rem---
.c-text-b30.6875rem5001rem---
.c-text-btn0.8125rem7001.5rem---
.c-text-btn-sm0.6875rem5001remuppercase
.c-text-input0.8125rem5001.5rem---
.c-text-label0.8125rem7001.5rem---
.c-text-hyperlink0.8125rem7001.5remunderline
.c-text-tag0.5rem7001rem---

# ⚠️ Importante

Os componentes de tipografia estão descontinuados. Procure utilizar as classes css para estilizar seu texto.

Os componentes CB1, CB2, CB3, CDisplay, CH1, CH2, CH3 e CSubtitle devem ser evitados.