Overview
Proyecto Neptuno uses a combination of two Google Fonts:- Playfair Display - For headings and important titles (serif)
- Montserrat - For body text and general content (sans-serif)
Current Font Setup
Here’s how fonts are currently configured instyle.css:
Font Import
Font Declarations
How to Change Fonts
Choose your fonts
Select fonts from Google Fonts or prepare your own font files. For a similar aesthetic:
- Choose a serif or display font for headings
- Choose a clean sans-serif for body text
Update the font import
Replace the
@import line at the top of style.css (line 6) with your new Google Fonts URL.Example with different fonts:Update font-family declarations
Find and replace the font-family values throughout the CSS file.For body text (around line 40):For headings (around line 45):
Update component-specific declarations
Search for
'Playfair Display' in the CSS file and replace all instances with your new heading font. Key locations include:.landing-card h2(line 198).page-hero h1(line 291).ocio-bloque__texto h2(line 390).proyecto-intro h2(line 479).gastro-card h2(line 616).gastro-card__numero(line 602)
When changing fonts, you may need to adjust font-weight values to match what’s available in your chosen font family. Check the Google Fonts page for available weights.
Example Font Combinations
Modern & Clean
Classic & Elegant
Bold & Contemporary
Minimalist & Technical
Using Custom Fonts (Self-Hosted)
If you prefer to use custom fonts instead of Google Fonts:Add font files to your project
Create a
fonts folder in your source directory and add your font files (.woff, .woff2, .ttf).Define @font-face rules
Replace the Google Fonts import with
@font-face declarations at the top of style.css:Font Size Reference
Key font sizes used throughout the site:| Element | Size | Location |
|---|---|---|
| Hero h1 | 6rem | #hero h1 (line 141) |
| Hero h2 | 1.1rem | #hero h2 (line 151) |
| Page Hero h1 | 4.5rem | .page-hero h1 (line 292) |
| Landing Card h2 | 1.8rem | .landing-card h2 (line 199) |
| Ocio Block h2 | 2.8rem | .ocio-bloque__texto h2 (line 391) |
| Gastro Card h2 | 1.5rem | .gastro-card h2 (line 617) |
| Body paragraph | 0.9-1rem | Various |
| Small labels | 0.72-0.75rem | Various labels |
Adjusting Font Weights
The site uses various font weights for hierarchy:Responsive Font Sizes
Font sizes automatically adjust on smaller screens:Next Steps
Customize Colors
Learn how to change the color scheme
Customize Layout
Adjust spacing, padding, and responsive breakpoints