Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseOpenClawOpenClaw+21 more

    Tailwind Type Scale Generator

    2

    Picks a harmonious font-size scale for your Tailwind v4 project — one base size and one named ratio, applied everywhere from text-xs to h1.

    Free

    2 installs5.0 (1 review)
    Tailwind Type Scale Generator

    Tailwind Type Scale Generator

    Example session with this skill installed

    Apply a Perfect Fourth type scale at a 16px base to this project.

    • Read your context and instructions
    • Compiled the tailwind type scale
    • Generated the UI component

    Current project state

    • Target CSS: src/style.css
    • DESIGN.md: not found
    • tailwind.config.js: not found (v4 confirmed)
    • Existing --text-* variables: none found

    Type Scale Preview

    Config: base 16px x Perfect Fourth (1.333)

    Tailwind classSize (rem)Size (px)
    text-xs0.563rem9.0px
    text-sm0.750rem12.0px
    text-base1.000rem16.0px
    text-lg1.333rem21.3px
    text-xl1.777rem28.4px
    text-2xl2.369rem37.9px
    text-3xl3.157rem50.5px
    text-4xl4.209rem67.3px
    text-5xl5.610rem89.8px
    text-6xl7.478rem119.7px
    text-7xl9.969rem159.5px
    text-8xl13.288rem212.6px
    text-9xl17.713rem283.4px

    h1-h6 mapping:

    • h1 -> text-5xl (5.610rem)
    • h2 -> text-4xl (4.209rem)
    • h3 -> text-3xl (3.157rem)
    • h4 -> text-2xl (2.369rem)
    • h5 -> text-xl (1.777rem)
    • h6 -> text-lg (1.333rem)

    Apply this scale?

    Backup check

    This project has no uncommitted changes to protect against — proceeding.

    Applied

    Perfect Fourth scale (base 16px, ratio 1.333) applied to src/style.css.

    Changes

    • @theme: --text-xs through --text-9xl set (rem values only)
    • @theme: --line-height-none overridden to 1.1
    • @layer base: h1-h6 font-size and line-height mapped to the scale
    • HTML: explicit text-* and leading-* classes removed from 2 heading elements

    Conflicting classes found and removed

    #File:LineBeforeAfter
    1index.html:14<h2 class="text-ink font-semibold text-xl leading-tight mt-10 mb-4"><h2 class="text-ink font-semibold mt-10 mb-4"> (h2 now uses text-4xl via @layer base)
    2index.html:18<h3 class="mt-2 font-medium text-primary text-base"><h3 class="mt-2 font-medium text-primary"> (h3 now uses text-3xl via @layer base)

    Changes take effect immediately if the dev server is running.

    Heading line-height is set to 1.1 via @layer base (line-height: var(--line-height-none)). To adjust globally, change --line-height-none in your @theme block. Do not use leading-* Tailwind classes on headings — they override @layer base and break consistency.

    tailwind-type-scale-generator.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Most projects end up with font sizes picked one at a time, 14px here, 15px there, a heading that is almost but not quite double the body text. This skill sets a whole scale at once: one base size, one named ratio, and every Tailwind text size from text-xs to text-9xl falls out of that single formula, along with h1 through h6.

    What it does

    • Finds your Tailwind v4 entry file (the one with a @theme block) automatically, or asks if there is more than one
    • Asks for a base size (14, 16, 18, or 20px) and a scale ratio (Perfect Fourth, Major Third, Golden Ratio, or Minor Third), then shows the full text-xs to text-9xl table before touching anything
    • Maps h1 to h6 to the right step of the scale and sets a slightly loosened line-height for display sizes
    • Scans your HTML, Astro, JSX, TSX, and Vue files for headings with hardcoded text-* or leading-* classes that would silently override the new scale, and lists every one before removing them
    • Updates the typography section of DESIGN.md too, if your project has one

    How it works

    1. Checks the project for an existing scale, a v3 tailwind.config.js, and a DESIGN.md typography section before asking anything
    2. You pick a base size and a ratio; the full rem and px table is shown for approval before any file is touched
    3. If the project is a git repo with uncommitted changes, or not a git repo at all, you get a warning and a chance to back up first
    4. The scale is written into your @theme block, headings are mapped in @layer base, and any conflicting classes found in your markup are listed for you to approve, choose individually, or skip

    What it is not

    This is Tailwind CSS v4 only (the @theme directive and --text-* variables). For v3 projects, font sizes belong in theme.fontSize inside tailwind.config.js instead, and this skill will tell you that and stop rather than writing something that will not work.

    More from KMRVID

    The full Claude Code skill bundle for web design workflows is available on Gumroad: https://gaspanik.gumroad.com/l/kmrvid-claudeskills

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    2 people have installed this skill.

    Trust & safety

    Security scanned

    Verified clean 5 days ago

    • Free to download with an account

    Listed5 days ago
    Updated3 days ago

    What's inside

    Frequently Asked Questions