Ling: Skill for Claude Code

.agents/skills/tailwind-patterns/SKILL.md

tailwind-patterns is a skill for Claude Code from MisonL/Ling. It costs 36 tokens per session (2,257 once invoked), scanned A, original, MIT.

A guide to Tailwind CSS v4, a CSS framework for styling interfaces with reusable utility classes, CSS-based configuration, container queries, and design tokens.

In plain words
What is it for?
Use it to configure Tailwind v4, define shared design values, build responsive components, and apply modern CSS patterns.
Why use it?
It helps avoid outdated Tailwind setup and keeps colors, spacing, typography, and responsive styles organized.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is MisonL/Ling's own configuration. It tells Claude Code how to work on Ling itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Ling configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MisonL/Ling. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MisonL/Ling/main/.agents/skills/tailwind-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MisonL/Ling

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tailwind-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/misonl/ling/tailwind-patterns/github.svg)](https://agentmods.dev/skills/misonl/ling/tailwind-patterns)
Your own site
<a href="https://agentmods.dev/skills/misonl/ling/tailwind-patterns"><img src="https://agentmods.dev/badge/skills/misonl/ling/tailwind-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tailwind-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/misonl/ling/tailwind-patterns"><img src="https://agentmods.dev/badge/skills/misonl/ling/tailwind-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,257 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02257
Opus 5.5 $0.00014 $0.00903
Sonnet 5.5 $0.00007 $0.00451
Haiku 4.5 $0.00004 $0.00226

Measured 1mo ago against content hash 2c42db8c1385, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tailwind-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/tailwind-patterns/SKILL.md · 270 lines

How it starts

The opening of the file, as written. The whole thing — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tailwind CSS 模式(v4,2025)

采用 CSS 原生配置的现代 Utility-first CSS(工具优先)。


1. Tailwind v4 架构

相比 v3 的变化

v3(Legacy) v4(Current)
tailwind.config.js 基于 CSS 的 @theme 指令
PostCSS plugin Oxide 引擎(约 10x 更快)
JIT mode 原生内建、始终开启
Plugin system CSS 原生能力增强
@apply directive 仍可用,但不推荐重度依赖

v4 核心概念

概念 说明
CSS-first(CSS 优先) 配置写在 CSS 中,而不是 JavaScript
Oxide Engine Rust 编译引擎,速度更快
Native Nesting 不依赖 PostCSS 的 CSS 嵌套
CSS Variables 设计 token 通过 --* 变量暴露

2. 基于 CSS 的配置

主题定义

@theme {
  /* Colors - use semantic names */
  --color-primary: oklch(0.7 0.15 250);
  --color-surface: oklch(0.98 0 0);
  --color-surface-dark: oklch(0.15 0 0);
  
  /* Spacing scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

何时扩展与覆盖

动作 适用场景
Extend 在保留默认值的同时新增
Override 需要整体替换默认刻度体系
Semantic tokens 采用项目语义命名(primary、surface)

3. 容器查询(v4 原生)

Breakpoint 与 Container 的区别

类型 响应对象
Breakpoint(断点) (md:) 视口宽度(viewport)
Container(容器) (@container) 父容器宽度

容器查询用法

模式 类名
定义容器 在父元素上添加 @container
容器断点 在子元素上使用 @sm:、@md:、@lg:
命名容器 @container/card 提升语义与精确性

何时使用

场景 选择
页面级布局 视口断点
组件级响应式 容器查询
可复用组件 容器查询(与上下文解耦)

4. 响应式设计

断点系统

前缀 最小宽度 目标
(none) 0px Mobile-first 基础样式
sm: 640px 大手机/小平板
md: 768px 平板
lg: 1024px 笔记本
xl: 1280px 桌面端
2xl: 1536px 大屏桌面

Mobile-first 原则

  1. 先写移动端基础样式(无前缀)
  2. 再用前缀添加大屏覆盖规则
  3. 示例:w-full md:w-1/2 lg:w-1/3

5. 深色模式

配置策略

方法 行为 适用场景
class 通过 .dark 类切换 需要手动主题切换
media 跟随系统主题 不提供用户开关
selector 自定义选择器(v4) 复杂多主题体系

Read the full file on GitHub · 270 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 270 lines · 36 tokens per session scan A 2c42db8c1385

Subscribe to this mod's changes

tailwind-patterns is a skill published in the GitHub repository MisonL/Ling (8 stars, last pushed 7mo ago), licensed MIT. It adds 36 tokens to every session and 2,257 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

anti-slop-design

Autonomous Principal Design Technologist. Cures vibe-coded software from AI frontend slop using curated token archetypes and 7-axis quality gating.

sickn33/agentic-awesome-skills · 34 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

open-design-setup

Prepare or repair a project's prototyping environment so open-design can build prototypes with the project's own component library and render them through the project's toolchain. Use when the library target is needed and docs/design/prototyping.md is missing, stale, or failing; excludes HTML-only design work and…

compozy/compozy · 67 tokens

frontend-visual-qa

Audits rendered UI and specific task/object-link handoffs; excludes ordinary source citations alone. Audits already-rendered UI and Markdown/Obsidian image layout — web app, deck/slide, dashboard, design-system, or Electron/native app — via real-browser/native-app journeys and a Playwright sweep. Use after UI…

daymade/claude-code-skills · 125 tokens