What problem does it solve?
This Skill provides a comprehensive set of Phlex components that mirror shadcn/ui's design patterns, enabling developers to build consistent, accessible, and themeable user interfaces rapidly within a Rails application.
Core Features & Use Cases
- Pixel-Perfect Conversion: Components are direct translations of shadcn/ui Radix UI components, ensuring visual fidelity.
- Semantic Token Integration: Leverages Tailwind CSS v4's OKLCH color space and semantic tokens for easy theming and dark mode support.
- Interactive Component Patterns: Includes Stimulus controllers for dynamic elements like switches, tabs, dialogs, and tooltips, with clear usage patterns.
- Use Case: A developer needs to implement a new user profile card. They can use the
Components::Ui::Card and Components::Ui::Avatar components, ensuring it matches the project's design system and integrates seamlessly with existing interactive elements.
Quick Start
Use the design-system skill to generate a new button component with the 'destructive' variant.