Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/javabutdif-tailwind-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
tailwind-patterns- Description
- Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.
- License
- MIT
- Instructions
- 245 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Tailwind CSS Patterns (v4 - 2025)
Modern utility-first CSS with CSS-native configuration.
## When to Use
Use this skill when configuring Tailwind v4, using CSS-first theme and design tokens, or implementing container queries and modern Tailwind patterns.
## 1. Tailwind v4 Architecture
### What Changed from v3
v3 (Legacy) | v4 (Current)
--- | ---
tailwind.config.js | CSS-based @theme directive
PostCSS plugin | Oxide engine (10x faster)
JIT mode | Native, always-on
Plugin system | CSS-native features
@apply directive | Still works, discouraged
### v4 Core Concepts
- CSS-first: Configuration in CSS, not JavaScript
- Oxide Engine: Rust-based compiler, much faster
- Native Nesting: CSS nesting without PostCSS
- CSS Variables: All tokens exposed as --* vars
## 2. CSS-Based Configuration
### Theme Definition
```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;
}
```
### When to Extend vs Override
Action | Use When
--- | ---
Extend | Adding new values alongside defaults
Override | Replacing default scale entirely
Semantic tokens | Project-specific naming (primary, surface)
## 3. Container Queries (v4 Native)
### Breakpoint vs Container
Type | Responds To
--- | ---
Breakpoint (md:) | Viewport width
Container (@container) | Parent element width
### Container Query Usage
- Define container: `@container` on parent
- Container breakpoint: `@sm:`, `@md:`, `@lg:` on children
- Named containers: `@container/card` for specificity
### When to Use
Scenario | Use
--- | ---
Page-level layouts | Viewport breakpoints
Component-level responsive | Container queries
Reusable components | Container queries (context-independent)
## 4. Responsive Design
### Breakpoint System
Prefix | Min Width | Target
--- | --- | ---
(none) | 0px | Mobile-first base
sm: | 640px | Large phone / small tablet
md: | 768px | Tablet
lg: | 1024px | Laptop
xl: | 1280px | Desktop
2xl: | 1536px | Large desktop
### Mobile-First Principle
- Write mobile styles first (no prefix)
- Add larger screen overrides with prefixes
- Example: `w-full md:w-1/2 lg:w-1/3`
## 5. Dark Mode
### Configuration Strategies
Method | Behavior | Use When
--- | --- | ---
class | `.dark` class toggles | Manual theme switcher
media | Follows system preference | No user control
selector | Custom selector (v4) | Complex theming
### Dark Mode Pattern
Element | Light | Dark
--- | --- | ---
Background | `bg-white` | `dark:bg-zinc-900`
Text | `text-zinc-900` | `dark:text-zinc-100`
Borders | `border-zinc-200` | `dark:border-zinc-700`
## 6. Modern Layout PatternsFrom Javabutdif/portfolio, MIT.
More from Javabutdif/portfolio
- 0.474score
react
Javabutdif
React component development guide.
SkillCFreshness: CClaude Code +9 - 0.469score
docs
Javabutdif
Guidelines for editing documentation and docs/ai/ files in a Nimblco-managed repo.
SkillCFreshness: CClaude Code +9 - 0.469score
scripts
Javabutdif
Guidelines for editing shell scripts, PowerShell files, and workflow scripts in a Nimblco-managed repo.
SkillCFreshness: CClaude Code +9 - 0.469score
stop-slop
Javabutdif
Remove AI writing patterns from prose.
SkillCFreshness: CClaude Code +9 - 0.469score
subagents
Javabutdif
Rules for coordinating multi-agent work in docs/ai/subagents/ and docs/ai/tasks/.
SkillCFreshness: CClaude Code +9 - 0.463score
monorepo-architect
Javabutdif
Expert in monorepo architecture, build systems, and dependency management at scale.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 2, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Javabutdif/portfolio
- Website
- www.ajgenabio.me/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Javabutdif
- 0.474score
react
Javabutdif
React component development guide.
SkillCFreshness: CClaude Code +9 - 0.469score
docs
Javabutdif
Guidelines for editing documentation and docs/ai/ files in a Nimblco-managed repo.
SkillCFreshness: CClaude Code +9 - 0.469score
scripts
Javabutdif
Guidelines for editing shell scripts, PowerShell files, and workflow scripts in a Nimblco-managed repo.
SkillCFreshness: CClaude Code +9 - 0.469score
stop-slop
Javabutdif
Remove AI writing patterns from prose.
SkillCFreshness: CClaude Code +9 - 0.469score
subagents
Javabutdif
Rules for coordinating multi-agent work in docs/ai/subagents/ and docs/ai/tasks/.
SkillCFreshness: CClaude Code +9 - 0.463score
monorepo-architect
Javabutdif
Expert in monorepo architecture, build systems, and dependency management at scale.
SkillCFreshness: CClaude Code +9
Cite this page
tailwind-patterns skill. Agent Mart. https://agentmart.dev/skills/javabutdif-tailwind-patterns (last updated 2026-10-24)