Frontend CSS

Generate Tailwind CSS utility classes and component styles with responsive breakpoints and dark mode.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/SpacePlushy/portfolio --skill frontend-css-spaceplushy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Frontend CSS
Source: https://github.com/SpacePlushy/portfolio/tree/main/.claude/skills/frontend-css
Command: npx skills add https://github.com/SpacePlushy/portfolio --skill frontend-css-spaceplushy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Inconsistent styling, lack of responsiveness, or poor dark mode implementation can degrade user experience and increase development time. This skill guides AI in writing clean, maintainable CSS using Tailwind CSS, adhering to design tokens and responsive patterns, so your UI always looks great.

Core Features & Use Cases

  • Tailwind CSS Mastery: Directs AI in using utility classes, configuring Tailwind, and applying scoped styles.
  • Responsive & Adaptive Design: Guides AI on implementing responsive breakpoints, media queries, and dark mode theming.
  • Design System Alignment: Ensures AI uses CSS custom properties for design tokens and optimizes CSS performance.

Quick Start

Apply Tailwind CSS utility classes to the new header component, ensuring it's responsive and supports dark mode.

Frequently Asked Questions about Frontend CSS

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

FAQPage Schema
How do I write responsive CSS with Tailwind utility classes?

Responsive CSS with Tailwind uses mobile-first breakpoints (sm, md, lg, xl) prefixed to utility classes. Apply breakpoint prefixes directly to utilities—e.g., `md:flex` makes elements flex on medium screens and up—then stack responsive rules in your component styles to adapt layouts across devices.

Can I implement dark mode in Tailwind CSS?

Dark mode in Tailwind uses the `dark:` variant on utility classes to apply alternate styles when dark mode is active. Configure dark mode in `tailwind.config.mjs`, then prefix utilities like `dark:bg-gray-900` to swap colors, backgrounds, and other properties automatically.

What's the best way to organize CSS with design tokens?

Organize CSS with design tokens by defining CSS custom properties in your global CSS file or `tailwind.config.mjs`, then reference them in Tailwind utilities and component styles. This centralizes colors, spacing, and typography so changes propagate across your entire design system.

How do I configure Tailwind CSS for my project?

Configure Tailwind by creating `tailwind.config.mjs`, defining theme values (colors, spacing, breakpoints, dark mode settings), and specifying content paths so Tailwind scans your files for used utilities. Purging removes unused styles, reducing final CSS file size.

When should I use @apply directives instead of utility classes?

@apply directives group Tailwind utilities into reusable component classes when you need consistent styling across multiple elements. Use @apply in global CSS or scoped stylesheets to reduce repetition while maintaining the Tailwind utility approach.

Does Tailwind CSS support CSS Grid and Flexbox layouts?

Tailwind CSS includes built-in utilities for both Grid and Flexbox. Use `grid`, `flex`, `grid-cols-*`, and `gap-*` utilities to construct layouts; these abstractions handle responsive adjustments and alignment, making responsive design faster than writing raw CSS.