Frontend CSS

Apply Tailwind CSS utility classes with custom design tokens and dark mode.

1|Updated Dec 4, 2024
One-click install
npx skills add https://github.com/imkdw/imkdw-dev --skill frontend-css-imkdw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Frontend CSS
Source: https://github.com/imkdw/imkdw-dev/tree/main/.claude/skills/frontend-css
Command: npx skills add https://github.com/imkdw/imkdw-dev --skill frontend-css-imkdw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing CSS in large projects can become unwieldy, leading to style conflicts, inconsistent designs, and slow development cycles. This Skill streamlines frontend styling with Tailwind CSS, a custom design system, and robust theming capabilities.

Core Features & Use Cases

  • Tailwind CSS Mastery: Apply utility classes efficiently with a custom preset, design tokens, and the cn() utility for conflict resolution.
  • Theming & Dark Mode: Implement semantic colors via CSS variables, ensuring your UI automatically adapts to light and dark modes for a consistent user experience.
  • Advanced Styling: Utilize custom animations (e.g., fade-in, terminal-blink), the @tailwindcss/typography plugin for rich content, and pre-built terminal UI utilities.
  • Use Case: When styling a new page, quickly apply responsive layouts, semantic colors that adapt to dark mode, and custom animations using the project's Tailwind preset and utility classes, reducing manual CSS writing.

Quick Start

Show me how to style a div with a bg-card background, text-foreground color, and ensure it adapts correctly to dark mode using our custom Tailwind preset and CSS variables.

Frequently Asked Questions about Frontend CSS

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I style React components with Tailwind CSS utility classes?

Style React components by applying Tailwind CSS utility classes directly to className attributes in your .tsx files. Use the custom @imkdw-dev/ui preset, which includes semantic color tokens like bg-card and text-foreground, alongside the cn() utility to resolve class conflicts and ensure consistent styling across your project.

How do I implement dark mode styling in a React app?

Implement dark mode by leveraging CSS variables (--background, --foreground, --primary) and applying the .dark class to toggle between light and dark themes. Tailwind CSS automatically respects these variables in your configuration, allowing your UI to adapt seamlessly without manual style duplication.

Can I use custom animations with Tailwind CSS?

Yes, this Skill supports custom animations defined in tailwind.config.ts, including fade-in, slide-up, and terminal-blink. Reference them directly in className attributes to add motion to components without writing custom CSS.

What's the best way to manage design tokens and theming across a large project?

Use semantic CSS variables and the custom Tailwind preset to define and manage design tokens centrally in tailwind.config.ts. This approach ensures consistent theming, reduces style conflicts, and makes dark mode and design system updates propagate instantly across all components.

Does Tailwind CSS work with typography-rich content?

Yes, the @tailwindcss/typography plugin is included and enables styled prose for rich content rendering. Combine it with terminal and code syntax colors to style markdown, documentation, or code blocks consistently within your design system.

Why use the cn() utility instead of concatenating Tailwind classes?

The cn() utility resolves class conflicts and merges Tailwind classes intelligently, preventing specificity bugs and style clashes. It ensures predictable output when combining conditional classes and respects your design system's preset rules.