Fox for shadcn/ui

Fox is a shadcn/ui theme built around a muted green primary color (#8ca088) with muted red accents (#a0888c). The light mode uses a neutral background (#fbfefb). Dark mode keeps the muted green primary (#8ca088) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fbfefbwhite
#020401black
Foreground
#010401black
#fcfdfcwhite
Card
#f8fdf7mintcream
#030802black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefbwhite
#020401black
Popover foreground
#010401black
#fcfdfcwhite
Primary
#8ca088darkseagreen
#8ca088darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#888ca0lightslategray
#888ca0lightslategray
Secondary foreground
#000000black
#000000black
Muted
#dee0e7gainsboro
#181921black
Muted foreground
#52545bdimgray
#a4a5addarkgray
Accent
#a0888crosybrown
#a0888crosybrown
Accent foreground
#000000black
#000000black
Destructive
#a72a11firebrick
#d53515firebrick
Destructive foreground
#fdefecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ca088darkseagreen
#8ca088darkseagreen

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.38:1AAA
Primary button7.47:1AAA
Secondary button6.28:1AA
Muted text5.73:1AA
Accent6.39:1AA
Destructive6.29:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.47:1AAA
Secondary button6.28:1AA
Muted text7.15:1AAA
Accent6.39:1AA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 141.054);
  --foreground: oklch(0.099 0.021 138.993);
  --muted: oklch(0.907 0.01 278.15);
  --muted-foreground: oklch(0.446 0.012 277.912);
  --popover: oklch(0.994 0.005 141.054);
  --popover-foreground: oklch(0.099 0.021 138.993);
  --card: oklch(0.989 0.01 141.043);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.682 0.041 140.935);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.643 0.03 277.595);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.65 0.029 7.707);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.482 0.166 32.885);
  --destructive-foreground: oklch(0.963 0.016 31.078);
  --ring: oklch(0.682 0.041 140.935);
  --chart-1: oklch(0.682 0.041 140.935);
  --chart-2: oklch(0.643 0.03 277.595);
  --chart-3: oklch(0.65 0.029 7.707);
  --chart-4: oklch(0.67 0.028 277.686);
  --chart-5: oklch(0.687 0.052 140.903);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.018 139.271);
  --foreground: oklch(0.993 0.002 141.061);
  --muted: oklch(0.215 0.015 277.196);
  --muted-foreground: oklch(0.724 0.011 278.101);
  --popover: oklch(0.098 0.018 139.271);
  --popover-foreground: oklch(0.993 0.002 141.061);
  --card: oklch(0.124 0.023 139.271);
  --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.682 0.041 140.935);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.643 0.03 277.595);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.65 0.029 7.707);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.575 0.201 32.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.682 0.041 140.935);
  --chart-1: oklch(0.682 0.041 140.935);
  --chart-2: oklch(0.643 0.03 277.595);
  --chart-3: oklch(0.65 0.029 7.707);
  --chart-4: oklch(0.67 0.028 277.686);
  --chart-5: oklch(0.687 0.052 140.903);
}