Samovar for shadcn/ui

Samovar is a shadcn/ui theme built around a vivid deep teal primary color (#06554b) with vivid deep yellow accents (#554b06). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the vivid deep teal primary (#06554b) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#020807black
Foreground
#05100eblack
#f9fbfbghostwhite
Card
#f2fdfbmintcream
#040c0bblack
Card foreground
#030c0bblack
#fcfdfdwhite
Popover
#f6fdfdmintcream
#020807black
Popover foreground
#05100eblack
#f9fbfbghostwhite
Primary
#06554bdarkslategray
#06554bdarkslategray
Primary foreground
#38f0d7turquoise
#38f0d7turquoise
Secondary
#4b0655indigo
#4b0655indigo
Secondary foreground
#ea97f7violet
#ea97f7violet
Muted
#f3ebf4whitesmoke
#130b14black
Muted foreground
#6e5572dimgray
#a68daadarkgray
Accent
#554b06darkolivegreen
#554b06darkolivegreen
Accent foreground
#f0d738gold
#f0d738gold
Destructive
#c72a0afirebrick
#f33f1borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06554bdarkslategray
#06554bdarkslategray

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card19.01:1AAA
Primary button6.03:1AA
Secondary button7.04:1AAA
Muted text5.62:1AA
Accent6.04:1AA
Destructive5.59:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.43:1AAA
Primary button6.03:1AA
Secondary button7.04:1AAA
Muted text6.47:1AA
Accent6.04:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.008 187.559);
  --foreground: oklch(0.16 0.018 185.553);
  --muted: oklch(0.949 0.015 321.636);
  --muted-foreground: oklch(0.485 0.057 321.895);
  --popover: oklch(0.99 0.008 187.559);
  --popover-foreground: oklch(0.16 0.018 185.553);
  --card: oklch(0.985 0.011 187.463);
  --card-foreground: oklch(0.143 0.016 186.7);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.405 0.071 180.497);
  --primary-foreground: oklch(0.862 0.145 181.341);
  --secondary: oklch(0.302 0.135 321.608);
  --secondary-foreground: oklch(0.792 0.159 322.06);
  --accent: oklch(0.411 0.082 99.546);
  --accent-foreground: oklch(0.875 0.167 100.008);
  --destructive: oklch(0.539 0.196 32.379);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.071 180.497);
  --chart-1: oklch(0.405 0.071 180.497);
  --chart-2: oklch(0.302 0.135 321.608);
  --chart-3: oklch(0.411 0.082 99.546);
  --chart-4: oklch(0.335 0.151 321.517);
  --chart-5: oklch(0.409 0.072 180.297);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 187.245);
  --foreground: oklch(0.986 0.003 187.686);
  --muted: oklch(0.164 0.023 321.945);
  --muted-foreground: oklch(0.675 0.052 321.801);
  --popover: oklch(0.124 0.013 187.245);
  --popover-foreground: oklch(0.986 0.003 187.686);
  --card: oklch(0.143 0.015 186.766);
  --card-foreground: oklch(0.993 0.001 187.718);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.405 0.071 180.497);
  --primary-foreground: oklch(0.862 0.145 181.341);
  --secondary: oklch(0.302 0.135 321.608);
  --secondary-foreground: oklch(0.792 0.159 322.06);
  --accent: oklch(0.411 0.082 99.546);
  --accent-foreground: oklch(0.875 0.167 100.008);
  --destructive: oklch(0.636 0.221 32.825);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.405 0.071 180.497);
  --chart-1: oklch(0.405 0.071 180.497);
  --chart-2: oklch(0.302 0.135 321.608);
  --chart-3: oklch(0.411 0.082 99.546);
  --chart-4: oklch(0.335 0.151 321.517);
  --chart-5: oklch(0.409 0.072 180.297);
}