font-size
하는 일
이 스킬은 사이트 CSS의 글꼴 크기를 검토하며, 특히 휴대폰을 살핍니다. 모든 방문자가 읽기 쉬운 텍스트를 원하는 디자이너와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓휴대폰에서 본문 텍스트가 너무 작아 방문자가 확대해야 할 때.
- ✓CSS가 브라우저 텍스트 설정을 무시하는 고정 픽셀 크기를 쓸 때.
- ✓접근성 지침에 맞춰 텍스트 크기 조절을 점검할 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/font-size/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“모바일에서 텍스트가 읽기 쉬운지 CSS를 확인해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 글꼴 크기 선언을 찾아 12픽셀 미만 크기나 본문이 16픽셀 미만인 경우, 그리고 사용자 설정을 무시하는 크기를 표시합니다. rem이나 em 같은 상대 단위를 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Use readable font sizes on mobile
Approximately 1 in 3 adults over 65 increases their browser's default font size. Low-vision users who cannot use screen magnifiers rely on browser font size settings as their primary accessibility tool. If font sizes are set in px only, browser font size preferences are ignored entirely. Text smaller than 16px on mobile forces all users to zoom in, breaking the page layout and triggering horizontal scroll. iOS Safari's auto-inflation of sub-12px text causes unintended layout shifts.
Quick Reference
- Body text should be at least 16px (1rem) on mobile — smaller sizes force users to zoom
- Avoid
font-sizevalues below 12px; iOS Safari ignores values below 12px and auto-inflates them - Use
remoremunits instead ofpxso text scales with the user's browser font size preference - Never set
font-size: 100%on<html>using an override that blocks user scaling — respect the browser default (16px) - WCAG 2.1 SC 1.4.4 (Resize Text, Level AA): text must be resizable up to 200% without loss of content or functionality
Check
Find all CSS font-size declarations. Flag: (1) body text or paragraph text set below 16px (or 1rem); (2) any font-size below 12px; (3) font-sizes set in px on <html> or <body> that override the browser default; (4) font-sizes that do not scale proportionally when the browser zoom is set to 200% (test in Chrome DevTools by setting font-size in browser settings or using zoom). Check that text remains readable and layout does not break at 200% zoom.
Fix
(1) Convert pixel font sizes to rem units: divide the pixel value by 16 (the browser default) — e.g., 14px becomes 0.875rem. (2) Set body text to at least 1rem (16px equivalent) on mobile. (3) Replace html { font-size: 10px } (a common reset trick) with html { font-size: 62.5% } or avoid font-size resets entirely — instead use rem values calculated from the actual 16px base. (4) If small text is intentional (captions, footnotes), ensure it is at least 0.75rem (12px) and use font-size: 0.75rem so it scales with user preferences.
Explain
WCAG 2.1 SC 1.4.4 (Resize Text) requires that text can be resized up to 200% without loss of content or functionality, except for captions and images of text. Using px units for font sizes makes text immune to browser font size settings (though not to browser zoom). Using rem or em units allows text to scale with the root font size, which the user can adjust in browser settings — this is the preferred approach. iOS Safari also has a built-in heuristic that inflates text smaller than 12px when the page is displayed in mobile view, which can cause layout inconsistencies.
Code Review
Review stylesheets, component styles, and responsive states related to Use readable font sizes on mobile. Flag exact selectors, declarations, or breakpoints that violate the rule in the rendered UI.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
자주 묻는 질문
상대 단위가 왜 도움이 되나요?
방문자의 브라우저 글꼴 설정에 따라 크기가 조절되므로, 더 큰 글씨가 필요한 사람도 그것을 쓸 수 있습니다.
가장 작은 크기는 얼마까지 허용하나요?
12픽셀 미만은 피하라고 이 스킬은 말합니다. iOS Safari가 자동으로 키울 수 있기 때문입니다.
어떤 접근성 규칙을 언급하나요?
WCAG 1.4.4를 언급하며, 이는 콘텐츠를 잃지 않고 텍스트를 200퍼센트까지 키울 수 있어야 한다는 규칙입니다.
상세 정보
작성자의 원본 설명
Use when applies to all CSS `font-size` declarations, particularly those using `px` units for body text, UI labels, and navigation. Use when auditing mobile responsiveness and accessibility compliance. Check for `font-size` in media queries targeting small screens.
인기도
- GitHub 스타
- 75k
- 순위
- #2854
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
canvas
394k에이전트가 연결된 Mac 패널에 호스팅된 시각적 위젯을 띄우고, 패널을 숨기거나 다른 페이지로 옮기도록 돕습니다.
control-ui
394k에이전트가 세션, 대시보드, 연결된 Gateway를 포함해 OpenClaw Control UI를 정리하고 문제를 해결하도록 돕습니다.
diagram-maker
394k에이전트가 프로세스, 시스템 구조, 화이트보드 스케치를 위해 SVG, HTML, 편집 가능한 Excalidraw 파일로 명확한 다이어그램을 만들도록 돕습니다.