CVE - final for shadcn/ui

CVE - final is a shadcn/ui theme built around a deep indigo primary color (#29235c) with vivid light blue accents (#a7b1fa). The light mode uses a neutral background (#f7f9fd). Dark mode switches to a blue primary (#4c74c2) on a blue-tinted background (#03060c).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#03060cblack
Foreground
#000000black
#fcfcfdwhite
Card
#ffffffwhite
#040810black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040810black
Popover foreground
#000000black
#ffffffwhite
Primary
#29235cmidnightblue
#4c74c2steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#14c0efdeepskyblue
#4caec2mediumturquoise
Secondary foreground
#ffffffwhite
#000000black
Muted
#ced4dalightgrey
#0b1619black
Muted foreground
#494f50darkslategray
#afb5b6darkgray
Accent
#a7b1falightsteelblue
#604cc2slateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c00000firebrick
#ed322ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e9eaeclavender
#202327darkslategray
Input
#d0d0d0lightgrey
#202327darkslategray
Ring
#29235cmidnightblue
#4c74c2steelblue

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card21.00:1AAA
Primary button14.10:1AAA
Secondary button2.13:1Fail
Muted text5.58:1AA
Accent2.03:1Fail
Destructive6.47:1AA
Dark mode
Text on background19.75:1AAA
Text on card20.01:1AAA
Primary button4.59:1AA
Secondary button8.16:1AAA
Muted text8.82:1AAA
Accent6.32:1AA
Destructive4.12:1AA Large

CSS variables

Paste this into your globals.css to use CVE - final in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 264.531);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.867 0.011 247.949);
  --muted-foreground: oklch(0.422 0.009 211.043);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.937 0.003 264.542);
  --input: oklch(0.857 0 169.695);
  --primary: oklch(0.299 0.098 283.472);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.751 0.139 224.119);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.78 0.105 277.673);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.507 0.208 29.234);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.098 283.472);
  --chart-1: oklch(0.299 0.098 283.472);
  --chart-2: oklch(0.751 0.139 224.119);
  --chart-3: oklch(0.78 0.105 277.673);
  --chart-4: oklch(0.762 0.136 222.724);
  --chart-5: oklch(0.295 0.104 282.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.016 256.899);
  --foreground: oklch(0.992 0.001 264.547);
  --muted: oklch(0.192 0.017 211.534);
  --muted-foreground: oklch(0.769 0.007 211.038);
  --popover: oklch(0.135 0.019 258.759);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.135 0.019 258.759);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.254 0.009 264.41);
  --input: oklch(0.254 0.009 264.41);
  --primary: oklch(0.566 0.129 262.877);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.701 0.095 212.867);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.504 0.176 285.856);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.616 0.222 28.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.566 0.129 262.877);
  --chart-1: oklch(0.566 0.129 262.877);
  --chart-2: oklch(0.701 0.095 212.867);
  --chart-3: oklch(0.504 0.176 285.856);
  --chart-4: oklch(0.719 0.091 212.482);
  --chart-5: oklch(0.564 0.137 262.762);
}