thierryc/pretty-good-type-scale/android
Claude Code and agent skill by thierryc/pretty-good-type-scale
- community
Checking that the SKILL.md file is still in the repository.
Apply Pretty Good Type Scale (PGTS) in Android projects using the generated Jetpack Compose Material 3 typography export. Use when a coding agent needs to map PGTS roles to Compose TextStyle, Material Typography, sp units, Android font scaling, or native Android design-system typography.
Install
npx vskill@latest install thierryc/pretty-good-type-scale/androidSKILL.md
PGTS Android
Use this skill when the target is an Android project. Use platforms/android/PGTSTypography.kt as the generated starter export and tokens/pgts.tokens.json as the canonical source.
Canonical roles: editorial-mega-display, display-large, display, headline-large, headline, title-large, title, body, footnote, caption, legal.
Lean roles for product UI: display, headline-large, title-large, title, body, footnote.
Integration
Copy or import the generated Kotlin file into the host app module. Add a package declaration and font-family wiring as required by the host project.
Use PGTSRole for semantic identity, PGTSContext for mobile, desktop, or print contexts, and PGTS.style(role).toTextStyle() for Compose:
Use PGTSTypography as the Material 3 starter mapping when the app wants the lean ladder mapped into Typography.
Android Text Scaling
Keep screen typography in sp. Do not convert PGTS Android values to fixed pixels. The generated file uses sp so the user font-scale setting can still affect rendered text.
Apply the host app's font family separately through Compose typography or copied TextStyle values.
Role Mapping
displaymaps todisplayLarge.headline-largemaps toheadlineLarge.title-largemaps totitleLarge.titlemaps totitleMedium.bodymaps tobodyLarge.footnotemaps tolabelSmall.
Use the full anchor set directly from PGTS.styles when a surface needs editorial-mega-display, display-large, headline, caption, or legal.
Verification
- Test default Android font scale and at least one larger accessibility font scale.
- Confirm display roles do not overflow common compact widths.
- Confirm dense roles remain readable.
- Confirm the app's Material theme still owns color, weight, and font family.
- Run
npm run buildafter token changes andnpm run validatebefore returning work.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/android/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thierryc/pretty-good-type-scale/android)