Untried for shadcn/ui

Untried is a shadcn/ui theme built around a green primary color (#b7c440) with purple accents (#c440b7). The light mode uses a neutral background (#fefefb). Dark mode keeps the green primary (#b7c440) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fefefbwhite
#0a0a05black
Foreground
#040401black
#fdfdfbsnow
Card
#fcfdf7snow
#0d0e07black
Card foreground
#000000black
#ffffffwhite
Popover
#fefefbwhite
#0a0a05black
Popover foreground
#040401black
#fdfdfbsnow
Primary
#b7c440yellowgreen
#b7c440yellowgreen
Primary foreground
#282b0dblack
#282b0dblack
Secondary
#40b7c4mediumturquoise
#40b7c4mediumturquoise
Secondary foreground
#0d282bblack
#0d282bblack
Muted
#e0eff1lavender
#0e1e1fblack
Muted foreground
#434b4cdarkslategray
#b3bbbcsilver
Accent
#c440b7mediumorchid
#c440b7mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#db110ared
#f52b24crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7c440yellowgreen
#b7c440yellowgreen

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.47:1AAA
Primary button7.63:1AAA
Secondary button6.48:1AA
Muted text7.55:1AAA
Accent4.40:1AA Large
Destructive5.11:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.41:1AAA
Primary button7.63:1AAA
Secondary button6.48:1AA
Muted text8.79:1AAA
Accent4.40:1AA Large
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 111.08);
  --foreground: oklch(0.106 0.017 112.579);
  --muted: oklch(0.941 0.016 204.865);
  --muted-foreground: oklch(0.406 0.01 204.82);
  --popover: oklch(0.995 0.003 111.08);
  --popover-foreground: oklch(0.106 0.017 112.579);
  --card: oklch(0.991 0.007 111.146);
  --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.787 0.153 114.898);
  --primary-foreground: oklch(0.278 0.047 114.271);
  --secondary: oklch(0.719 0.105 205.676);
  --secondary-foreground: oklch(0.257 0.033 205.138);
  --accent: oklch(0.601 0.213 332.161);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.565 0.225 29.249);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.153 114.898);
  --chart-1: oklch(0.787 0.153 114.898);
  --chart-2: oklch(0.719 0.105 205.676);
  --chart-3: oklch(0.601 0.213 332.161);
  --chart-4: oklch(0.735 0.102 205.402);
  --chart-5: oklch(0.797 0.159 115.039);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.013 111.935);
  --foreground: oklch(0.995 0.003 111.063);
  --muted: oklch(0.221 0.021 204.757);
  --muted-foreground: oklch(0.786 0.009 204.908);
  --popover: oklch(0.143 0.013 111.935);
  --popover-foreground: oklch(0.995 0.003 111.063);
  --card: oklch(0.159 0.015 112.51);
  --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.787 0.153 114.898);
  --primary-foreground: oklch(0.278 0.047 114.271);
  --secondary: oklch(0.719 0.105 205.676);
  --secondary-foreground: oklch(0.257 0.033 205.138);
  --accent: oklch(0.601 0.213 332.161);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.624 0.234 28.55);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.153 114.898);
  --chart-1: oklch(0.787 0.153 114.898);
  --chart-2: oklch(0.719 0.105 205.676);
  --chart-3: oklch(0.601 0.213 332.161);
  --chart-4: oklch(0.735 0.102 205.402);
  --chart-5: oklch(0.797 0.159 115.039);
}