MTMedThread CRM

MedThread CRM Style Guide

A comprehensive design system for MedThread CRM. This guide ensures consistency across all components, layouts, and user interactions throughout the application.

Design Tokens Reference
Complete reference tables for all design system values and tokens.

Typography Tokens

Token NameTailwind ClassesLine HeightUsagePreview
Display Largetext-4xl lg:text-5xl font-extrabold1.1Page titles, hero headings
Aa
Display Mediumtext-3xl font-bold1.2Section titles, card headers
Aa
Heading 1text-2xl font-semibold1.3Primary headings
Aa
Heading 2text-xl font-semibold1.4Secondary headings
Aa
Heading 3text-lg font-medium1.5Tertiary headings
Aa
Body Largetext-base leading-71.75Primary body text, descriptions
Aa
Body Mediumtext-sm leading-61.5Secondary body text, captions
Aa
Body Smalltext-xs1.4Labels, metadata, timestamps
Aa

Color Tokens

Token NameTailwind ClassHex ValueUsagePreview
Primarybg-primary#0f172aMain brand color, primary actions
Primary/80bg-primary/80#0f172accHover states, active elements
Primary/60bg-primary/60#0f172a99Disabled states
Primary/10bg-primary/10#0f172a1aLight backgrounds, subtle highlights
Secondarybg-secondary#f1f5f9Subtle elements, secondary actions
Accentbg-accent#f1f5f9Highlights, emphasis
Mutedbg-muted#f8fafcBackgrounds, disabled text
Destructivebg-destructive#ef4444Errors, warnings, delete actions
Successbg-green-500#22c55eSuccess states, confirmations
Warningbg-yellow-500#eab308Warning states, cautions
Errorbg-red-500#ef4444Error states, failures
Infobg-blue-500#3b82f6Information, neutral alerts

Spacing Tokens

TokenPixelsREMUsageVisual
14px0.25remTight spacing, borders, fine details
28px0.5remSmall gaps, button padding, icon spacing
312px0.75remForm elements, compact layouts
416px1remStandard spacing, default gaps
624px1.5remSection spacing, card padding
832px2remLarge gaps, component margins
1248px3remPage sections, major spacing
1664px4remMajor sections, hero spacing
2080px5remPage-level spacing, large margins
2496px6remExtra large spacing, section breaks

Component Tokens

ComponentVariantTailwind ClassesUsagePreview
ButtonPrimarybg-primary text-primary-foreground hover:bg-primary/90Main actions, form submissions
ButtonSecondarybg-secondary text-secondary-foreground hover:bg-secondary/80Secondary actions
ButtonOutlineborder border-input bg-background hover:bg-accentNeutral actions, cancel buttons
ButtonGhosthover:bg-accent hover:text-accent-foregroundSubtle actions, icon buttons
ButtonDestructivebg-destructive text-destructive-foreground hover:bg-destructive/90Delete, remove actions
CardDefaultrounded-lg border bg-card text-card-foreground shadow-smContent containers, information display
InputDefaultborder border-input bg-background px-3 py-2 rounded-mdText input, form fields
BadgeDefaultbg-primary text-primary-foreground px-2.5 py-0.5 rounded-full text-xsStatus indicators, tags
Default
BadgeSecondarybg-secondary text-secondary-foregroundNeutral status, categories
Secondary
BadgeDestructivebg-destructive text-destructive-foregroundError status, warnings
Destructive

Layout Patterns

Pattern NameTailwind ClassesUsageContext
Page Containerflex flex-1 flex-col gap-6 p-6 md:gap-8 md:p-8Main page wrapper📄 Content Layout
Content Containercontainer mx-auto p-6Standard content width📄 Content Layout
Narrow Containermax-w-4xl mx-autoReading content, articles📄 Content Layout
Form Containermax-w-2xl mx-autoForms, input layouts📄 Content Layout
Stats Gridgrid gap-4 md:grid-cols-2 lg:grid-cols-4Dashboard metrics📊 Data Display
Content Gridgrid gap-6 md:grid-cols-2Two-column layouts📊 Data Display
Card Spacingspace-y-6Between cards and sections📏 Component Spacing
Form Spacingspace-y-4Between form fields📏 Component Spacing
Button Groupflex gap-2Action button groups🔘 Action Groups
List Spacingspace-y-2List items, menu items📏 Component Spacing

Responsive Breakpoints

BreakpointScreen SizeTailwind PrefixUsagePriority
Mobile< 768pxdefaultBase styles, mobile-first
Primary
Tablet768px+md:Tablet and up modifications
Secondary
Desktop1024px+lg:Desktop and up enhancements
Enhanced
Large Desktop1280px+xl:Large screen optimizations
Optional
Extra Large1536px+2xl:Ultra-wide screen layouts
Optional
Quick Reference
Most commonly used tokens and patterns.

Common Spacing

gap-2 - Button groups
gap-4 - Grid items
gap-6 - Card groups
p-6 - Card padding
space-y-4 - Form fields

Common Colors

bg-primary - Main actions
bg-secondary - Subtle elements
bg-muted - Backgrounds
text-muted-foreground - Secondary text
bg-green-500 - Success states

Common Typography

text-2xl font-semibold - Page titles
text-lg font-medium - Section headers
text-base - Body text
text-sm text-muted-foreground - Captions
text-xs - Labels