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.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.svg" alt="Measured on agentmods" 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 $0.00018 $0.01128
Sonnet 5 $0.00007 $0.00451
Haiku 4.5 $0.00004 $0.00226

Measured 3d ago against content hash 2c42db8c1385, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 3d 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. 3d 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 5mo ago), licensed MIT. It adds 36 tokens to every session and 2,257 once invoked, about $0.0002 per session on Opus 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

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

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

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

better-colors

Helps you build a color system and answer anything about color in your project. You can generate palettes, use semantic tokens, convert between formats, check contrast and more.

jakubkrehel/skills · 38 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens