Tangible for shadcn/ui

Tangible is a shadcn/ui theme built around a light blue primary color (#eaedf6) with neutral gray accents (#cccdd1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#eaedf6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010205black
#fcfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#010205black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#010205black
#fcfcfdwhite
Primary
#eaedf6lavender
#eaedf6lavender
Primary foreground
#354679darkslateblue
#354679darkslateblue
Secondary
#cccdd1lightgrey
#202227black
Secondary foreground
#333438darkslategray
#b7bac3silver
Muted
#eef0f7whitesmoke
#080b11black
Muted foreground
#5f626ddimgray
#9295a0lightslategray
Accent
#cccdd1lightgrey
#202227black
Accent foreground
#333438darkslategray
#b7bac3silver
Destructive
#ce1b12firebrick
#ee473ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaedf6lavender
#eaedf6lavender

Contrast

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

Light mode
Text on background20.74:1AAA
Text on card20.74:1AAA
Primary button7.76:1AAA
Secondary button7.84:1AAA
Muted text5.33:1AA
Accent7.84:1AAA
Destructive5.51:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.76:1AAA
Secondary button8.18:1AAA
Muted text6.59:1AA
Accent8.18:1AAA
Destructive3.73: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.078 0.017 259.656);
  --muted: oklch(0.956 0.009 271.32);
  --muted-foreground: oklch(0.498 0.018 271.048);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.078 0.017 259.656);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.078 0.017 259.656);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.946 0.012 271.284);
  --primary-foreground: oklch(0.405 0.088 268.385);
  --secondary: oklch(0.849 0.005 271.352);
  --secondary-foreground: oklch(0.326 0.007 271.189);
  --accent: oklch(0.849 0.005 271.352);
  --accent-foreground: oklch(0.326 0.007 271.189);
  --destructive: oklch(0.545 0.211 29.33);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.012 271.284);
  --chart-1: oklch(0.946 0.012 271.284);
  --chart-2: oklch(0.849 0.005 271.352);
  --chart-3: oklch(0.849 0.005 271.352);
  --chart-4: oklch(0.874 0.004 271.363);
  --chart-5: oklch(0.945 0.013 271.273);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 271.394);
  --muted: oklch(0.148 0.015 269.761);
  --muted-foreground: oklch(0.672 0.016 271.17);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 271.394);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 271.394);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.946 0.012 271.284);
  --primary-foreground: oklch(0.405 0.088 268.385);
  --secondary: oklch(0.253 0.009 271.028);
  --secondary-foreground: oklch(0.788 0.013 271.25);
  --accent: oklch(0.253 0.009 271.028);
  --accent-foreground: oklch(0.788 0.013 271.25);
  --destructive: oklch(0.638 0.205 27.567);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.012 271.284);
  --chart-1: oklch(0.946 0.012 271.284);
  --chart-2: oklch(0.253 0.009 271.028);
  --chart-3: oklch(0.253 0.009 271.028);
  --chart-4: oklch(0.283 0.011 271.004);
  --chart-5: oklch(0.945 0.013 271.273);
}