heygen-com/hyperframes

tailwind

提供 HyperFrames 中 Tailwind CSS 4.2 的运行时写法,适合用 `hyperframes init --tailwind` 创建的项目。类名、构建方式和版本兼容性应以当前工程为准。

  • 历史版本 SKILL.md
  • 已有中文用途摘要
  • 安装与运行未实测
先判断是否解决你的问题

tailwind 是什么?

提供 HyperFrames 中 Tailwind CSS 4.2 的运行时写法,适合用 hyperframes init --tailwind 创建的项目。类名、构建方式和版本兼容性应以当前工程为准。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 tailwind,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 tailwind

请在 Codex 的当前工作环境中安装并检查 tailwind 这个 Skill。

项目身份:heygen-com/hyperframes / tailwind
来源:https://github.com/heygen-com/hyperframes/blob/68bd52ac6d6b1017fee944d3499f57a5c4d89774/skills/tailwind/SKILL.md
已定位的源文件:skills/tailwind/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-05-01T00:07:00+02:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:54:27.362Z
中文使用说明
已有中文用途摘要;具体用法尚待逐项整理
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

skills/tailwind/SKILL.md · 抓取时间 2026-11-17T10:54:27.362Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Tailwind CSS v4.2 browser-runtime patterns for HyperFrames compositions. Use when scaffolding or editing projects created with `hyperframes init --tailwind`, writing Tailwind utility classes in composition HTML, adding CSS-first Tailwind v4 theme tokens, debugging v3 vs v4 syntax, or deciding when to compile Tailwind to CSS instead of using the browser runtime.

查看源文件章节 / Source sections
  • 原文:Tailwind CSS for HyperFrames
  • 原文:When To Use
  • 原文:Version Contract
  • 原文:v4 Rules
  • 原文:HyperFrames Composition Pattern
  • 原文:Dynamic Class Safety
  • 原文:Video-Specific Guardrails
  • 原文:Validation
  • 原文:Quick Debug Checklist
  • 原文:Credits And References
原文: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-tone="blue" class="bg-blue-500 data-[tone=rose]:bg-rose-500"></div> ``` If a generated class is unavoidable, make sure the full class token appears in a `text/tailwindcss` block before validation.

文件 SHA256:a19824a7bedeeafe1639144cc986fdc9ddc9e26c3626bbfb34de67d61a53bc38

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

Tailwind CSS v4.2 browser-runtime patterns for HyperFrames compositions. Use when scaffolding or editing projects created with `hyperframes init --tailwind`,…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识tailwind
来源仓库heygen-com/hyperframes
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次284
快照累计安装量71486

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源