FCC 2024 for shadcn/ui

FCC 2024 is a shadcn/ui theme built around a vivid blue primary color (#297dfa) with deep teal accents (#184e4e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#297dfa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#103264midnightblue
#fcfcfdwhite
Card
#ffffffwhite
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfcfewhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#297dfadodgerblue
#297dfadodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#184e4edarkslategray
#29e5faturquoise
Secondary foreground
#ecf3fealiceblue
#024c55darkslategray
Muted
#d7e8eagainsboro
#152628black
Muted foreground
#57696bdimgray
#94a6a8darkgray
Accent
#184e4edarkslategray
#3e29faroyalblue
Accent foreground
#5acc6cmediumseagreen
#f2f0ffaliceblue
Destructive
#d11010firebrick
#ef2525crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#64d0d0mediumturquoise
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#297dfadodgerblue
#297dfadodgerblue

Contrast

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

Light mode
Text on background12.63:1AAA
Text on card21.00:1AAA
Primary button3.90:1AA Large
Secondary button8.40:1AAA
Muted text4.56:1AA
Accent4.59:1AA
Destructive5.55:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.67:1AAA
Primary button3.90:1AA Large
Secondary button6.29:1AA
Muted text6.16:1AA
Accent6.44:1AA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.324 0.097 258.435);
  --muted: oklch(0.919 0.018 204.849);
  --muted-foreground: oklch(0.506 0.021 204.739);
  --popover: oklch(0.991 0.003 264.542);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.794 0.099 195.339);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.609 0.203 259.054);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.389 0.056 195.114);
  --secondary-foreground: oklch(0.962 0.017 259.424);
  --accent: oklch(0.389 0.056 195.114);
  --accent-foreground: oklch(0.757 0.17 146.804);
  --destructive: oklch(0.544 0.217 28.608);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.609 0.203 259.054);
  --chart-1: oklch(0.609 0.203 259.054);
  --chart-2: oklch(0.389 0.056 195.114);
  --chart-3: oklch(0.389 0.056 195.114);
  --chart-4: oklch(0.428 0.062 195.091);
  --chart-5: oklch(0.61 0.209 259.171);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 258.315);
  --muted: oklch(0.255 0.023 204.729);
  --muted-foreground: oklch(0.712 0.02 204.804);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 258.315);
  --card: oklch(0.092 0 180);
  --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.609 0.203 259.054);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.844 0.139 207.001);
  --secondary-foreground: oklch(0.382 0.065 207.37);
  --accent: oklch(0.487 0.281 272.973);
  --accent-foreground: oklch(0.961 0.019 290.63);
  --destructive: oklch(0.61 0.232 27.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.609 0.203 259.054);
  --chart-1: oklch(0.609 0.203 259.054);
  --chart-2: oklch(0.844 0.139 207.001);
  --chart-3: oklch(0.487 0.281 272.973);
  --chart-4: oklch(0.851 0.136 206.458);
  --chart-5: oklch(0.61 0.209 259.171);
}