tailwind

Applies Tailwind CSS v4 browser-runtime patterns to HyperFrames composition HTML.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/gmolike/Claude-Template --skill tailwind-gmolike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwind
Source: https://github.com/gmolike/Claude-Template/tree/main/.agents/skills/tailwind
Command: npx skills add https://github.com/gmolike/Claude-Template --skill tailwind-gmolike

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tailwindcss/browser.

What problem does it solve? Styling HyperFrames video compositions with Tailwind CSS v4's browser runtime introduces version-specific pitfalls: v3 directives break, dynamically generated class names get missed by the runtime scanner, and missing styles cause flashes during deterministic frame capture. This Skill provides the exact patterns and guardrails to write Tailwind v4 correctly inside HyperFrames compositions. ## Core Features & Use Cases - CSS-first v4 theming: Define design tokens with @theme and custom utilities with @utility inside text/tailwindcss style blocks instead of a tailwind.config.js. - Render-safe styling rules: Enforce static class names, explicit border colors, stable dimensions, and transform/opacity animations so frames render deterministically. - Validation workflow: Run npx hyperframes lint, validate, inspect, and a draft render proof to confirm no missing-style flashes on frame 0. - Use Case: After scaffolding a project with hyperframes init --tailwind, you need brand colors and a headline layout that renders identically in preview and final MP4 output. This Skill guides you to declare tokens in @theme, use complete static class tokens, and verify window.__tailwindReady resolves before capture. ## Quick Start Ask the assistant to add Tailwind v4 theme tokens and utility classes to my HyperFrames composition and validate the render output.

Frequently Asked Questions about tailwind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Tailwind CSS v4 in a HyperFrames composition?

Scaffold the project with hyperframes init --tailwind, which injects the pinned @tailwindcss/[email protected] runtime script. Define tokens and utilities in a style block with type text/tailwindcss using @theme and @utility, then use static utility classes in your composition HTML.

What is the difference between Tailwind v3 and v4 browser runtime setup?

Tailwind v4 is CSS-first: it replaces @tailwind base/components/utilities directives and tailwind.config.js with @theme and @utility blocks inside text/tailwindcss style tags. The v4 browser runtime also renames utilities like shadow-xs, rounded-xs, and outline-hidden.

Why are Tailwind styles missing in my HyperFrames render output?

Missing styles usually mean the browser runtime had not finished generating CSS before frame capture. Confirm window.__tailwindReady exists and resolves before capture, that the script points to @tailwindcss/[email protected], and that all class names appear statically in the HTML.

Can I use dynamically generated Tailwind class names in video compositions?

Dynamically assembled class names like template literals are risky because the browser runtime only generates CSS for classes it can see in the document. Use complete static class tokens, data attributes with variant selectors, or CSS custom properties instead.

When should I compile Tailwind to CSS instead of using the browser runtime?

Compile Tailwind to a static stylesheet for offline, locked-down, or production-stable renders where runtime network fetches are unacceptable. Include the compiled CSS directly in the composition rather than relying on the @tailwindcss/browser script.