Unknown for shadcn/ui

Unknown is a shadcn/ui theme built around a muted teal primary color (#577a6a) with muted teal accents (#57797a). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the muted teal primary (#577a6a) on a teal-tinted background (#040b08).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#040b08black
Foreground
#04150dblack
#f6f9f7whitesmoke
Card
#f2fcf8mintcream
#060f0bblack
Card foreground
#04110bblack
#f9fbfamintcream
Popover
#f7fdfamintcream
#040b08black
Popover foreground
#04150dblack
#f6f9f7whitesmoke
Primary
#577a6adimgray
#577a6adimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#577a58dimgray
#577a58dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0f0e1gainsboro
#0f1f10black
Muted foreground
#525b53dimgray
#a4ada4darkgray
Accent
#57797adimgray
#57797adimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b3220ffirebrick
#ef4e39tomato
Destructive foreground
#fef7f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#577a6adimgray
#577a6adimgray

Contrast

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

Light mode
Text on background18.23:1AAA
Text on card18.43:1AAA
Primary button4.76:1AA
Secondary button4.83:1AA
Muted text5.93:1AA
Accent4.74:1AA
Destructive6.28:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.72:1AAA
Primary button4.76:1AA
Secondary button4.83:1AA
Muted text7.45:1AAA
Accent4.74:1AA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 166.687);
  --foreground: oklch(0.178 0.029 162.697);
  --muted: oklch(0.939 0.025 146.304);
  --muted-foreground: oklch(0.461 0.017 146.21);
  --popover: oklch(0.989 0.008 166.687);
  --popover-foreground: oklch(0.178 0.029 162.697);
  --card: oklch(0.983 0.012 166.574);
  --card-foreground: oklch(0.161 0.025 164.404);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.549 0.048 164.243);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.544 0.066 145.4);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.551 0.039 198.762);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.497 0.183 31.001);
  --destructive-foreground: oklch(0.981 0.008 26.497);
  --ring: oklch(0.549 0.048 164.243);
  --chart-1: oklch(0.549 0.048 164.243);
  --chart-2: oklch(0.544 0.066 145.4);
  --chart-3: oklch(0.551 0.039 198.762);
  --chart-4: oklch(0.572 0.07 145.391);
  --chart-5: oklch(0.554 0.056 163.774);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 166.928);
  --foreground: oklch(0.979 0.003 166.813);
  --muted: oklch(0.219 0.035 145.006);
  --muted-foreground: oklch(0.737 0.015 146.358);
  --popover: oklch(0.14 0.015 166.928);
  --popover-foreground: oklch(0.979 0.003 166.813);
  --card: oklch(0.156 0.018 165.08);
  --card-foreground: oklch(0.986 0.002 166.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.549 0.048 164.243);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.544 0.066 145.4);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.551 0.039 198.762);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.201 30.683);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.549 0.048 164.243);
  --chart-1: oklch(0.549 0.048 164.243);
  --chart-2: oklch(0.544 0.066 145.4);
  --chart-3: oklch(0.551 0.039 198.762);
  --chart-4: oklch(0.572 0.07 145.391);
  --chart-5: oklch(0.554 0.056 163.774);
}