Design System
Comprehensive UI tokens, components, and usage guidelines for Professional Portfolio.
Color Palette
A carefully curated palette optimized for accessibility, contrast, and brand consistency. Click any swatch to copy the hex value.
Typography Scale
Modular type scale using a 1.25 ratio. Headings use `font-weight: 600`, body text uses `400`. Line heights adjust per scale.
Display Heading
Section Heading
Card / Block Title
Large Body Text / Subtitles
Standard Body Copy
Small / Captions / Metadata
Spacing & Grid
All spacing follows an 8px base grid. Use variables instead of hardcoded values for consistency.
Form Inputs
Accessible, focus-trapped inputs with consistent padding and border states.
Text Fields
<input type="text" class="ds-input" placeholder="Default input">
Cards & Badges
Surface containers for content grouping. Badges indicate status or category.
Card Layout
Iconography
System icons should be 24×24px with 1.5px stroke width. Click to copy SVG reference name.
Usage Guidelines
Rules to maintain consistency across all touchpoints.
-
Always use design tokens
Never hardcode colors, spacing, or typography values. Reference `--ds-*` variables to ensure theme compatibility and easy updates.
-
Maintain contrast ratios
Text must meet WCAG AA standards (4.5:1 for normal text, 3:1 for large text). Use the provided neutral palette for body copy.
-
Component hierarchy
Limit primary buttons to one per section. Use outline/ghost variants for secondary or tertiary actions to avoid visual noise.
-
Responsive behavior
All components must gracefully adapt to viewport changes. Use relative units (`rem`, `%`) and CSS Grid/Flexbox for layout shifts.