Typography

Typography

dragoon0x Updated 13 repo stars

File contents

/typography

Generates a 9-step type scale (xs / sm / base / md / lg / xl / 2xl / 3xl / 4xl) anchored on 16px, using the ratio detected by /scan (or a sensible default if none was found).

When to use

  • The user wants to formalize their typography system
  • The user asks for a "type scale", "font tokens", or "type tokens"
  • After /scan detects a type ratio, to extract it as reusable tokens

Output

One file per run. Format chosen automatically from the stack, override with --format:

  • css → :root { --font-size-xs: ... }
  • tailwind → module.exports = { theme: { extend: { fontSize: { ... } } } }
  • js → export const fontSize = { xs: '...', ... }

Default dir: src/styles/. Override with --dir.

Run it

dragoon typography                           # preview
dragoon typography --apply                   # write
dragoon typography --format js --apply
dragoon typography --dir src/tokens --apply

Dragoon0x/dragoon-skills commit ec4845aea4

Frequently asked questions

npx get-skill add dragoon0x/typography