Virtuous for shadcn/ui

Virtuous is a shadcn/ui theme built around a light blue primary color (#a3cceb) with light indigo accents (#a3a8eb). The light mode uses a neutral background (#f8fafb). Dark mode keeps the light blue primary (#a3cceb) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fafbghostwhite
#000000black
Foreground
#03080cblack
#f5f8fawhitesmoke
Card
#f8fafbghostwhite
#000000black
Card foreground
#03080cblack
#f5f8fawhitesmoke
Popover
#f8fafbghostwhite
#000000black
Popover foreground
#03080cblack
#f5f8fawhitesmoke
Primary
#a3cceblightblue
#a3cceblightblue
Primary foreground
#11324bdarkslategray
#11324bdarkslategray
Secondary
#a3ebe6paleturquoise
#a3ebe6paleturquoise
Secondary foreground
#114b47darkslategray
#114b47darkslategray
Muted
#e0ebeblavender
#141f1fblack
Muted foreground
#474d4ddarkslategray
#b2b8b8silver
Accent
#a3a8eblightsteelblue
#a3a8eblightsteelblue
Accent foreground
#11144bmidnightblue
#11144bmidnightblue
Destructive
#a8180bfirebrick
#eb210fred
Destructive foreground
#fde9e7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3cceblightblue
#a3cceblightblue

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button7.81:1AAA
Secondary button7.33:1AAA
Muted text7.09:1AAA
Accent7.62:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button7.81:1AAA
Secondary button7.33:1AAA
Muted text8.36:1AAA
Accent7.62:1AAA
Destructive4.41: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.984 0.003 240.319);
  --foreground: oklch(0.13 0.015 233.175);
  --muted: oklch(0.932 0.013 192.146);
  --muted-foreground: oklch(0.414 0.008 192.039);
  --popover: oklch(0.984 0.003 240.319);
  --popover-foreground: oklch(0.13 0.015 233.175);
  --card: oklch(0.984 0.003 240.319);
  --card-foreground: oklch(0.13 0.015 233.175);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.062 241.412);
  --primary-foreground: oklch(0.306 0.06 244.834);
  --secondary: oklch(0.891 0.072 190.704);
  --secondary-foreground: oklch(0.376 0.058 188.413);
  --accent: oklch(0.752 0.096 280.651);
  --accent-foreground: oklch(0.233 0.1 272.644);
  --destructive: oklch(0.469 0.179 30.091);
  --destructive-foreground: oklch(0.95 0.023 23.827);
  --ring: oklch(0.826 0.062 241.412);
  --chart-1: oklch(0.826 0.062 241.412);
  --chart-2: oklch(0.891 0.072 190.704);
  --chart-3: oklch(0.752 0.096 280.651);
  --chart-4: oklch(0.905 0.063 190.955);
  --chart-5: oklch(0.826 0.064 241.472);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.005 240.35);
  --muted: oklch(0.229 0.017 190.884);
  --muted-foreground: oklch(0.778 0.007 192.249);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.005 240.35);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.977 0.005 240.35);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.826 0.062 241.412);
  --primary-foreground: oklch(0.306 0.06 244.834);
  --secondary: oklch(0.891 0.072 190.704);
  --secondary-foreground: oklch(0.376 0.058 188.413);
  --accent: oklch(0.752 0.096 280.651);
  --accent-foreground: oklch(0.233 0.1 272.644);
  --destructive: oklch(0.6 0.232 30.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.062 241.412);
  --chart-1: oklch(0.826 0.062 241.412);
  --chart-2: oklch(0.891 0.072 190.704);
  --chart-3: oklch(0.752 0.096 280.651);
  --chart-4: oklch(0.905 0.063 190.955);
  --chart-5: oklch(0.826 0.064 241.472);
}