Brandon Lambert Design System Documentation
Colors
Our color palette is designed for clarity, accessibility, and visual hierarchy. Each color has been carefully selected to work harmoniously across all interfaces.
/* CSS Variables */
:root {
--color-primary-dark: #1a365d;
--color-primary: #2c5282;
--color-primary-light: #3182ce;
--color-text-dark: #333333;
--color-text-medium: #666666;
--color-text-light: #999999;
--color-bg: #f7fafc;
--color-white: #ffffff;
}
Typography
Typography creates hierarchy and improves readability. We use Crimson Text for headings and Inter for body text.
Spacing
Consistent spacing creates rhythm and improves visual hierarchy. We use an 8px base unit system.
| Token | Size | Pixels | Usage |
|---|---|---|---|
--space-xs |
0.25rem | 4px | Tight spacing between related elements |
--space-sm |
0.5rem | 8px | Small gaps, padding within components |
--space-md |
1rem | 16px | Standard spacing between elements |
--space-lg |
1.5rem | 24px | Spacing between sections |
--space-xl |
2rem | 32px | Large spacing between major sections |
--space-2xl |
3rem | 48px | Extra large spacing for major breaks |
Elevation
Elevation creates depth and establishes visual hierarchy through shadows.
box-shadow-sm
box-shadow-md
box-shadow-lg
box-shadow-xl
Forms
Form elements for collecting and validating user input.
Cards
Cards contain content and actions about a single subject.
Card Title
This is the card content. Cards are flexible containers.
Badges
Badges highlight important information and status.
Tabs
Tabs organize content into separate views where only one view is visible at a time.
Tab content goes here. Click the tabs above to switch between different views.
Modals
Modals focus user attention on a specific task or information.
Modal Title
This is what a modal looks like. It overlays the main content and requires user interaction.
Alerts
Alerts provide contextual feedback messages for user actions.
Grid System
A flexible 12-column grid system for creating responsive layouts.
Common Layouts
Column 1Column 2Item 1Item 2Item 3
Containers
Containers provide consistent max-widths and padding for page content.
Flexbox
Flexbox utilities for creating flexible layouts and aligning content.
Justify Content
Align Items
Flex Direction
Hero Sections
Hero sections create impactful first impressions and communicate key messages.
Welcome to Our Platform
Build amazing experiences with our comprehensive design system
Gallery
Gallery layouts for displaying images and media content.
Spacing Utilities
Utility classes for controlling margin and padding.
.m-1 { margin: 0.25rem }
.m-2 { margin: 0.5rem }
.m-4 { margin: 1rem }
.m-8 { margin: 2rem }
.p-1 { padding: 0.25rem }
.p-2 { padding: 0.5rem }
.p-4 { padding: 1rem }
.p-8 { padding: 2rem }
.mr-4 { margin-right: 1rem }
.mb-4 { margin-bottom: 1rem }
.ml-4 { margin-left: 1rem }
.mx-4 { margin-left/right: 1rem }
.my-4 { margin-top/bottom: 1rem }
Display Utilities
Control the display behavior of elements.
.d-block { display: block }
.d-inline { display: inline }
.d-inline-block { display: inline-block }
.d-flex { display: flex }
.d-grid { display: grid }
.invisible { visibility: hidden }
.opacity-0 { opacity: 0 }
.opacity-50 { opacity: 0.5 }
.opacity-100 { opacity: 1 }
.overflow-hidden { overflow: hidden }
.overflow-visible { overflow: visible }
.overflow-scroll { overflow: scroll }
Text Utilities
Utility classes for text styling and alignment.
.text-center { text-align: center }
.text-right { text-align: right }
.text-justify { text-align: justify }
.font-normal { font-weight: 400 }
.font-medium { font-weight: 500 }
.font-semibold { font-weight: 600 }
.font-bold { font-weight: 700 }
.lowercase { text-transform: lowercase }
.capitalize { text-transform: capitalize }
.normal-case { text-transform: none }
Borders & Shadows
Utility classes for borders, border radius, and shadows.
.border-0 { border: none }
.border-top { border-top: 1px solid }
.border-right { border-right: 1px solid }
.border-bottom { border-bottom: 1px solid }
.border-left { border-left: 1px solid }
.rounded-sm { border-radius: 2px }
.rounded { border-radius: 4px }
.rounded-lg { border-radius: 8px }
.rounded-full { border-radius: 50% }
.shadow-sm { small shadow }
.shadow { default shadow }
.shadow-lg { large shadow }
.shadow-xl { extra large shadow }
Accessibility
Guidelines and utilities for creating accessible interfaces.
Color Contrast
Ensure text has sufficient contrast against backgrounds (WCAG 2.1 AA compliance):
- Normal text: 4.5:1 contrast ratio
- Large text: 3:1 contrast ratio
- UI components: 3:1 contrast ratio
Keyboard Navigation
All interactive elements must be keyboard accessible:
- Use semantic HTML elements
- Provide visible focus indicators
- Implement logical tab order
- Support escape key for dismissible elements
Screen Reader Support
Utility Classes
.focus-visible { /* Visible focus state */ }
.aria-hidden { aria-hidden: true }
.role-button { role: button }