page-tailwindifylisted
Install: claude install-skill chrismccoy/forge
# Page Tailwindify
This skill reproduces a live page's **exact look** in clean, semantic Tailwind. The
original's framework-generated class hashes (`css-1a2b3c`, `sc-bdfBwQ`, `jsx-1234`)
are gone, replaced by real utility classes (`flex gap-4 rounded-lg px-6 hover:bg-…`).
The design does not change — colors, type, spacing, and layout stay identical. Only
the styling *system* changes, from opaque generated selectors to readable Tailwind.
The accuracy trick: don't guess Tailwind from a screenshot, and don't rely on
`getComputedStyle` alone (one state — loses `@media`, `:hover`, breakpoints). Drive
the rewrite from the page's **real markup and CSS** plus a dump of **real computed
values**, so every Tailwind class comes from an actual number, not an eyeball.
This sits between its two sibling skills: `page-cloner` keeps the exact look but keeps
the ugly selectors (byte-exact extract); `page-redesigner` rebuilds and changes the
look. This one keeps the look, cleans the selectors.
## The parts
1. **Capture ground truth** — reuse `page-cloner` to extract the faithful DOM + real
CSS, plus screenshots; dump `scripts/computed.js` values *if* translating. See
`references/capture-notes.md` for the capture gotchas.
2. **Detect, then branch** into one of two modes:
- **`references/rehost.md`** — already-Tailwind page: swap the inlined compiled CSS
for the Tailwind CDN. Nothing to translate.
- **`references/rewrite.md`** (+ **`references/mapping.md`**) — hashed / CSS-in