타이포그래피 (Typography)
모든 타이포그래피 요소가 반응형으로 동작해서, 기기와 뷰포트에 따라 크기가 자연스럽게 조절돼요.
Pico는 기본 글꼴 크기를 백분율로 정의하고 HTML 요소는 rem으로 정의해서, 사용자 화면 크기에 따라 모든 요소의 글자 크기가 비례적으로 커지는 구조를 만들어요.
출처: 문서
본문
반응형 글꼴 크기
| Breakpoint | xs | sm | md | lg | xl | xxl |
| Base | 16px | 17px | 18px | 19px | 20px | 21px |
| <h1> | 32px | 34px | 36px | 38px | 40px | 42px |
| <h2> | 28px | 29.75px | 31.5px | 33.25px | 35px | 36.75px |
| <h3> | 24px | 25.5px | 27px | 28.5px | 30px | 31.5px |
| <h4> | 20px | 21.25px | 22.5px | 23.75px | 25px | 26.25px |
| <h5> | 18px | 19.125px | 20.25px | 21.375px | 22.5px | 23.625px |
| <h6> | 16px | 17px | 18px | 19px | 20px | 21px |
| <small> | 14px | 14.875px | 15.75px | 16.625px | 17.5px | 18.375px |
rem 단위로 표시
사용자의 기본 글꼴 크기를 존중하기 위해, 기본 글꼴 크기는 사용자 화면 크기에 따라 커지는 백분율로 정의하고, HTML 요소는 rem으로 정의해요.
rem은 HTML 문서 글꼴 크기의 배수이기 때문에, 모든 HTML 요소의 글자 크기는 사용자 화면 크기에 비례해서 함께 커져요.
제목 (Headings)
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
제목 그룹 (Heading group)
<hgroup> 안에서는 여백이 합쳐지고, :last-child는 흐릿하게(음영 처리) 표시돼요.
<hgroup>
<h2>Get inspired with CSS</h2>
<p>How to use CSS to add glam to your Website?</p>
</hgroup>
인라인 텍스트 요소 (Inline text elements)
<abbr>...</abbr>
<strong>...</strong> <b>...</b>
<i>...</i> <em>...</em> <cite>...</cite>
<del>...</del>
<ins>...</ins>
<kbd>...</kbd>
<mark>...</mark>
<s>...</s>
<small>...</small>
<sub>...</sub>
<sup>...</sup>
<u>...</u>
인용구 (Blockquote)
<blockquote>
“Design is a funny word. Some people think
design means how it looks. But of course, if
you dig deeper, it's really how it works.”
<footer>
<cite>— Steve Jobs</cite>
</footer>
</blockquote>
수평선 (Horizontal rule)
<hr> 태그는 수평선을 렌더링해줘요.
<p>Paragraph before the horizontal line.</p>
<hr />
<p>Paragraph after the horizontal line.</p>