Virtuous for shadcn/ui

Virtuous is a shadcn/ui theme built around a vivid deep teal primary color (#056136) with vivid deep pink accents (#610530). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid deep teal primary (#056136) on a teal-tinted background (#050a08).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a08black
Foreground
#020d08black
#fcfdfdwhite
Card
#f7fcfamintcream
#060e0ablack
Card foreground
#010905black
#ffffffwhite
Popover
#f7fcfamintcream
#060e0ablack
Popover foreground
#010905black
#ffffffwhite
Primary
#056136darkslategray
#056136darkslategray
Primary foreground
#9efacfaquamarine
#9efacfaquamarine
Secondary
#610530maroon
#610530maroon
Secondary foreground
#fa9ec9lightpink
#fa9ec9lightpink
Muted
#e5d7ddgainsboro
#281a21black
Muted foreground
#54454cdarkslategray
#baabb2darkgray
Accent
#610530maroon
#610530maroon
Accent foreground
#fa9ec9lightpink
#fa9ec9lightpink
Destructive
#940705darkred
#f82925crimson
Destructive foreground
#fdcecepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#056136darkslategray
#056136darkslategray

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.49:1AAA
Primary button6.15:1AA
Secondary button6.86:1AA
Muted text6.45:1AA
Accent6.86:1AA
Destructive6.47:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.52:1AAA
Primary button6.15:1AA
Secondary button6.86:1AA
Muted text7.58:1AAA
Accent6.86:1AA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 166.824);
  --foreground: oklch(0.146 0.024 166.311);
  --muted: oklch(0.891 0.018 347.456);
  --muted-foreground: oklch(0.408 0.024 348.409);
  --popover: oklch(0.988 0.006 166.739);
  --popover-foreground: oklch(0.126 0.021 167.171);
  --card: oklch(0.988 0.006 166.739);
  --card-foreground: oklch(0.126 0.021 167.171);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.433 0.105 155.12);
  --primary-foreground: oklch(0.916 0.107 163.168);
  --secondary: oklch(0.322 0.125 0.686);
  --secondary-foreground: oklch(0.804 0.12 350.672);
  --accent: oklch(0.322 0.125 0.686);
  --accent-foreground: oklch(0.804 0.12 350.672);
  --destructive: oklch(0.422 0.169 29.106);
  --destructive-foreground: oklch(0.893 0.053 19.341);
  --ring: oklch(0.433 0.105 155.12);
  --chart-1: oklch(0.433 0.105 155.12);
  --chart-2: oklch(0.322 0.125 0.686);
  --chart-3: oklch(0.322 0.125 0.686);
  --chart-4: oklch(0.355 0.138 1.206);
  --chart-5: oklch(0.438 0.107 154.825);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.012 167.028);
  --foreground: oklch(0.994 0.002 166.846);
  --muted: oklch(0.239 0.026 349.662);
  --muted-foreground: oklch(0.756 0.02 347.613);
  --popover: oklch(0.154 0.015 165.404);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.015 165.404);
  --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.433 0.105 155.12);
  --primary-foreground: oklch(0.916 0.107 163.168);
  --secondary: oklch(0.322 0.125 0.686);
  --secondary-foreground: oklch(0.804 0.12 350.672);
  --accent: oklch(0.322 0.125 0.686);
  --accent-foreground: oklch(0.804 0.12 350.672);
  --destructive: oklch(0.63 0.238 28.125);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.433 0.105 155.12);
  --chart-1: oklch(0.433 0.105 155.12);
  --chart-2: oklch(0.322 0.125 0.686);
  --chart-3: oklch(0.322 0.125 0.686);
  --chart-4: oklch(0.355 0.138 1.206);
  --chart-5: oklch(0.438 0.107 154.825);
}