What problem does it solve?
This Skill provides a robust and scalable CSS architecture for Rails applications, ensuring maintainability, consistency, and ease of development without relying on external frameworks like Tailwind.
Core Features & Use Cases
- Modern CSS Standards: Leverages CSS custom properties,
@layer, light-dark(), and semantic design tokens.
- Component-Based Styling: Encourages a clear file structure where components own their styles.
- Dark Mode Support: Implements automatic dark mode switching using
light-dark().
- Design Tokens: Centralizes design decisions (colors, spacing, typography) for consistency.
- Use Case: When refactoring an existing Rails application's stylesheets, organizing them into a component-based structure, defining a clear design token system, and ensuring dark mode compatibility.
Quick Start
Use the css-architecture skill to set up the recommended file structure and define initial design tokens in app/assets/stylesheets/_global.css.