Treasure for shadcn/ui

Treasure is a shadcn/ui theme built around a deep teal primary color (#112c28) with deep yellow accents (#2c2811). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#112c28) on a teal-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#fbfefdwhite
#050a0ablack
Foreground
#000000black
#ffffffwhite
Card
#f8fcfcmintcream
#060e0dblack
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefdwhite
#050a0ablack
Popover foreground
#000000black
#ffffffwhite
Primary
#112c28darkslategray
#112c28darkslategray
Primary foreground
#50b9abmediumaquamarine
#50b9abmediumaquamarine
Secondary
#28112cblack
#28112cblack
Secondary foreground
#ce99d6plum
#ce99d6plum
Muted
#e1d4e3gainsboro
#291c2bdarkslategray
Muted foreground
#413e42darkslategray
#c1bdc1silver
Accent
#2c2811black
#2c2811black
Accent foreground
#b9ab50darkkhaki
#b9ab50darkkhaki
Destructive
#791202maroon
#fb2909orangered
Destructive foreground
#feb9aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#112c28darkslategray
#112c28darkslategray

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.33:1AAA
Primary button6.27:1AA
Secondary button7.56:1AAA
Muted text7.37:1AAA
Accent6.33:1AA
Destructive6.75:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.50:1AAA
Primary button6.27:1AA
Secondary button7.56:1AAA
Muted text8.71:1AAA
Accent6.33:1AA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 187.685);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.884 0.025 321.67);
  --muted-foreground: oklch(0.368 0.008 321.651);
  --popover: oklch(0.994 0.003 187.685);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 187.621);
  --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.27 0.033 184.146);
  --primary-foreground: oklch(0.721 0.099 183.461);
  --secondary: oklch(0.226 0.058 322.126);
  --secondary-foreground: oklch(0.753 0.104 321.943);
  --accent: oklch(0.275 0.038 100.689);
  --accent-foreground: oklch(0.735 0.114 100.666);
  --destructive: oklch(0.371 0.139 31.877);
  --destructive-foreground: oklch(0.847 0.082 28.73);
  --ring: oklch(0.27 0.033 184.146);
  --chart-1: oklch(0.27 0.033 184.146);
  --chart-2: oklch(0.226 0.058 322.126);
  --chart-3: oklch(0.275 0.038 100.689);
  --chart-4: oklch(0.257 0.07 322.136);
  --chart-5: oklch(0.273 0.035 183.924);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.011 187.336);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.033 321.934);
  --muted-foreground: oklch(0.803 0.006 321.615);
  --popover: oklch(0.14 0.011 187.336);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.013 186.182);
  --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.27 0.033 184.146);
  --primary-foreground: oklch(0.721 0.099 183.461);
  --secondary: oklch(0.226 0.058 322.126);
  --secondary-foreground: oklch(0.753 0.104 321.943);
  --accent: oklch(0.275 0.038 100.689);
  --accent-foreground: oklch(0.735 0.114 100.666);
  --destructive: oklch(0.634 0.243 31.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.27 0.033 184.146);
  --chart-1: oklch(0.27 0.033 184.146);
  --chart-2: oklch(0.226 0.058 322.126);
  --chart-3: oklch(0.275 0.038 100.689);
  --chart-4: oklch(0.257 0.07 322.136);
  --chart-5: oklch(0.273 0.035 183.924);
}