Typography

Font styles and text formatting

Typography System

Podo UI provides Display, Paragraph, and Heading styles, each automatically adjusted for mobile environments. Pretendard is used as the default font.

Display Styles

Display styles used for large headings and hero sections.

Typography

display1

Size: 60px (Mobile: 36px)
Weight: 600
Line Height: 1.2
Typography

display2

Size: 54px (Mobile: 32px)
Weight: 600
Line Height: 1.2
Typography

display3

Size: 48px (Mobile: 28px)
Weight: 600
Line Height: 1.2
Typography

display4

Size: 42px (Mobile: 24px)
Weight: 600
Line Height: 1.2
Typography

display5

Size: 36px (Mobile: 20px)
Weight: 600
Line Height: 1.2
Typography

display6

Size: 24px (Mobile: 18px)
Weight: 600
Line Height: 1.4
Typography

display7

Size: 20px (Mobile: 16px)
Weight: 600
Line Height: 1.6

Paragraph Styles

Paragraph styles used for body text and descriptions.

Body text should be readable and clear.

p1

Size: 24px (Mobile: 20px)
Weight: 400
Line Height: 1.4
Body text should be readable and clear.

p2

Size: 20px (Mobile: 16px)
Weight: 400
Line Height: 1.6
Body text should be readable and clear.

p3

Size: 16px (Mobile: 14px)
Weight: 400
Line Height: 1.6
Body text should be readable and clear.

p3-semibold

Size: 16px (Mobile: 14px)
Weight: 600
Line Height: 1.6
Body text should be readable and clear.

p4

Size: 14px (Mobile: 12px)
Weight: 400
Line Height: 1.6
Body text should be readable and clear.

p4-semibold

Size: 14px (Mobile: 12px)
Weight: 600
Line Height: 1.6
Body text should be readable and clear.

p5

Size: 12px (Mobile: 12px)
Weight: 400
Line Height: 1.6
Body text should be readable and clear.

p5-semibold

Size: 12px (Mobile: 12px)
Weight: 600
Line Height: 1.6

Heading Styles

Styles automatically applied to default HTML tags.

Heading 1

h1

Size: 54px (Mobile: 24px)
Weight: 600
Line Height: 1.2

Heading 2

h2

Size: 42px (Mobile: 18px)
Weight: 600
Line Height: 1.2

Heading 3

h3

Size: 36px (Mobile: 16px)
Weight: 600
Line Height: 1.2

Using with CSS Classes

You can directly apply typography classes to HTML elements:

HTML
<!-- Display 스타일 -->
<div class="display1">대형 제목</div>
<div class="display4">중형 제목</div>
<div class="display7">소형 제목</div>

<!-- Paragraph 스타일 -->
<p class="p1">큰 본문 텍스트</p>
<p class="p3">일반 본문 텍스트</p>
<p class="p3-semibold">강조된 본문 텍스트</p>
<p class="p5">작은 본문 텍스트</p>
Live Examples:
Display 4 Heading
P2 size body text.
P3 size body text.
P3 Semibold emphasized text.

Using in SCSS

You can apply typography using mixins in SCSS modules:

component.module.scss
@use 'podo-ui/mixin' as *;

.title {
  @include display3;
  margin-bottom: s(5);
}

.subtitle {
  @include display6;
  color: color(default-deep);
}

.body {
  @include p3;
  line-height: 1.8;
}

.caption {
  @include p5;
  color: color(default);
}

Font Family

Pretendard is used as the default font, customizable via CSS variables:

CSS
:root {
  --base-font-family: 'Pretendard', sans-serif;
}

/* 커스텀 폰트 사용 */
:root {
  --base-font-family: 'Your Custom Font', -apple-system, sans-serif;
}

Responsive

All typography styles automatically adjust for mobile environments.

Tip: The mobile breakpoint is below 768px. Resize your window to see typography changes.