
Tailwind V4
Tailwind CSS v4 setup and theming with CSS-first @theme tokens, OKLCH colors, and dark mode.
- skills.sh installs
- 824
- GitHub stars
- 89
- last updated
- Aug 21, 2026
What it does
- Covers Vite plugin setup, CSS entry wiring, and migrating away from v3
tailwind.config.jsto CSS-based theme configuration - Explains the
@theme,@theme inline, and@theme referencemodes, with tradeoffs for performance and DevTools debugging - Includes OKLCH color format guidance, CSS variable naming conventions, and a two-tier semantic token pattern for design systems
- Enforces setup gates first: Vite wiring, major-version-4 dependencies, and theme tokens living in CSS rather than v3 config files
Install
$ npx -y skills add existential-birds/beagle --skill tailwind-v4 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Tailwind CSS v4 Best Practices
Quick Reference
Vite Plugin Setup:
// vite.config.ts
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [tailwindcss()],
});
CSS Entry Point:
/* src/index.css */
@import 'tailwindcss';
@theme Inline Directive:
@theme inline {
--color-primary: oklch(60% 0.24 262);
--color-surface: oklch(98% 0.002 247);
}
Key Differences from v3
| Feature | v3 | v4 |
|---|---|---|
| Configuration | tailwind.config.js | @theme in CSS |
| Build Tool | PostCSS plugin | @tailwindcss/vite |
| Colors | rgb() / hsl() | oklch() (default) |
| Theme Extension | extend: {} in JS | CSS variables |
| Dark Mode | darkMode config option | CSS variants |
@theme Directive Modes
default (standard mode)
Generates CSS variables that can be referenced elsewhere:
@theme {
--color-brand: oklch(60% 0.24 262);
}
/* Generates: :root { --color-brand: oklch(...); } */
/* Usage: text-brand → color: var(--color-brand) */
Details
- Repository
- github.com/existential-birds/beagle
- Categories
- Frontend & UI Code, Design & UI/UX
- First seen
- Apr 16, 2026
More from existential-birds/beagle
All 37- React Flow Advanced649
- React Router V7580
- React Flow Architecture540
- Vitest Testing473
- Fastapi Code Review389
- React Flow Implementation377
- Shadcn Ui357
- React Flow Code Review327
- Langgraph Architecture282
- Swiftui Code Review276
- Tutorial Docs272
- Bubbletea Code Review268
- Zustand State260
- Adr Writing253
- Swift Code Review252
- Dagre React Flow250
- Pytest Code Review235
- Sqlalchemy Code Review227
- Pydantic Ai Common Pitfalls221
- Pydantic Ai Agent Creation219
- Agent Architecture Analysis218
- Ai Elements210
- Go Code Review205
- Shadcn Code Review205
Similar to Tailwind V4
More Frontend & UI Code
tailwind-theme-builderjezweb/claude-skills3.3K installsTailwind v4 theming setup for shadcn/ui with CSS variables, dark mode, and troubleshooting for common migration errors.
tailwind-patternsdavila7/claude-code-templates564 installsTailwind CSS v4 principles covering CSS-first configuration, container queries, and design token architecture.
tailwind-design-systemwshobson/agents73.9K installsTailwind CSS v4 design system with CSS-first tokens, component variants, responsive patterns, and dark mode.
tailwindcss-fundamentals-v4josiahsiegel/claude-plugin-marketplace398 installsTailwind CSS v4 fundamentals covering installation, CSS-first @theme configuration, and v3-to-v4 migration.
tailwind-best-practicesasyrafhussin/agent-skills1K installsMobile-first Tailwind CSS patterns, dark mode setup, and v3-to-v4 migration guidance for consistent, maintainable interfaces.
tailwindcss-responsive-darkmodejosiahsiegel/claude-plugin-marketplace480 installsTailwind CSS dark mode and responsive design patterns covering toggles, FOUC prevention, and color tokens.