본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)7.2k · #13471

tailwindcss

하는 일

이 스킬은 웹 페이지를 꾸미는 유틸리티 중심 도구인 Tailwind CSS 사용법을 안내합니다. 직접 작성하는 CSS를 많이 쓰지 않고도 일관된 간격과 글꼴을 원하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓유틸리티 클래스로 빠르고 일관된 스타일을 만들고 싶은 웹 인터페이스를 만들 때.
  • ✓Tailwind 프로젝트에서 반응형 레이아웃, 호버 상태, 다크 모드가 필요할 때.
  • ✓운영 환경에서 Tailwind 클래스가 보이지 않아 원인을 찾아야 하는 경우.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/tailwindcss/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/tailwindcss/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 로그인 폼을 Tailwind로 꾸며 주세요. 휴대폰에서도 깔끔하게 보이고 다크 모드도 지원되면 좋겠습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 마크업에 유틸리티 클래스를 직접 추가하며, 반응형 접두사, 상태 변형, 다크 모드 설정을 사용합니다. 반복되는 패턴은 작은 재사용 스타일 규칙을 쓰기 전에 컴포넌트로 묶으라고 권장합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Tailwind CSS — Utility-first Styling Skill

When to use

  • Rapid UI building with consistent spacing/typography scales
  • Design systems where composition beats bespoke CSS
  • Component-driven apps (React/Vue/Svelte), marketing pages, prototypes → production

Key concepts & patterns

  • Utilities compose in HTML/JSX: class="flex gap-4 p-6 bg-zinc-950 text-white"
  • Responsive variants: sm: md: lg: xl: etc.
  • State variants: hover:, focus:, active:, disabled:, group-hover:, peer-checked:
  • Arbitrary values (use sparingly): w-[42rem], bg-[#0b1220], translate-y-[3px]
  • Dark mode patterns: dark: with class-based strategy
  • Extracting repeated patterns:
    • Prefer components (JSX/Vue components) first
    • Then @apply for small reusable patterns (avoid overuse)
  • Build pipeline:
    • Tailwind scans “content” files for class names and generates CSS (zero-runtime)

Common pitfalls

  • Classes not generated in production
    • Ensure content paths include all templates/components.
    • Avoid building class names dynamically (e.g. "text-" + color) unless safelisted.
  • Overusing @apply and losing the utility-first benefits
  • Conflicting styles due to class order assumptions
  • Huge HTML class lists with no structure
    • Use component composition; break into subcomponents; use clsx/cva when needed.

Quick recipes

1) A clean CTA button

<button class="inline-flex items-center justify-center rounded-xl px-5 py-3
               bg-indigo-600 text-white font-medium
               hover:bg-indigo-500 active:bg-indigo-700
               focus:outline-none focus:ring-2 focus:ring-indigo-400/60">
  Get started
</button>

2) Responsive hero layout

<section class="mx-auto max-w-6xl px-6 py-16">
  <div class="grid gap-10 lg:grid-cols-2 lg:items-center">
    <div>
      <h1 class="text-4xl font-semibold tracking-tight sm:text-5xl">
        Ship a beautiful site fast.
      </h1>
      <p class="mt-4 text-zinc-600">
        Tailwind helps you move quickly without fighting CSS.
      </p>
    </div>
    <div class="rounded-2xl border border-zinc-200 bg-white p-6 shadow-sm">
      <!-- media -->
    </div>
  </div>
</section>

3) Handling dynamic classnames safely

Prefer mapping:

const toneClass = {
  success: "bg-emerald-600",
  danger: "bg-rose-600",
  info: "bg-sky-600",
}[tone];

What to ask the user

  • Framework/build tool (Next/Vite/Remix/Webflow export)?
  • Do we need a design system (tokens, component library) or a one-off page?
  • Dark mode? RTL? accessibility constraints?
자주 묻는 질문

Tailwind 스타일 일부가 보이지 않는 이유는 무엇인가요?

스킬은 빌드가 모든 템플릿 파일을 검사해야 하며, 클래스 이름은 안전 목록에 넣지 않는 한 동적으로 만들면 안 된다고 말합니다.

@apply를 많이 써도 되나요?

아니요. 유틸리티 클래스의 장점이 사라지므로 과하게 쓰지 말라고 경고합니다.

다크 모드도 다루나요?

네. 클래스 기반 다크 모드 방식을 다룹니다.

상세 정보

작성자의 원본 설명

Use when designing/implementing UI with Tailwind CSS (layout, typography, responsive, theming, component patterns). Includes quick recipes and conventions for clean, consistent web design.

repo: MengTo/Skills

인기도

GitHub 스타
7.2k
순위
#13471
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬