docs: rework design system documentation and configure tailwind-merge #430
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR reworks the design system documentation to remove excessive examples and configures tailwind-merge for proper class conflict resolution across all design tokens.
Design System Documentation
Icon Sizes: Removed "Buttons with Icons", "List Items with Icons", "Input Fields with Icons" sections that showed component implementations not matching actual Frontile components. Added comprehensive "All Icon Sizes" section showing all 14 size variants.
Borders & Radius: Removed redundant sections ("Border Radius Examples", "Directional Border Utilities", "Directional Border Radius") that just demonstrated standard Tailwind features.
Elevation: Removed component-specific examples ("Dropdown Menus", "Modal Dialog", "Alert Notifications") and custom font classes. Kept only "Cards and Panels" and "Interactive States" sections.
Typography System Updates
Changed CSS variables from
--font-family-*to shorter--font-*format:--font-family-marquee→--font-marquee--font-family-header→--font-header--font-family-body→--font-bodyUpdated typography documentation to show the new two-part usage pattern:
Composite text styles (
text-header-md,text-body-lg, etc.) now set font-size, weight, spacing, and line-height but NOT font-family, providing more flexibility.Tailwind-Merge Configuration
Added comprehensive configuration in
packages/theme/src/tw.ts:Icon Component Updates
Updated all icon components with semantic
size-icon-*defaults:size-icon-smsize-icon-mdsize-icon-lgSizes can still be overridden via
...attributesspreading.Test Plan
🤖 Generated with Claude Code