markhamsquareventures/essentials

tailwind

How to work effectively with Tailwind CSS, always use when styling frontend features

First seen Jan 24, 2026

Installation

$ npx skills add markhamsquareventures/essentials --skill tailwind

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from markhamsquareventures/essentials.

npx skills add markhamsquareventures/essentials

Browse all from markhamsquareventures/essentials

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 1
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,354 B
  • docs SUMMARY.md 100 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 47 installs

SKILL.md

Tailwind

Instructions

  • Use Tailwind CSS classes to style HTML, check and use existing tailwind conventions within the project before writing your own.
  • Offer to extract repeated patterns into components that match the project's conventions (i.e. Blade, JSX, Vue, etc..)
  • Think through class placement, order, priority, and defaults - remove redundant classes, add classes to parent or child carefully to limit repetition, group elements logically
  • Always use Tailwind CSS v4 - do not use the deprecated utilities.
  • corePlugins is not supported in Tailwind v4.

Dark Mode

  • If existing pages and components support dark mode, new pages and components must support dark mode in a similar way, typically using dark:.

Examples

  • In Tailwind v4, configuration is CSS-first using the @theme directive — no separate tailwind.config.js file is needed.

<code-snippet name="Extending Theme in CSS" lang="css"> @theme { --color-brand: oklch(0.72 0.11 178); } </code-snippet>

  • In Tailwind v4, you import Tailwind using a regular CSS @import statement, not using the @tailwind directives used in v3:

<code-snippet name="Tailwind v4 Import Tailwind Diff" lang="diff"> - @tailwind base; - @tailwind components; - @tailwind utilities; + @import "tailwindcss"; </code-snippet>

Replaced Utilities

  • Tailwind v4 removed deprecated utilities. Do not use the deprecated option - use the replacement.
  • Opacity values are still numeric.

| Deprecated | Replacement | |------------+--------------| | bg-opacity- | bg-black/ | | text-opacity- | text-black/ | | border-opacity- | border-black/ | | divide-opacity- | divide-black/ | | ring-opacity- | ring-black/ | | placeholder-opacity- | placeholder-black/ | | flex-shrink- | shrink- | | flex-grow- | grow- | | overflow-ellipsis | text-ellipsis | | decoration-slice | box-decoration-slice | | decoration-clone | box-decoration-clone |

Spacing

  • When listing items, use gap utilities for spacing, don't use margins.

<code-snippet name="Valid Flex Gap Spacing Example" lang="html"> <div class="flex gap-8"> <div>Superior</div> <div>Michigan</div> <div>Erie</div> </div> </code-snippet>