Overview
Proyecto Neptuno uses CSS custom properties (CSS variables) to define its color palette. This makes it easy to customize the entire color scheme by modifying values in a single location.Color System
The color scheme is organized into three main categories:Primary Colors
The brand colors that define the visual identity:Background Colors
Colors used for surfaces and layout backgrounds:Text Colors
Colors for typography across different contexts:How to Change Colors
Find the :root section
Scroll to the top of the file and locate the
:root selector (around line 8). This is where all color variables are defined.Modify the color values
Replace the hex color values with your desired colors. Make sure to keep the variable names the same.
All color variables use the
-- prefix followed by a descriptive name. Changing these values will automatically update all components that use them.Example Color Schemes
Here are some pre-designed color schemes you can use:Ocean Blue Theme
Forest Green Theme
Sunset Purple Theme
Step-by-Step: Changing Brand Colors
Let’s walk through a complete example of rebranding with a new color scheme:Choose your brand colors
Select a primary color (your main brand color) and a secondary/accent color. You can use tools like Adobe Color or Coolors to help pick complementary colors.
Generate color variations
Create lighter variations of your colors for hover states and accents. A good rule of thumb is to increase the lightness by 10-15% for the
claro variants.Test across pages
Check different pages to ensure your colors work well:
- Buttons and CTAs (
.btn-primary) - Navigation and headers
- Cards and sections (
.landing-card,.gastro-card) - Form elements and focus states
Where Colors Are Used
Understanding where each color variable is applied helps you make informed customization decisions:| Variable | Usage |
|---|---|
--color-primario | Primary buttons, borders, accents, bullet points |
--color-primario-claro | Button hover states, link hover |
--color-secundario | Labels, secondary accents, decorative elements |
--color-secundario-claro | Hero subtitle, secondary button hover |
--bg-principal | Main page background, cards |
--bg-secundario | Alternating sections, form backgrounds |
--bg-footer | Footer background |
--texto-oscuro | Headings, body text |
--texto-claro | Text on dark backgrounds |
--texto-muted | Supporting text, captions |
Next Steps
Customize Fonts
Learn how to change typography and fonts
Customize Layout
Adjust spacing, padding, and responsive breakpoints