Documentation is currently in beta. Report issues →

Colors

Y3NKO’s color palette is inspired by the Ghanaian flag and enriched with warm earth tones.

Brand Colors

These are the core brand colors derived from the Ghana flag.

Ghana Red

The primary action color. Used for CTAs, hero backgrounds, and interactive elements.

--ghana-red: #CE1126;
--ghana-red-dark: #9E0D1D; /* Hover state */
UsageExample
Primary buttonsbg-[#CE1126] hover:bg-[#9E0D1D]
Hero backgroundsAccommodation hero section
Linkstext-[#CE1126] hover:underline
Card hover accentsTitle hover state

Ghana Gold

The accent color. Used for focus rings, search CTA, star ratings, and highlights.

--ghana-gold: #D4A853;
--ghana-gold-light: #F2E4C4;
UsageExample
Focus ringsfocus-visible:ring-[#D4A853]
Star ratingsfill-[#D4A853] text-[#D4A853]
Nav active underlinesBorder-bottom accent
Warm glow shadows--shadow-warm-glow

Ghana Green

Secondary accent. Used for activities section, success states, and nature-related content.

--ghana-green: #006B3F;
--ghana-green-dark: #004D2D;
UsageExample
Activities heroGreen gradient background
Success messagesToast notifications
Nature badgesActivity difficulty badges

Earth Tones

Warm secondary colors that complement the brand palette.

--terracotta: #C75B39;  /* Warm accent, featured elements */
--clay: #9B5E3C;        /* Secondary warm */
--sand: #E8D5B7;        /* Warm light surface */
--warm-cream: #F5EDE4;  /* Subtle backgrounds */
ColorUsage
TerracottaCTA gradients, warm accents in featured cards
ClaySecondary borders, subtle accents
SandWarm section backgrounds

Dark Colors

Warm blacks and browns, never pure gray.

--night: #1A1210;   /* Darkest — body text, headings */
--coffee: #2C1810;  /* Footer, header, dark sections */
--bark: #3D2E25;    /* Secondary text */
--dusk: #6B5549;    /* Muted text, captions */
ColorUsage
NightPrimary text, h1-h6 headings
CoffeeHeader, footer backgrounds
BarkSecondary text
DuskMuted text, placeholders

Surface Colors

Light, warm backgrounds for content areas.

--paper: #FAF6F1;   /* Lightest warm surface */
--canvas: #F0E8DF;  /* Card backgrounds */
--linen: #E5DCD2;   /* Borders, dividers */
ColorUsage
PaperPage backgrounds, lightest sections
CanvasCard backgrounds, alternating sections
LinenBorders, dividers, input borders

Functional Colors

Semantic colors for status and feedback.

--success: #2D8A56;
--warning: #D4873E;
--error: #CE1126;    /* Same as Ghana Red */
--info: #3B7CB8;

Color Usage Rules

ColorWhen to Use
Ghana RedPrimary CTAs, hero backgrounds (accommodations), links, card hover
Ghana GoldFocus rings, search button, icon accents, star ratings, nav active underlines
Ghana GreenActivities hero, success states
Coffee/NightHeader, footer, dark sections, body text
Paper/Canvas/LinenPage backgrounds, card surfaces, borders
TerracottaCTA gradients, warm accents in featured elements

WCAG Contrast

All color combinations meet WCAG AA standards:

CombinationRatioPasses
Night on Paper15.8:1AAA
Ghana Red on Paper5.2:1AA (large text)
Dusk on Paper4.7:1AA
White on Ghana Red4.6:1AA
Ghana Gold on Coffee6.3:1AA

Using Colors in Code

Direct Hex Values

For brand colors, use direct hex values for consistency:

<button className="bg-[#CE1126] hover:bg-[#9E0D1D] text-white">
  Book Now
</button>

CSS Variables

For theming and consistency:

<div className="text-[var(--night)] bg-[var(--paper)]">
  Content
</div>

Tailwind Theme

For shadcn/ui integration:

<Button variant="default">
  {/* Uses primary color from theme */}
</Button>

Gradients

Hero Gradient

Dark overlay for hero images:

.gradient-hero {
  background: linear-gradient(
    135deg,
    rgba(44, 24, 16, 0.85) 0%,
    rgba(26, 18, 16, 0.7) 50%,
    rgba(199, 91, 57, 0.4) 100%
  );
}

CTA Gradient

Warm gradient for CTA sections:

.gradient-cta {
  background: linear-gradient(
    135deg,
    #CE1126 0%,
    #C75B39 60%,
    #D4A853 100%
  );
}

Dark Gradient

Footer and dark sections:

.gradient-dark {
  background: linear-gradient(180deg, #2C1810 0%, #1A1210 100%);
}