clamp() function.
Font Family
The entire application uses the Sora font family:Make sure to include the Sora font from Google Fonts in your HTML:
The Outlined Class
The.outlined class creates a bold outlined text effect with white fill and black outline:
--outline-width variable is:
- 2px on mobile
- 4px on tablets and larger (768px+)
Responsive Typography with clamp()
Theclamp() CSS function enables fluid typography that scales smoothly between minimum and maximum sizes.
Syntax
- min: Minimum font size
- preferred: Ideal size (usually viewport-based like
5vw) - max: Maximum font size
Section Titles
Fromglobal.css:22:
- Minimum: 28px (1.75rem)
- Preferred: 5% of viewport width
- Maximum: 40px (2.5rem)
Hero Title
Fromglobal.css:144:
- Minimum: 24px (1.5rem)
- Preferred: 5% of viewport width
- Maximum: 40px (2.5rem)
Project Card Numbers
Fromglobal.css:469:
- Minimum: 24px (1.5rem)
- Preferred: 3% of viewport width
- Maximum: 32px (2rem)
Skill Card Labels
Fromglobal.css:251:
- Minimum: 16px (1rem)
- Preferred: 2% of viewport width
- Maximum: 20px (1.25rem)
Font Weights
The design system uses specific font weights:- 400: Regular text (body copy, titles)
- 600: Semi-bold (navigation, labels)
- 700: Bold (card labels, names)
- 800: Extra bold (outlined text, emphasized headings)
Best Practices
- Use clamp() for headings to ensure readability across all screen sizes
- Set minimum sizes that are readable on mobile devices (at least 1rem/16px)
- Limit viewport-based scaling to 2-5vw to prevent extreme sizes
- Use line-height: 1.5 for body text for optimal readability
- Keep font weights consistent with the established system