
Tailwind
Style HyperFrames composition HTML with Tailwind CSS v4 browser-runtime utilities and CSS-first theme tokens—not v3 PostCSS patterns.
Overview
Tailwind is an agent skill for the Build phase that applies Tailwind CSS v4.2 browser-runtime patterns to HyperFrames composition HTML.
Install
npx skills add https://github.com/heygen-com/hyperframes --skill tailwindWhat is this skill?
- Tailwind v4 contract pinned to @tailwindcss/browser@4.2.4 for init --tailwind projects
- window.__tailwindReady gate before frame capture—no CDN tailwindcss.com swaps
- CSS-first v4 theme tokens, custom utilities, and v3-to-v4 migration guidance
- Explicit split: composition HTML skill vs packages/studio Tailwind v3 + PostCSS stack
- Pinned runtime: @tailwindcss/browser@4.2.4
Adoption & trust: 62.6k installs on skills.sh; 25.6k GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
Your HyperFrames render looks unstyled or you are mixing Tailwind v3 config habits with a v4 browser-runtime composition project.
Who is it for?
Builders scaffolding or editing HyperFrames --tailwind projects who need v4-specific class and theme guidance.
Skip if: HyperFrames Studio (packages/studio) internals, or teams that should compile Tailwind to static CSS instead of the browser runtime.
When should I use this skill?
Scaffolding or editing HyperFrames --tailwind projects, writing utility classes in composition HTML, adding v4 theme tokens, debugging v3 vs v4 syntax, or choosing compile-to-CSS vs browser runtime.
What do I get? / Deliverables
Composition HTML uses the correct v4 utilities, theme tokens, and readiness contract so frames capture with styles applied.
- Corrected composition HTML and theme CSS
- v4-aligned utility class sets
- Runtime readiness troubleshooting notes
Recommended Skills
Journey fit
How it compares
HyperFrames composition Tailwind v4 runtime guide—not generic Tailwind v3 + webpack/PostCSS documentation.
Common Questions / FAQ
Who is tailwind for?
Solo creators using HyperFrames CLI compositions who want agent help with Tailwind v4 utilities and theme tokens in generated HTML.
When should I use tailwind?
When a project was created with hyperframes init --tailwind, you see window.__tailwindReady in index.html, or styles fail during frame capture on the browser runtime.
Is tailwind safe to install?
It is styling guidance for local composition files; review the Security Audits panel on this page before agents edit HTML or pull alternate CDN scripts.
SKILL.md
READMESKILL.md - Tailwind
# Tailwind CSS for HyperFrames HyperFrames `init --tailwind` uses the Tailwind browser runtime pinned to `@tailwindcss/browser@4.2.4`. Treat that as Tailwind v4, not v3. This skill is for composition HTML generated by the CLI. It is not for `packages/studio`, which still uses Tailwind v3 internally with `tailwind.config.js`, PostCSS, and `@tailwind` directives. ## When To Use - The user asks for Tailwind in a HyperFrames composition. - A project was created with `hyperframes init --tailwind`. - You see `window.__tailwindReady` in `index.html`. - You need utility classes, CSS-first theme tokens, custom utilities, or v3-to-v4 migration guidance. - The render has missing styles and the project is relying on the browser runtime. ## Version Contract - Pinned runtime: `@tailwindcss/browser@4.2.4`. - Browser runtime script is injected by the CLI. Do not replace it with `cdn.tailwindcss.com`. - HyperFrames waits for `window.__tailwindReady` before frame capture starts. - The readiness shim must stay deterministic: no render-loop polling APIs, no clock-based retries, no runtime network fetches beyond the pinned Tailwind runtime script. - For offline, locked-down, or production-stable renders, compile Tailwind to CSS and include the stylesheet directly instead of relying on the browser runtime. ## v4 Rules Tailwind v4 is CSS-first: ```html <style type="text/tailwindcss"> @theme { --color-brand: oklch(0.68 0.2 252); --font-display: "Inter", sans-serif; } @utility headline-balance { text-wrap: balance; letter-spacing: 0; } </style> ``` Avoid v3 setup patterns in browser-runtime compositions: ```css /* Do not use these in Tailwind v4 browser-runtime compositions. */ @tailwind base; @tailwind components; @tailwind utilities; ``` Do not add a `tailwind.config.js` just to define colors, fonts, spacing, or utilities for a v4 browser-runtime composition. Use `@theme` and `@utility` in a `text/tailwindcss` style block. If you truly need an existing JavaScript config for a compiled v4 build, load it explicitly from CSS with `@config`, then validate in the browser. Do not assume v4 auto-detects v3 config files. ## HyperFrames Composition Pattern Keep Tailwind responsible for static layout and visual style. Keep motion timing in GSAP or another seekable adapter. ```html <section class="clip absolute inset-0 grid place-items-center bg-zinc-950 text-white" data-start="0" data-duration="5" data-track-index="1" > <div class="w-[1280px] max-w-[82vw] text-center"> <p class="mb-6 text-xl font-medium uppercase tracking-[0.18em] text-cyan-300"> Render-ready Tailwind </p> <h1 class="text-7xl font-black leading-none text-balance"> Utility classes, deterministic frames. </h1> </div> </section> ``` For repeated items, prefer class lists plus CSS custom properties over generating class names dynamically: ```html <span class="inline-block translate-y-[calc(var(--i)*6px)] opacity-80" style="--i: 0"></span> <span class="inline-block translate-y-[calc(var(--i)*6px)] opacity-80" style="--i: 1"></span> <span class="inline-block translate-y-[calc(var(--i)*6px)] opacity-80" style="--i: 2"></span> ``` ## Dynamic Class Safety Tailwind's browser runtime scans the current document and generates CSS for class names it can see. Do not build render-critical class names only at seek time: ```js // Risky: Tailwind may not see every generated class before capture. element.className = `bg-${color}-500`; ``` Use complete class names in HTML, data attributes, or explicit CSS instead: ```html <div data-t