Latin Retro Blue for shadcn/ui

Latin Retro Blue is a shadcn/ui theme built around a vivid blue primary color (#5980f5) with vivid blue accents (#5980f5). The light mode uses a neutral background (#f5f5f5). Dark mode keeps the vivid blue primary (#3664ec) on a blue-tinted background (#06080f).

Color palette

TokenLightDark
Background
#f5f5f5whitesmoke
#06080fblack
Foreground
#373737darkslategray
#ffffffwhite
Card
#ffffffwhite
#06080fblack
Card foreground
#373737darkslategray
#ffffffwhite
Popover
#ffffffwhite
#06080fblack
Popover foreground
#010309black
#ffffffwhite
Primary
#5980f5cornflowerblue
#3664ecroyalblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cacbcelightgrey
#272930darkslategray
Secondary foreground
#313235darkslategray
#bec1cbsilver
Muted
#e4e4e4gainsboro
#191c24black
Muted foreground
#999999darkgray
#8d93a5lightslategray
Accent
#5980f5cornflowerblue
#272930darkslategray
Accent foreground
#ffffffwhite
#bec1cbsilver
Destructive
#f34d44tomato
#eb1f14red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f1f1f1whitesmoke
#181a20black
Input
#dadadagainsboro
#181a20black
Ring
#5980fecornflowerblue
#3664ecroyalblue

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background10.93:1AAA
Text on card11.90:1AAA
Primary button3.60:1AA Large
Secondary button7.90:1AAA
Muted text2.23:1Fail
Accent3.60:1AA Large
Destructive3.52:1AA Large
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button5.01:1AA
Secondary button8.08:1AAA
Muted text5.56:1AA
Accent8.08:1AAA
Destructive4.44:1AA Large

CSS variables

Paste this into your globals.css to use Latin Retro Blue in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.971 0 180);
  --foreground: oklch(0.337 0 180);
  --muted: oklch(0.917 0 172.875);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.02 261.16);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.337 0 180);
  --border: oklch(0.959 0 187.595);
  --input: oklch(0.888 0 187.595);
  --primary: oklch(0.63 0.181 267.227);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.842 0.004 271.361);
  --secondary-foreground: oklch(0.317 0.006 271.238);
  --accent: oklch(0.631 0.18 267.245);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.652 0.205 27.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.637 0.192 267.719);
  --chart-1: oklch(0.637 0.192 267.719);
  --chart-2: oklch(0.784 0 191.31);
  --chart-3: oklch(0.704 0.16 357.071);
  --chart-4: oklch(0.773 0.112 166.494);
  --chart-5: oklch(0.831 0.099 86.89);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.016 266.906);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.226 0.018 270.526);
  --muted-foreground: oklch(0.664 0.028 270.968);
  --popover: oklch(0.135 0.016 266.906);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.016 266.906);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.218 0.013 270.771);
  --input: oklch(0.218 0.013 270.771);
  --primary: oklch(0.554 0.212 265.667);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.281 0.014 270.897);
  --secondary-foreground: oklch(0.812 0.014 271.242);
  --accent: oklch(0.281 0.014 270.897);
  --accent-foreground: oklch(0.812 0.014 271.242);
  --destructive: oklch(0.599 0.233 29.365);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.554 0.212 265.667);
  --chart-1: oklch(0.554 0.212 265.667);
  --chart-2: oklch(0.281 0.014 270.897);
  --chart-3: oklch(0.281 0.014 270.897);
  --chart-4: oklch(0.311 0.016 270.874);
  --chart-5: oklch(0.553 0.219 265.463);
}