Skip to main content

Overview

The DNI Cita Previa design system uses CSS custom properties (CSS variables) to maintain a consistent color palette across the application. All colors are defined in the :root selector in style.css.

Color Palette

These colors are specific to the application’s header and footer components.
--header-yellow: #ffce00;
VariableHex ValueUsage
--header-yellow#ffce00Header background color
--footer-background-blue#1f2937Footer background color

Primary Colors

Core brand colors used for primary actions and branding elements.
--primary-blue: #003366;
VariableHex ValueUsage
--primary-blue#003366Primary buttons, headings, brand elements
--primary-blue-dark#002244Hover states for primary buttons
--background-gray#f5f5f5Body background color
--white#ffffffCard backgrounds, text on dark backgrounds

Text Colors

Color variations for text content throughout the application.
--text-gray-light: #6a6f7b;
--text-gray: #374151;
--text-gray-dark: #1f2937;
VariableHex ValueUsage
--text-gray-light#6a6f7bDescriptive text, secondary information
--text-gray#374151Form labels, standard text
--text-gray-dark#1f2937High-emphasis text

Border & Background Colors

Colors used for borders, dividers, and subtle background variations.
--border-light: #e5e7eb;
--border-lighter: #f3f4f6;
--bg-blue-light: #eff6ff;
--bg-blue-lighter: #dbeafe;
--border-blue: #bfdbfe;
VariableHex ValueUsage
--border-light#e5e7ebInput borders, section dividers
--border-lighter#f3f4f6Table row borders, subtle dividers
--bg-blue-light#eff6ffInfo box backgrounds
--bg-blue-lighter#dbeafeGradient backgrounds for success states
--border-blue#bfdbfeBorders on blue background elements

State Colors

Colors that indicate status or state changes.
--success-green: #059669;
--success-green-dark: #047857;
VariableHex ValueUsage
--success-green#059669Success icons, confirmation buttons
--success-green-dark#047857Hover state for success buttons

Neutral Colors

Neutral shades for backgrounds and subtle UI elements.
--neutral-light: #f3f4f6;
--neutral-dark: #d1d5db;
VariableHex ValueUsage
--neutral-light#f3f4f6Secondary button backgrounds
--neutral-dark#d1d5dbHover states for neutral elements

Usage Example

Colors are applied using CSS custom properties:
.primary-button {
    background-color: var(--primary-blue);
    color: var(--white);
}

.primary-button:hover {
    background-color: var(--primary-blue-dark);
}

body {
    background-color: var(--background-gray);
}

Additional Color Values

Some components use hardcoded color values for specific use cases:
Hex ValueUsageLocation
#ef4444Invalid input borderseleccionar-cita.css:82
#9ca3afInput placeholder textseleccionar-cita.css:86
rgba(0, 51, 102, 0.1)Focus ring shadowseleccionar-cita.css:78
rgba(0, 0, 0, 0.1)Box shadowseleccionar-cita.css:6, resumen.css:6
Whenever possible, use the CSS custom properties defined in :root rather than hardcoded color values to maintain consistency across the application.

Build docs developers (and LLMs) love