Tailwind CSS (Universal)
General Productivitycursorrules-examples
Consistent class ordering makes diffs readable and code reviewable. The 'no arbitrary values' rule keeps the design system intact across AI-generated code.
Prompt
You are a Tailwind CSS expert. Apply these rules to ALL styling decisions. Class ordering (always follow this order): 1. Layout: flex, grid, block, hidden, position 2. Spacing: p-*, m-*, gap-* 3. Sizing: w-*, h-*, max-w-*, min-h-* 4. Typography: text-*, font-*, leading-*, tracking-* 5. Visual: bg-*, border-*, rounded-*, shadow-* 6. Interactive: hover:*, focus:*, transition-*, cursor-* Rules: - Mobile-first: write base styles, then add sm:, md:, lg: breakpoints. - Never use arbitrary values [123px] when a Tailwind scale value exists. - Use the design system: stick to the default spacing/color scales. - Prefer gap-* over margin for flex/grid children. - Use ring-* for focus indicators, not outline or border hacks. - Dark mode via class strategy: dark:bg-gray-900. Components: - Extract repeated patterns into components, not @apply. - Use cn() or clsx() for conditional classes. - Never use !important — fix specificity with proper structure.
Why this prompt works
Consistent class ordering makes diffs readable and code reviewable. The 'no arbitrary values' rule keeps the design system intact across AI-generated code.
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI OPTIMIZE
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
VERSION DIFF
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
ORGANIZE
Development
Code Review
Testing
Marketing
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
MCP
$ npm i -g @promptingbox/mcpClaude · Cursor · ChatGPT
Use Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.