Foundations

Typography

사용 예시

이름

제목, 본문, 라벨처럼 쓰는 곳이 정해진 글자에 써요.

display주문부터 배송까지
title주문 상세
section결제 수단
subsection받는 사람
prose주문한 순서대로 보여 줘요.
value1,204,000
label저장
caption최근 30일 기준이에요.
microNEW
tsx
<p className="text-display">주문부터 배송까지</p><p className="text-title">주문 상세</p><p className="text-section">결제 수단</p><p className="text-subsection">받는 사람</p><p className="text-prose">주문한 순서대로 보여 줘요.</p><p className="text-value font-mono">1,204,000</p><p className="text-label">저장</p><p className="text-caption">최근 30일 기준이에요.</p><p className="text-micro">NEW</p>

스케일

이름에 없는 크기가 필요할 때 써요. 숫자가 px 크기이고 굵기는 400이에요.

Agt10
Agt11
Agt12
Agt13
Agt14
Agt16
Agt18
Agt20
Agt24
Agt28
Agt32
Agt40
Agt48
Agt56
Agt64
tsx
<p className="text-t28 font-mono">1,204</p><p className="text-t64 font-mono">14:30</p>

이름과 스케일

결제 금액1,204,000
결제 금액1,204,000

화면 폭

prose와 value는 640px 아래에서 커져요.

640px 아래

주문한 순서대로 보여 줘요.

1,204,000

640px 위

주문한 순서대로 보여 줘요.

1,204,000

tsx
<p className="text-prose">주문한 순서대로 보여 줘요.</p><p className="text-value font-mono">1,204,000</p>

고정폭 글꼴

주문 번호, 금액처럼 시스템이 만든 값에 font-mono를 붙여요. code, pre, kbd, samp는 붙이지 않아도 돼요.

주문 번호A-2026-0831-0042
결제 금액0000001204000
tsx
<div className="flex items-center justify-between">  <span className="text-label">주문 번호</span>  <span className="text-value font-mono">A-2026-0831-0042</span></div><div className="flex items-center justify-between">  <span className="text-label">결제 금액</span>  <span className="text-value font-mono">0000001204000</span></div>

덧붙이기

행간, 굵기, 글꼴, 색은 이름 위에 덧붙이고, 크기가 다르면 이름을 바꿔요. 행간은 leading-16처럼 숫자로 적어요.

14:30

1,204개

tsx
<p className="text-t64 leading-16 font-mono">14:30</p><p className="text-t32 font-medium">1,204개</p>

컨트롤

추가 가이드

값 바꾸기

전역 CSS에 적어요. 이름은 3줄을 함께 바꾸고, prose와 value는 --pds-prose, --pds-value에 640px 양쪽 값을 적어요.

css
@import "tailwindcss";@import "@pantoia/ui/tailwind.css";/* 이름 하나. 크기, 행간, 굵기를 함께 적어요 */@theme {  --text-caption: 12px;  --text-caption--line-height: 16px;  --text-caption--font-weight: 400;}/* prose와 value. 640px 아래 값과 위 값 */:root {  --pds-prose: 17px; --pds-prose-lh: 25px;  @variant sm { --pds-prose: 15px; --pds-prose-lh: 23px; }}

글꼴 바꾸기

init이 전역 CSS에 추가한 Pretendard 줄을 쓸 글꼴로 바꾸고, --font-sans에 그 글꼴 이름을 적어요. 고정폭 글꼴은 --font-mono예요.

css
@import "tailwindcss";@import "@pantoia/ui/tailwind.css";@import "@fontsource-variable/noto-sans-kr";@theme {  --font-sans: "Noto Sans KR Variable", sans-serif;}

새 값 더하기

이름에 없는 크기와 굵기가 필요할 때 써요. tv.ts에서는 text 목록에 더해요.

css
/* 크기, 행간, 굵기가 한 벌이에요. text-intro처럼 써요 */@theme {  --text-intro: 18px;  --text-intro--line-height: 26px;  --text-intro--font-weight: 400;}

명세

글자

값은 크기 / 행간 / 굵기예요. 값이 2개면 640px 아래, 위 순이에요.

글자
이름값설명
이름
text-display28 / 38 / 700홈 히어로
text-title24 / 32 / 700페이지 제목
text-section20 / 27 / 700섹션 제목, Dialog 제목
text-subsection16 / 22 / 700카드 제목
text-prose16 / 24 / 400, 14 / 22 / 400본문, Callout
text-value16 / 22 / 400, 14 / 19 / 400Input, Select의 값
text-label14 / 19 / 500라벨, 버튼, 탭
text-caption13 / 18 / 400도움말, Tooltip
text-micro11 / 15 / 500Badge, Kbd
스케일
text-t1010 / 14 / 400
text-t1111 / 15 / 400
text-t1212 / 16 / 400
text-t1313 / 18 / 400
text-t1414 / 19 / 400
text-t1616 / 22 / 400size가 lg인 컨트롤
text-t1818 / 24 / 400
text-t2020 / 27 / 400
text-t2424 / 32 / 400
text-t2828 / 38 / 400
text-t3232 / 43 / 400
text-t4040 / 54 / 400
text-t4848 / 65 / 400
text-t5656 / 76 / 400
text-t6464 / 86 / 400
글꼴과 굵기
font-sansPretendard Variable기본 글꼴
font-monoJetBrains Mono한글은 Pretendard로 나와요
font-normal400
font-medium500
font-bold700