# styling-patterns
> DaisyUI v5 design system. Use for backgrounds, borders, text sizes, opacity, semantic colors, and spacing.
- Author: Scott Spence
- Repository: spences10/devhub-crm
- Version: 20260121211026
- Stars: 6
- Forks: 0
- Last Updated: 2026-02-06
- Source: https://github.com/spences10/devhub-crm
- Web: https://mule.run/skillshub/@@spences10/devhub-crm~styling-patterns:20260121211026
---
---
name: styling-patterns
# prettier-ignore
description: DaisyUI v5 design system. Use for backgrounds, borders, text sizes, opacity, semantic colors, and spacing.
---
# Styling Patterns
## Quick Start
```html
Section Title
Main content text
Secondary metadata
```
## Core Principles
- **Background hierarchy**: base-200 (page) → base-100 (card) →
base-200 (nested) - never same as parent
- **Borders**: Use `border-base-300` solid (no opacity)
- **Text sizes**: 3xl (h1) → 2xl (h2) → xl (h3) → base (body) → sm
(metadata) → xs (hints)
- **Opacity**: ONLY 60/70/80, ONLY on metadata/descriptions (never
titles/buttons/primary actions)
- **Shadows**: md (default) → lg (hover) → xl (important)
- **Semantic colors**: error/success should NOT have opacity
- **Test contrast**: Always verify on both light and dark themes
## Reference Files
- [styling-guide.md](references/styling-guide.md) - Complete design
system with all rules and examples