Tangible for shadcn/ui

Tangible is a shadcn/ui theme built around a vivid deep green primary color (#095311) with neutral gray accents (#dbdbdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#095311) on a green-tinted background (#051006).

Color palette

TokenLightDark
Background
#ffffffwhite
#051006black
Foreground
#020902black
#f5faf5whitesmoke
Card
#fcfcfcsnow
#061408black
Card foreground
#010401black
#f8fcf9mintcream
Popover
#fcfcfcsnow
#061408black
Popover foreground
#010401black
#f8fcf9mintcream
Primary
#095311darkgreen
#095311darkgreen
Primary foreground
#99f4a4palegreen
#99f4a4palegreen
Secondary
#dbdbdbgainsboro
#2b312bdarkslategray
Secondary foreground
#424242darkslategray
#c3cbc4silver
Muted
#e2d4d4gainsboro
#1d2b1eblack
Muted foreground
#453a3adarkslategray
#bac5bbsilver
Accent
#dbdbdbgainsboro
#2b312bdarkslategray
Accent foreground
#424242darkslategray
#c3cbc4silver
Destructive
#9d1b07darkred
#f63f23orangered
Destructive foreground
#fdddd8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#095311darkgreen
#095311darkgreen

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.16:1AAA
Primary button7.00:1AAA
Secondary button7.27:1AAA
Muted text7.62:1AAA
Accent7.27:1AAA
Destructive6.39:1AA
Dark mode
Text on background18.39:1AAA
Text on card18.31:1AAA
Primary button7.00:1AAA
Secondary button8.02:1AAA
Muted text8.34:1AAA
Accent8.02:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.027 147.635);
  --muted: oklch(0.882 0.016 17.457);
  --muted-foreground: oklch(0.361 0.016 17.927);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.098 0.021 147.635);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.021 147.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.386 0.119 144.054);
  --primary-foreground: oklch(0.891 0.14 147.053);
  --secondary: oklch(0.892 0 180);
  --secondary-foreground: oklch(0.38 0 180);
  --accent: oklch(0.892 0 180);
  --accent-foreground: oklch(0.38 0 180);
  --destructive: oklch(0.449 0.167 31.422);
  --destructive-foreground: oklch(0.923 0.037 28.188);
  --ring: oklch(0.386 0.119 144.054);
  --chart-1: oklch(0.386 0.119 144.054);
  --chart-2: oklch(0.892 0 180);
  --chart-3: oklch(0.892 0 180);
  --chart-4: oklch(0.916 0 180);
  --chart-5: oklch(0.39 0.122 143.952);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.028 147.621);
  --foreground: oklch(0.98 0.008 149.032);
  --muted: oklch(0.271 0.03 147.718);
  --muted-foreground: oklch(0.812 0.019 148.857);
  --popover: oklch(0.172 0.032 147.186);
  --popover-foreground: oklch(0.987 0.006 149.066);
  --card: oklch(0.172 0.032 147.186);
  --card-foreground: oklch(0.987 0.006 149.066);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.386 0.119 144.054);
  --primary-foreground: oklch(0.891 0.14 147.053);
  --secondary: oklch(0.305 0.013 148.603);
  --secondary-foreground: oklch(0.833 0.013 148.951);
  --accent: oklch(0.305 0.013 148.603);
  --accent-foreground: oklch(0.833 0.013 148.951);
  --destructive: oklch(0.641 0.223 31.648);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.386 0.119 144.054);
  --chart-1: oklch(0.386 0.119 144.054);
  --chart-2: oklch(0.305 0.013 148.603);
  --chart-3: oklch(0.305 0.013 148.603);
  --chart-4: oklch(0.336 0.015 148.585);
  --chart-5: oklch(0.39 0.122 143.952);
}