Old for shadcn/ui

Old is a shadcn/ui theme built around a teal primary color (#3b9b86) with red accents (#9b3b50). The light mode uses a neutral background (#f7fcfb). Dark mode keeps the teal primary (#3b9b86) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fcfbmintcream
#000000black
Foreground
#000000black
#f5faf9mintcream
Card
#f7fcfbmintcream
#000000black
Card foreground
#000000black
#f5faf9mintcream
Popover
#f7fcfbmintcream
#000000black
Popover foreground
#000000black
#f5faf9mintcream
Primary
#3b9b86mediumseagreen
#3b9b86mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#9b3b50sienna
#9b3b50sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edd9ddgainsboro
#261216black
Muted foreground
#503f43darkslategray
#c0afb3silver
Accent
#9b3b50sienna
#9b3b50sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#96320dsaddlebrown
#ee6d3ftomato
Destructive foreground
#fce3d9antiquewhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3b9b86mediumseagreen
#3b9b86mediumseagreen

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button3.36:1AA Large
Secondary button6.69:1AA
Muted text7.30:1AAA
Accent6.69:1AA
Destructive6.21:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button3.36:1AA Large
Secondary button6.69:1AA
Muted text8.48:1AAA
Accent6.69:1AA
Destructive6.92:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 181.91);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.903 0.022 2.74);
  --muted-foreground: oklch(0.387 0.025 3.766);
  --popover: oklch(0.988 0.006 181.91);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.006 181.91);
  --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.628 0.096 176.153);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.491 0.129 9.953);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.129 9.953);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.46 0.142 37.846);
  --destructive-foreground: oklch(0.933 0.03 41.088);
  --ring: oklch(0.628 0.096 176.153);
  --chart-1: oklch(0.628 0.096 176.153);
  --chart-2: oklch(0.491 0.129 9.953);
  --chart-3: oklch(0.491 0.129 9.953);
  --chart-4: oklch(0.516 0.137 10.028);
  --chart-5: oklch(0.636 0.1 175.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.98 0.005 181.929);
  --muted: oklch(0.213 0.033 6.288);
  --muted-foreground: oklch(0.77 0.02 2.784);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.98 0.005 181.929);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.98 0.005 181.929);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.628 0.096 176.153);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.491 0.129 9.953);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.491 0.129 9.953);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.684 0.171 39.757);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.628 0.096 176.153);
  --chart-1: oklch(0.628 0.096 176.153);
  --chart-2: oklch(0.491 0.129 9.953);
  --chart-3: oklch(0.491 0.129 9.953);
  --chart-4: oklch(0.516 0.137 10.028);
  --chart-5: oklch(0.636 0.1 175.782);
}