一键导入
tailwind-v4-architect
Master guide for Tailwind CSS v4. Enforces CSS-first configuration, native container queries, and Vite-native performance patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master guide for Tailwind CSS v4. Enforces CSS-first configuration, native container queries, and Vite-native performance patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Tailwind v4 Architect |
| description | Master guide for Tailwind CSS v4. Enforces CSS-first configuration, native container queries, and Vite-native performance patterns. |
⚠️ CORE DIRECTIVE: Treat CSS as the configuration source. Tailwind v4 puts CSS variables and the
@themedirective at the center of the architecture.
DO NOT use tailwind.config.js unless absolutely necessary for complex JavaScript plugins.
DO use strict CSS variables for theming.
src/styles/global.css)@import "tailwindcss";
@theme {
/* Semantic Tokens (oklch preferred for wide gamut) */
--color-primary: oklch(0.55 0.25 260); /* Blue-ish */
--color-accent: oklch(0.85 0.15 85); /* Gold-ish */
/* Fluid Spacing */
--spacing-4xl: 2.25rem;
/* Fonts */
--font-display: "Playfair Display", serif;
}
Tailwind 4 is a PostCSS plugin no more—it's a native Vite plugin.
Verified Config (astro.config.mjs):
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
vite: { plugins: [tailwindcss()] }
});
Stop using media queries for components. Use container queries to make components portable.
@container@md:flex-row (Apply styles based on parent width)@apply for simple utilities (creates bloat)tailwind.config.js for simple colors@import from npm packages (Tailwind 4 verifies these automatically)npx tailwindcss --help to verify CLI availability.:root.Master agentic skill for the Smile Savers project. Enforces 'Council of Experts' standards for Astro 6, Tailwind 4, and Edge-Native excellence.
Guide for building Astro 5+ components using Content Layer, Actions, and Server Islands.
Fetch up-to-date library documentation for Astro, Tailwind CSS, TypeScript, and other Smile Savers project dependencies using Context7 MCP
Use this skill when the user asks to create a new section or module (e.g., /blog, /docs) using Astro 6 standards.
Performance profiling principles. Measurement, analysis, and optimization techniques.
Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.