# Typography Guidelines
## Contents
- [Core Typography Pattern](#core-typography-pattern)
- [Typography Rules](#typography-rules)
- [Complete Examples](#complete-examples)
- [Text Color Classes](#text-color-classes)
- [Common Patterns](#common-patterns)
- [Quick Reference](#quick-reference)
## Core Typography Pattern
Use the `Text` component from `@medusajs/ui` for all text elements. Follow these specific patterns:
### Headings/Labels
Use this pattern for section headings, field labels, or any primary text:
```tsx
{labelText}
```
### Body/Descriptions
Use this pattern for descriptions, helper text, or secondary information:
```tsx
{descriptionText}
```
## Typography Rules
- **Never use** `` component for small sections within widgets/containers
- **Always use** `size="small"` and `leading="compact"` for consistency
- **Use** `weight="plus"` for labels and headings
- **Use** `className="text-ui-fg-subtle"` for secondary/descriptive text
- **For larger headings** (page titles, container headers), use the `` component
## Complete Examples
### Widget Section with Label and Description
```tsx
import { Text } from "@medusajs/ui"
// In a container or widget:
Product Settings
Configure how this product appears in your store