Tangible for shadcn/ui

Tangible is a shadcn/ui theme built around a vivid violet primary color (#913bed) with vivid green accents (#3bed91). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#913bed) on a neutral background (#030204).

Color palette

TokenLightDark
Background
#ffffffwhite
#030204black
Foreground
#0c0416black
#fcfbfdsnow
Card
#ffffffwhite
#030204black
Card foreground
#0c0416black
#fcfbfdsnow
Popover
#ffffffwhite
#030204black
Popover foreground
#0c0416black
#fcfbfdsnow
Primary
#913bedblueviolet
#913bedblueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ed913bcoral
#ed913bcoral
Secondary foreground
#000000black
#000000black
Muted
#eee5ddantiquewhite
#221911black
Muted foreground
#5e5650dimgray
#afa8a1darkgray
Accent
#3bed91mediumaquamarine
#3bed91mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#85160amaroon
#f15341tomato
Destructive foreground
#fbcbc6pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#913bedblueviolet
#913bedblueviolet

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button5.18:1AA
Secondary button8.70:1AAA
Muted text5.78:1AA
Accent13.68:1AAA
Destructive6.83:1AA
Dark mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button5.18:1AA
Secondary button8.70:1AAA
Muted text7.34:1AAA
Accent13.68:1AAA
Destructive6.03:1AA

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.135 0.043 305.865);
  --muted: oklch(0.927 0.014 65.785);
  --muted-foreground: oklch(0.46 0.014 65.583);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.043 305.865);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.043 305.865);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.565 0.247 300.407);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.738 0.148 59.782);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.837 0.19 155.058);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.399 0.147 30.515);
  --destructive-foreground: oklch(0.883 0.054 25.613);
  --ring: oklch(0.565 0.247 300.407);
  --chart-1: oklch(0.565 0.247 300.407);
  --chart-2: oklch(0.738 0.148 59.782);
  --chart-3: oklch(0.837 0.19 155.058);
  --chart-4: oklch(0.755 0.139 60.982);
  --chart-5: oklch(0.564 0.254 300.006);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.012 308.742);
  --foreground: oklch(0.991 0.003 307.755);
  --muted: oklch(0.222 0.02 64.615);
  --muted-foreground: oklch(0.736 0.013 65.759);
  --popover: oklch(0.085 0.012 308.742);
  --popover-foreground: oklch(0.991 0.003 307.755);
  --card: oklch(0.085 0.012 308.742);
  --card-foreground: oklch(0.991 0.003 307.755);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.565 0.247 300.407);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.738 0.148 59.782);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.837 0.19 155.058);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.654 0.197 29.652);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.565 0.247 300.407);
  --chart-1: oklch(0.565 0.247 300.407);
  --chart-2: oklch(0.738 0.148 59.782);
  --chart-3: oklch(0.837 0.19 155.058);
  --chart-4: oklch(0.755 0.139 60.982);
  --chart-5: oklch(0.564 0.254 300.006);
}