tailwindcss

Implements utility-first Tailwind CSS styling for Vue HUD components with TDD workflows.

3|1|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/PALabs-v1/AI_friend --skill tailwindcss-palabs-v1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tailwindcss
Source: https://github.com/PALabs-v1/AI_friend/tree/main/.agents/skills/tailwindcss
Command: npx skills add https://github.com/PALabs-v1/AI_friend --skill tailwindcss-palabs-v1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tailwindcss, @nuxtjs/tailwindcss, tailwindcss-animate, @tailwindcss/forms, and includes references (resource) components.

What problem does it solve? Styling a dark-themed HUD interface consistently across many Vue components leads to scattered custom CSS, hardcoded colors, and untested visual regressions. This Skill enforces a utility-first Tailwind CSS workflow with a centralized theme configuration and test-driven component styling. ## Core Features & Use Cases - TDD Styling Workflow: Write Vitest component tests asserting Tailwind class application before implementing styled Vue components. - JARVIS Theme Configuration: Define custom color palettes, fonts, animations, and keyframes in tailwind.config.js for a consistent dark HUD identity. - Performance Optimization: Configure content paths, JIT mode, and @apply extraction strategies to keep CSS bundle size minimal. - Use Case: When building a status dashboard panel, generate a HUDPanel.vue component with theme colors, responsive grid classes, status indicator variants, and passing accessibility-focused tests. ## Quick Start Use the tailwindcss skill to create a tested HUD panel component styled with the JARVIS theme.

Frequently Asked Questions about tailwindcss

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

FAQPage Schema
How do I test Tailwind CSS classes in Vue components?

Use Vitest with @vue/test-utils to mount the component and assert that rendered elements contain expected Tailwind classes via wrapper.find() and classes(). Write these tests before implementing the component styling, following a TDD workflow.

How to configure a custom color palette in tailwind.config.js?

Extend the theme.colors object in tailwind.config.js with named color tokens such as jarvis.primary and jarvis.bg.panel. Reference them in templates as utilities like bg-jarvis-primary instead of hardcoding hex values.

When should I use @apply instead of utility classes?

Extract repeated utility patterns into @apply directives inside a components layer only when the same combination appears three or more times. For single-use styles, compose utilities directly in the template to avoid unnecessary CSS abstraction.

Does Tailwind CSS support dark mode for always-dark interfaces?

Yes, set darkMode to 'class' in the config and define dark colors directly in the theme. For interfaces that are always dark, avoid writing light/dark variant pairs like bg-white dark:bg-gray-900 since the light styles are never used.

Why is my Tailwind CSS bundle size too large?

Oversized bundles usually come from overly broad content paths that include tests or unused files, or from defining unused variant extensions. Restrict content globs to actual source directories and rely on JIT mode to generate only used utilities.