tailwind-ui
π―Skillfrom boise-state-development/agentcore-public-stack
Generates responsive and customizable UI components using Tailwind CSS, streamlining frontend design with pre-built, accessible interface elements
Installation
npx skills add https://github.com/boise-state-development/agentcore-public-stack --skill tailwind-uiSkill Details
Tailwind CSS v4.1 best practices with WCAG 2.1 AA accessibility, theming, and dark mode support. Use when working with HTML, CSS, styling components, accessibility (a11y), WCAG compliance, color contrast, focus states, screen readers, theming, light mode, dark mode, or building accessible UI patterns like buttons, forms, cards, and navigation. Complements the angular-best-practices skill for Angular frontends.
Overview
# Tailwind UI Skill
Tailwind CSS v4.1 development with accessibility and theming baked in.
Quick Reference
v4.1 Critical Changes
Never use deprecated utilities β always use replacements:
| Deprecated | Replacement |
|------------|-------------|
| bg-opacity-* | bg-black/50 (opacity modifier) |
| bg-gradient- | bg-linear- |
| shadow-sm | shadow-xs |
| shadow | shadow-sm |
| rounded-sm | rounded-xs |
| rounded | rounded-sm |
| ring | ring-3 |
| outline-none | outline-hidden |
| leading-* | Use text-base/7 line-height modifiers |
| flex-shrink- / flex-grow- | shrink- / grow- |
| space-x- in flex/grid | Use gap- instead |
Essential Patterns
```html
...
```
Reference Files
Load these based on the task:
- [references/v4-migration.md](references/v4-migration.md) β Full v4.1 breaking changes, upgrade process, new features
- [references/accessibility.md](references/accessibility.md) β WCAG 2.1 AA patterns: contrast, focus, screen readers
- [references/theming.md](references/theming.md) β @theme setup, CSS variables, light/dark mode
- [references/components.md](references/components.md) β Accessible component patterns (buttons, forms, cards, nav)
Theme Asset
- [assets/theme-starter.css](assets/theme-starter.css) β Starter @theme with primary/secondary/tertiary color scales
Core Principles
- Use Tailwind's scale β Avoid arbitrary values like
ml-[16px]; useml-4 - Never use @apply β Use CSS variables or framework components
- Gap over margins β Use
gap-in flex/grid, notspace-or child margins - Test both modes β Always verify light AND dark mode appearance
- Accessibility first β Every interactive element needs visible focus states and proper contrast
More from this repository2
Provides automated code quality checks and recommendations for Angular project structure, coding standards, and performance optimization.
Develops AWS CDK infrastructure using TypeScript, creating and configuring cloud resources like VPCs, DynamoDB tables, ECS services, Lambda functions, and IAM roles with best practices.