What problem does it solve?
This Skill helps you avoid inconsistent, inaccessible, or hard-to-maintain Tailwind CSS markup in Rails 8.x views by giving proven patterns for responsive layout, semantics, styling consistency, and interactive states.
Core Features & Use Cases
- Mobile-first responsive design: Use Tailwind breakpoints (
sm/md/lg/xl/2xl) to structure grids, typography, and spacing for all screen sizes.
- Semantic HTML and accessibility: Prefer proper elements, labels, ARIA attributes (including
aria-current), visible focus rings, and screen-reader-only text.
- Consistent visual system: Apply a structured color palette, typography scale, spacing conventions, and reusable card/button patterns.
- Rails/Turbo/Hotwire-friendly UI: Pair styling with Turbo frames/streams and ViewComponent-based reuse for maintainable components.
Quick Start
Ask your AI to generate a Rails 8.x ERB ViewComponent for a responsive, accessible dashboard card grid using Tailwind classes based on the tailwind-patterns reference and including hover, focus, and loading-friendly Turbo UI considerations.