Classic for shadcn/ui

Classic is a shadcn/ui theme built around a deep cyan primary color (#2a515a) with muted light cyan accents (#d8e1e3). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the deep cyan primary (#2a515a) on a cyan-tinted background (#040e10).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#040e10black
Foreground
#010304black
#ffffffwhite
Card
#f8fbfcghostwhite
#040e10black
Card foreground
#010304black
#ffffffwhite
Popover
#f8fbfcghostwhite
#040e10black
Popover foreground
#010304black
#ffffffwhite
Primary
#2a515adarkslategray
#2a515adarkslategray
Primary foreground
#cee3e8gainsboro
#cee3e8gainsboro
Secondary
#d8e1e3gainsboro
#1a2223black
Secondary foreground
#394c51darkslategray
#acbec3silver
Muted
#d8eaeelavender
#112327black
Muted foreground
#505f62dimgray
#9dabafdarkgray
Accent
#d8e1e3gainsboro
#1a2223black
Accent foreground
#394c51darkslategray
#acbec3silver
Destructive
#6f2706maroon
#f36320chocolate
Destructive foreground
#fbc5adpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a515adarkslategray
#2a515adarkslategray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button6.53:1AA
Secondary button6.80:1AA
Muted text5.34:1AA
Accent6.80:1AA
Destructive6.92:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button6.53:1AA
Secondary button8.44:1AAA
Muted text6.88:1AA
Accent8.44:1AAA
Destructive6.62:1AA

CSS variables

Paste this into your globals.css to use Classic in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 214.327);
  --foreground: oklch(0.096 0.011 209.988);
  --muted: oklch(0.924 0.02 214.39);
  --muted-foreground: oklch(0.473 0.019 214.504);
  --popover: oklch(0.986 0.004 214.327);
  --popover-foreground: oklch(0.096 0.011 209.988);
  --card: oklch(0.986 0.004 214.327);
  --card-foreground: oklch(0.096 0.011 209.988);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.409 0.046 215.812);
  --primary-foreground: oklch(0.902 0.023 214.413);
  --secondary: oklch(0.904 0.01 214.349);
  --secondary-foreground: oklch(0.402 0.025 214.727);
  --accent: oklch(0.904 0.01 214.349);
  --accent-foreground: oklch(0.402 0.025 214.727);
  --destructive: oklch(0.377 0.11 41.083);
  --destructive-foreground: oklch(0.866 0.07 46.102);
  --ring: oklch(0.409 0.046 215.812);
  --chart-1: oklch(0.409 0.046 215.812);
  --chart-2: oklch(0.904 0.01 214.349);
  --chart-3: oklch(0.904 0.01 214.349);
  --chart-4: oklch(0.927 0.008 214.34);
  --chart-5: oklch(0.412 0.049 216.043);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.016 213.27);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.025 215.495);
  --muted-foreground: oklch(0.731 0.017 214.4);
  --popover: oklch(0.153 0.016 213.27);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.016 213.27);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.409 0.046 215.812);
  --primary-foreground: oklch(0.902 0.023 214.413);
  --secondary: oklch(0.243 0.012 214.588);
  --secondary-foreground: oklch(0.79 0.021 214.42);
  --accent: oklch(0.243 0.012 214.588);
  --accent-foreground: oklch(0.79 0.021 214.42);
  --destructive: oklch(0.675 0.192 41.446);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.409 0.046 215.812);
  --chart-1: oklch(0.409 0.046 215.812);
  --chart-2: oklch(0.243 0.012 214.588);
  --chart-3: oklch(0.243 0.012 214.588);
  --chart-4: oklch(0.276 0.014 214.618);
  --chart-5: oklch(0.412 0.049 216.043);
}