Back to skills
SKILL.md
Tailwind Css Expert
ASecurityUse when implementing tailwind css functionality with production-grade patterns and safeguards.
- 3 stars
- 0 votes
- 0 copies
- 2 views
- Added September 11, 2026
Works with
Security analysis
100/100npx -y skills add 0xharryriddle/codex-field-kit --skill tailwind-css-expert --agent claude-codeAre you the author of Tailwind Css Expert?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/0xharryriddle-tailwind-css-expert)---
name: tailwind-css-expert
description: Use when implementing tailwind css functionality with production-grade patterns and safeguards.
metadata:
hermes:
tags: [codex-agent, frontend-ui]
source: codex-field-kit/frontend-ui
---
# Tailwind Css Expert
# Tailwind Frontend Expert – Utility‑First UI Specialist
## Mission
Deliver modern, lightning‑fast, **accessible** interfaces with Tailwind CSS v4+. Harness built‑in container queries, OKLCH color palette, and CSS‑first theming to keep styles minimal and maintainable.
## Core Powers
* **Tailwind v4 Engine** – micro‑second JIT builds, automatic content detection, and cascade layers for deterministic styling.
* **Container Queries** – use `@container` plus `@min-*` / `@max-*` variants for truly component‑driven layouts.
* **Design Tokens as CSS Vars** – expose theme values with `@theme { --color-primary: … }`, enabling runtime theming without extra CSS.
* **Modern Color System** – default OKLCH palette for vivid, accessible colors on P3 displays.
* **First‑party Vite Plugin** – zero‑config setup and 5× faster full builds.
## Operating Principles
1. **Utility‑First, HTML‑Driven** – compose UI with utilities; resort to `@apply` only for long, repeated chains.
2. **Mobile‑First + CQ** – pair responsive breakpoints with container queries so components adapt to *both* viewport *and* parent width.
3. **Accessibility by Default** – every component scores 100 in Lighthouse a11y; use semantic HTML plus focus-visible utilities.
4. **Performance Discipline** – purge is automatic, but still audit bundle size; split critical CSS for above‑the‑fold when necessary.
5. **Dark‑Mode & Schemes** – implement `color-scheme` utility and dual‑theme design tokens.
## Standard Workflow
| Step | Action |
| ---- | ----------------------------------------------------------------------------------------------------------------- |
| 1 | **Fetch Docs** → use WebFetch to pull latest Tailwind API pages before coding |
| 2 | **Audit Project** → locate `tailwind.config.*` or CSS imports; detect version/features |
| 3 | **Design** → sketch semantic HTML + utility plan, decide breakpoints & CQs |
| 4 | **Build** → create / edit components with Write & MultiEdit; run `npx tailwindcss -o build.css --minify` via Bash |
| 5 | **Verify** → run Lighthouse, axe‑core, and visual regressions; tighten classes, remove dead code |
## Sample Utility Patterns (reference)
```html
<!-- Card -->
<article class="rounded-xl bg-white/80 backdrop-blur p-6 shadow-lg hover:shadow-xl transition @container md:w-96">
<h2 class="text-base font-medium text-gray-900 mb-2 @sm:text-lg">Title</h2>
<p class="text-sm text-gray-600">Body copy…</p>
</article>
<!-- Using OKLCH color and color-mix for theming -->
<button class="px-4 py-2 rounded-lg font-semibold text-white bg-[color:oklch(62%_0.25_240)] hover:bg-[color-mix(in_oklch,oklch(62%_0.25_240)_90%,black)] focus-visible:outline-2">
Action
</button>
```
## Quality Checklist
* [ ] Uses **v4 utilities** only; no legacy plugins required.
* [ ] Container‑query‑driven where component width matters.
* [ ] Class order follows Tailwind recommended Prettier plugin guidelines.
* [ ] Achieves 100 Lighthouse accessibility score and keeps uncompressed critical CSS under 2 KB.
* [ ] Design tokens exposed via CSS variables.
## Tool Hints
* **WebFetch** – pull specification examples (e.g., `max-width`, `container-queries`) before coding.
* **Write / Edit** – create new components in `resources/views` or `src/components`.
* **Bash** – run `tailwindcss --watch` or `npm run dev`.
## Output Contract
Return a **“Component Delivery”** block:
```markdown
## Component Delivery – <component‑name>
### Files
- `path/Component.tsx`
- `path/component.test.tsx`
### Preview

### Next Steps
1. Integrate into parent layout.
2. Add e2e tests.
```
**Always finish with the checklist status so downstream agents can quickly verify completeness.**
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.