Typography & Badge System
A comprehensive guide to typography classes and badge components with copy-paste ready code.
Headings
Semantic heading styles with consistent spacing and typography
heading-1Heading 1 - Main Page Title
heading-2Heading 2 - Section Title
heading-3Heading 3 - Subsection Title
heading-4Heading 4 - Card Title
heading-5Heading 5 - Small Title
heading-6Heading 6 - Smallest Title
Display Text
Large display text for hero sections and emphasis
display-largeDisplay Large
display-mediumDisplay Medium
display-smallDisplay Small
Body Text
Standard text for content and descriptions
body-largeBody Large - Used for important content and lead paragraphs that need more visual weight.
body-mediumBody Medium - The standard body text for most content throughout the application.
body-smallBody Small - Used for secondary content, descriptions, and supplementary information.
Labels
Label text for form fields, buttons, and navigation
label-largeLabel Large
label-mediumLabel Medium
label-smallLabel Small
Captions
Small text for metadata, timestamps, and helper text
caption-largeCaption Large - For metadata
caption-mediumCaption Medium - For timestamps
caption-smallCaption Small - For helper text
Code Text
Monospace text for code snippets and technical content
code-largeconst example = 'code large';
code-mediumconst example = 'code medium';
code-smallconst example = 'code small';
Custom Badge Component
React component with variant props and dot support
variant="green"Open
variant="red"High Priority
variant="red-dot"High Priority
variant="yellow"Medium Priority
variant="yellow-dot"Medium Priority
variant="blue"New
variant="gray"Sales Department
variant="purple"Support Team
variant="pink"Marketing
CSS Badge Classes (No Border)
Direct CSS classes that can be applied to any element - no border by default
badge-greenOpen
Open
badge-red badge-dotHigh Priority
High Priority
badge-yellow badge-dotMedium Priority
Medium Priority
badge-blueNew
New
badge-graySales Department
Sales Department
badge-purpleSupport Team
Support Team
badge-pinkMarketing
Marketing
CSS Badge Classes (Bordered)
Badge classes with borders for when you need more definition
badge-green-borderedOpen
Open
badge-red-bordered badge-dotHigh Priority
High Priority
badge-yellow-bordered badge-dotMedium Priority
Medium Priority
badge-blue-borderedNew
New
badge-gray-borderedSales Department
Sales Department
badge-purple-borderedSupport Team
Support Team
badge-pink-borderedMarketing
Marketing
Usage Examples
How to use these classes in your components
Component Usage
import { CustomBadge } from "@/components/ui/custom-badge"
<CustomBadge variant="red-dot">High Priority</CustomBadge>
<CustomBadge variant="green">Open</CustomBadge>CSS Class Usage
<div className="heading-2">Page Title</div> <p className="body-medium">Content goes here</p> <span className="badge-red badge-dot">High Priority</span>