styling
OfficialClear UI styling guidelines for consistent design
AuthorEpicenterHQ
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Inconsistent styling and bloated DOM arise when building UI components, making maintenance costly and error-prone. This guide provides concise rules to apply styles with minimal wrappers, consistent utility usage, and themed design.
Core Features & Use Cases
- Minimize wrapper elements by applying classes to the target element when semantically appropriate.
- Tailwind best practices:
- Use cn() utility from $lib/utils to compose classes conditionally
- Prefer utility classes over custom CSS
- Use tailwind-variants for component variants
- Follow the background/foreground convention for colors
- Leverage CSS variables for theme consistency
- Use Case: When building a reusable button component, apply styling directly to the button element and use utility classes to adjust variants.
Quick Start
Apply these guidelines when styling components to ensure accessible, responsive, and consistent UI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: styling Download link: https://github.com/EpicenterHQ/epicenter/archive/main.zip#styling Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.