Skip to content
Back to skills

Modern Tailwind

ASecurity

Build clean, scalable UIs with Tailwind CSS using modern utilities and variants

  • 225 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 4, 2026
design

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill modern-tailwind --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modern Tailwind?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Modern Tailwind
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-modern-tailwind/badge)](https://www.skillsdirectory.com/skills/neversight-modern-tailwind)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: modern-tailwind
description: Build clean, scalable UIs with Tailwind CSS using modern utilities and variants
---

# Tailwind CSS Best Practices

## Core Principles

- Prefer utility classes over custom CSS for most styling
- Keep class lists readable by grouping: layout → spacing → typography → color → effects
- Use semantic HTML first; utilities should enhance, not replace structure

## Variants & State

- Use `hover`, `focus-visible`, `disabled`, `dark`, and `motion-safe` variants where appropriate
- Prefer `data-*` and `aria-*` variants for stateful styling tied to DOM semantics
- Use `group` and `peer` for parent/sibling state without extra JS

## Responsive & Container Queries

- Start with the base styles, then add responsive variants (`sm`, `md`, `lg`, ...)
- Use container query utilities when layout depends on parent size

## Theming & Customization

- Extend the theme in `tailwind.config` instead of ad-hoc custom classes
- Use `@layer` for custom utilities/components when repetition is unavoidable
- Avoid `@apply` except for small, repeatable patterns

## Maintainability

- Extract reusable UI into components instead of repeating large class strings
- Keep class names deterministic; avoid dynamic string concatenation when possible

Files in this skill

  • SKILL.md1.2 KB
  • description_ar.txt189 B
  • description_cn.txt87 B
  • description_de.txt129 B
  • description_en.txt80 B
  • description_es.txt108 B
  • description_fr.txt124 B
  • description_it.txt99 B
  • description_ja.txt141 B
  • description_ko.txt102 B
  • description_ru.txt228 B
  • description_tw.txt87 B
  • stats.json66 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.