Color System & Palette

Primary Colors (From Figma Design System)

These colors are extracted directly from the Demos Design System Figma file:

/* Core Brand Colors - Figma Verified */
--color-black: rgb(0, 0, 0);              /* Pure black - Primary background */
--color-white: rgb(255, 255, 255);        /* Pure white - Accents & highlights */

/* Named Gray Scale */
--color-cod-gray: rgb(18, 18, 18);        /* #121212 - Dark backgrounds */
--color-cod-gray-alt: rgb(26, 26, 26);    /* #1A1A1A - Alternative dark bg */
--color-mine-shaft: rgb(42, 42, 42);      /* #2A2A2A - Medium dark gray */
--color-shark: rgb(42, 42, 42);           /* #2A2A2A - Same as Mine Shaft */
--color-boulder: rgb(117, 117, 117);      /* #757575 - Medium gray text */
--color-catskill-white: rgb(248, 250, 252); /* #F8FAFC - Very light gray */

/* Transparency Variants - White */
--color-white-5: rgba(255, 255, 255, 0.05);   /* Subtle overlays */
--color-white-10: rgba(255, 255, 255, 0.1);   /* Borders, dividers */
--color-white-20: rgba(255, 255, 255, 0.2);   /* Subtle backgrounds */

/* Transparency Variants - Black */
--color-black-20: rgba(0, 0, 0, 0.2);         /* Black overlays */

/* Transparency Variants - Cod Gray */
--color-cod-gray-67: rgba(18, 18, 18, 0.67);  /* Semi-transparent dark */

/* Accent Colors */
--color-royal-blue: rgb(37, 99, 235);         /* #2563EB - Primary blue */
--color-royal-blue-10: rgba(37, 99, 235, 0.1); /* Blue tint */
--color-cornflower-blue-10: rgba(76, 110, 245, 0.1); /* #4C6EF5 tint */
--color-blue: rgb(17, 25, 230);               /* #1119E6 - Bright blue */
--color-blue-alt: rgb(14, 24, 223);           /* #0E18DF - Alternative blue */
--color-blue-ribbon-30: rgba(0, 102, 255, 0.3); /* #0066FF tint */
--color-oxford-blue: rgb(55, 65, 81);         /* #374151 - Dark blue-gray */
--color-mountain-meadow: rgb(41, 184, 107);   /* #29B86B - Success green */

Color Usage Guidelines

Background Colors

  • Primary Background: rgb(0, 0, 0) - Main page background, pure black

  • Card Background: rgb(18, 18, 18) - Article cards, component backgrounds (Cod Gray)

  • Secondary Background: rgb(26, 26, 26) - Input fields, elevated surfaces

  • Tertiary Background: rgb(42, 42, 42) - Hover states, subtle elevation (Mine Shaft)

Text Colors

  • Primary Text: rgb(255, 255, 255) - Main content, headlines

  • Secondary Text: rgb(117, 117, 117) - Supporting text, metadata (Boulder)

  • Muted Text: rgba(255, 255, 255, 0.67) - Subtle elements, disabled states

  • Light Text: rgb(248, 250, 252) - Very light text on dark backgrounds (Catskill White)

Border & Divider Colors

  • Subtle Borders: rgba(255, 255, 255, 0.1) - Card borders, dividers

  • Medium Borders: rgba(255, 255, 255, 0.2) - Input borders, separators

  • Focus Borders: rgb(37, 99, 235) - Interactive element focus (Royal Blue)

Accent & Interactive Colors

  • Primary Action: rgb(37, 99, 235) - Buttons, links (Royal Blue)

  • Hover State: rgb(17, 25, 230) - Interactive hover (Blue)

  • Success: rgb(41, 184, 107) - Success states, confirmations (Mountain Meadow)

  • Info Background: rgba(37, 99, 235, 0.1) - Info callouts (Royal Blue 10%)

Implementation Examples

/* Article Card - Using Figma Colors */
.article-card {
  background: rgb(18, 18, 18);  /* Cod Gray */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  border-radius: 12px;
}

.article-card:hover {
  background: rgb(26, 26, 26);  /* Cod Gray Alt */
  border-color: rgba(255, 255, 255, 0.2);
}

/* Button - Primary Action */
.button-primary {
  background: rgb(37, 99, 235);  /* Royal Blue */
  color: rgb(255, 255, 255);
  border: none;
}

.button-primary:hover {
  background: rgb(17, 25, 230);  /* Blue */
}

/* Input Field */
.input {
  background: rgb(26, 26, 26);  /* Cod Gray Alt */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
}

.input:focus {
  border-color: rgb(37, 99, 235);  /* Royal Blue */
  outline: none;
}

/* Text Hierarchy */
.text-primary {
  color: rgb(255, 255, 255);  /* White */
}

.text-secondary {
  color: rgb(117, 117, 117);  /* Boulder */
}

.text-muted {
  color: rgba(255, 255, 255, 0.67);  /* Cod Gray 67% */
}

Accessibility Compliance

All color combinations meet WCAG AA standards for contrast:

  • White on Black: 21:1 contrast ratio (AAA)

  • Boulder on Black: 4.6:1 contrast ratio (AA)

  • Royal Blue on Black: 8.6:1 contrast ratio (AAA)

  • White on Royal Blue: 2.4:1 contrast ratio (AA for large text)

Color Naming Convention

The Figma design system uses descriptive color names based on standard color naming conventions:

  • Cod Gray: Very dark gray, almost black (#121212)

  • Mine Shaft / Shark: Dark gray (#2A2A2A)

  • Boulder: Medium gray (#757575)

  • Catskill White: Very light gray, almost white (#F8FAFC)

  • Royal Blue: Primary brand blue (#2563EB)

  • Oxford Blue: Dark blue-gray (#374151)

  • Mountain Meadow: Success green (#29B86B)

FOOTER
[ CYA ]
© DEMOS. All rights reserved 2025