dragoon0x/optik

type-scale

Generate a mathematical type scale from base size and ratio. Outputs pixel values, rem equivalents, and CSS custom properties. Use Perfect Fourth (1.333) for compact UIs, Major Third (1.250) for standard, or Perfect Fifth (1.500) for dramatic hierarchy.

First seen May 9, 2026

Installation

$ npx skills add dragoon0x/optik --skill type-scale

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from dragoon0x/optik · top by installs.

npx skills add dragoon0x/optik

Browse all from dragoon0x/optik

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,382 B
  • docs SUMMARY.md 271 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

/type-scale — Mathematical Type Scale Generator

Usage

/type-scale [base] [ratio]

Default: base=16px, ratio=1.250 (Major Third)

Available Ratios

  • Minor Second: 1.067 — very tight, for data-heavy UIs
  • Major Second: 1.125 — compact apps and dashboards
  • Minor Third: 1.200 — balanced, good default for apps
  • Major Third: 1.250 — clear hierarchy, good for marketing
  • Perfect Fourth: 1.333 — strong hierarchy, landing pages
  • Augmented Fourth: 1.414 — dramatic, editorial
  • Perfect Fifth: 1.500 — very dramatic, hero-focused

Output

Generate 7 scale stops and output as:

  1. Pixel values (rounded to nearest integer)
  2. Rem equivalents
  3. CSS custom properties
  4. Suggested usage (which element gets which size)

Rules

  • Round all values to whole pixels
  • Body text is always the base size
  • Minimum heading size is 1 step above base
  • Maximum 7 steps in the scale
  • For app UIs: use fixed scale. For marketing: fluid typography with clamp() is acceptable
  • Always pair with line-height recommendations: headings 1.1-1.2, body 1.5-1.7