타이포그래피

폰트 스타일과 텍스트 서식

타이포그래피 시스템

Podo UI는 Display, Paragraph, Heading 스타일을 제공하며, 각 스타일은 모바일 환경에 맞춰 자동으로 조정됩니다. Pretendard 폰트를 기본으로 사용합니다.

Display 스타일

대형 제목과 히어로 섹션에 사용되는 Display 스타일입니다.

타이포그래피

display1

Size: 60px (Mobile: 36px)
Weight: 600
Line Height: 1.2
타이포그래피

display2

Size: 54px (Mobile: 32px)
Weight: 600
Line Height: 1.2
타이포그래피

display3

Size: 48px (Mobile: 28px)
Weight: 600
Line Height: 1.2
타이포그래피

display4

Size: 42px (Mobile: 24px)
Weight: 600
Line Height: 1.2
타이포그래피

display5

Size: 36px (Mobile: 20px)
Weight: 600
Line Height: 1.2
타이포그래피

display6

Size: 24px (Mobile: 18px)
Weight: 600
Line Height: 1.4
타이포그래피

display7

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

Paragraph 스타일

본문과 설명 텍스트에 사용되는 Paragraph 스타일입니다.

본문 텍스트는 읽기 쉽고 명확해야 합니다.

p1

Size: 24px (Mobile: 20px)
Weight: 400
Line Height: 1.4
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p2

Size: 20px (Mobile: 16px)
Weight: 400
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p3

Size: 16px (Mobile: 14px)
Weight: 400
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p3-semibold

Size: 16px (Mobile: 14px)
Weight: 600
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p4

Size: 14px (Mobile: 12px)
Weight: 400
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p4-semibold

Size: 14px (Mobile: 12px)
Weight: 600
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p5

Size: 12px (Mobile: 12px)
Weight: 400
Line Height: 1.6
본문 텍스트는 읽기 쉽고 명확해야 합니다.

p5-semibold

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

Heading 스타일

기본 HTML 태그에 자동으로 적용되는 스타일입니다.

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

CSS 클래스로 사용하기

HTML 요소에 직접 타이포그래피 클래스를 적용할 수 있습니다:

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>
실제 예제:
Display 4 제목
P2 크기의 본문 텍스트입니다.
P3 크기의 본문 텍스트입니다.
P3 Semibold 강조된 텍스트입니다.

SCSS에서 사용하기

SCSS 모듈에서 믹스인을 사용하여 타이포그래피를 적용할 수 있습니다:

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);
}

폰트 패밀리

기본 폰트로 Pretendard를 사용하며, CSS 변수로 커스터마이징이 가능합니다:

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

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

반응형

모든 타이포그래피 스타일은 모바일 환경에 맞춰 자동으로 크기가 조정됩니다.

팁: 모바일 브레이크포인트는 768px 이하입니다. 창 크기를 조정하여 타이포그래피 변화를 확인해보세요.