Smart Compliance Hub
Design System & Style Guide
A comprehensive collection of reusable components, guidelines, and design tokens that ensure consistency across all Smart Compliance Hub interfaces.
Color Palette
Primary Colors
Slate Scale
Blue Accent Scale
Light Theme Color Palette
Light Theme Base
Gray Scale
Blue Accents (Light Theme)
Typography - Dark Theme
Heading 1 - Display Large
text-4xl font-boldHeading 2 - Display Medium
text-3xl font-boldHeading 3 - Display Small
text-2xl font-semiboldHeading 4 - Title Large
text-xl font-semiboldBody text - This is regular paragraph text with proper line spacing and readability considerations.
text-gray-300 leading-relaxedSmall text - Used for captions and secondary information
text-sm text-gray-400Caption - Label Text
text-xs uppercase tracking-wider text-gray-400 font-mediumHighlighted text - Important information
text-blue-400 font-semiboldTypography - Light Theme
Heading 1 - Display Large
text-4xl font-bold text-gray-900Heading 2 - Display Medium
text-3xl font-bold text-gray-900Heading 3 - Display Small
text-2xl font-semibold text-gray-800Heading 4 - Title Large
text-xl font-semibold text-gray-800Body text - This is regular paragraph text with proper line spacing and readability considerations for light backgrounds.
text-gray-700 leading-relaxedSmall text - Used for captions and secondary information
text-sm text-gray-600Caption - Label Text
text-xs uppercase tracking-wider text-gray-500 font-mediumHighlighted text - Important information
text-blue-600 font-semiboldButtons - Dark Theme
Primary
bg-gradient-to-r from-blue-600 to-blue-700Secondary
bg-slate-800 hover:bg-slate-700Ghost
text-blue-400 hover:bg-slate-800/50Danger
bg-red-600 hover:bg-red-700Button Sizes
Buttons - Light Theme
Primary
bg-gradient-to-r from-blue-600 to-blue-700Secondary
bg-gray-100 hover:bg-gray-200Ghost
text-blue-600 hover:bg-blue-50Danger
bg-red-500 hover:bg-red-600Button Sizes
Form Elements - Dark Theme
bg-slate-800 border-slate-700 focus:ring-blue-500textarea with resize-noneselect with consistent stylingForm Elements - Light Theme
bg-white border-gray-300 focus:ring-blue-500textarea with light theme stylingselect with light theme stylingCards & Containers - Dark Theme
Basic Card
A simple card container with consistent spacing and hover effects.
bg-slate-900 border-slate-700Content Card
Enhanced card with icon and lift effect on hover for better interactivity.
hover:-translate-y-1Highlighted Card
Special emphasis card with blue accent border for important content.
border-blue-500/30Cards & Containers - Light Theme
Basic Card
A simple light card container with consistent spacing and hover effects.
bg-white border-gray-200Content Card
Enhanced light card with icon and lift effect on hover for better interactivity.
hover:-translate-y-1Highlighted Card
Special emphasis card with blue background tint for important content.
bg-blue-50 border-blue-200Navigation Elements - Dark Theme
Main Navigation
hover:text-blue-400 hover:border-b-2 hover:border-blue-400Navigation Elements - Light Theme
Main Navigation
text-gray-700 hover:text-blue-600 hover:border-b-2 hover:border-blue-600States & Feedback - Dark Theme
Loading States
animate-spin border-b-2 border-blue-500Focus States
focus:ring-2 focus:ring-blue-500Hover Effects
Hover to see lift effect
hover:-translate-y-1 hover:shadow-xlTransitions
transition-all duration-200States & Feedback - Light Theme
Loading States
animate-spin border-b-2 border-blue-600Focus States
focus:ring-2 focus:ring-blue-500 focus:ring-offset-whiteHover Effects
Hover to see lift effect
hover:-translate-y-1 hover:shadow-xlTransitions
transition-all duration-200Layout Examples
Two Column Grid
Left Column
Content for the left side of a two-column layout.
Right Column
Content for the right side of a two-column layout.
grid grid-cols-1 lg:grid-cols-2 gap-8Three Column Grid
Column 1
First column content.
Column 2
Second column content.
Column 3
Third column content.
grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6Usage Guidelines
Do's
- • Use consistent spacing patterns (4, 6, 8, 12 units)
- • Apply hover states to interactive elements
- • Use blue accents for primary actions in both themes
- • Maintain proper color contrast ratios
- • Keep dark header with light main content
- • Use slate scale for dark sections, gray scale for light
- • Apply smooth transitions for better UX
- • Use appropriate focus ring offsets for each theme
Don'ts
- • Don't mix light and dark theme elements inconsistently
- • Avoid using dark theme colors on light backgrounds
- • Don't skip hover states on clickable elements
- • Avoid using pure white text on light backgrounds
- • Don't use arbitrary spacing values
- • Avoid abrupt state changes without transitions
- • Don't mix different blue shades within same theme
- • Avoid insufficient contrast ratios
Theme Usage Guidelines
Dark Theme (Header/Navigation)
- • Use for navigation and headers
- • Apply slate color scale (700-900)
- • Use white/gray-300 for text
- • Blue-400 for interactive elements
Light Theme (Main Content)
- • Use for main page content
- • Apply gray color scale (50-900)
- • Use gray-700/900 for text
- • Blue-600 for interactive elements
