Fridge for shadcn/ui

Fridge is a shadcn/ui theme built around a muted light blue primary color (#c7d1db) with muted light green accents (#d1dbc7). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#c7d1db) on a neutral background (#020304).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020304black
Foreground
#010509black
#ffffffwhite
Card
#f7fafcghostwhite
#030507black
Card foreground
#010205black
#ffffffwhite
Popover
#fbfcfewhite
#020304black
Popover foreground
#010509black
#ffffffwhite
Primary
#c7d1dblightgrey
#c7d1dblightgrey
Primary foreground
#2c3844darkslategray
#2c3844darkslategray
Secondary
#dbc7d1thistle
#dbc7d1thistle
Secondary foreground
#442c38darkslategray
#442c38darkslategray
Muted
#f1eaedlinen
#150e12black
Muted foreground
#6c6066dimgray
#9f9399darkgray
Accent
#d1dbc7lightgrey
#d1dbc7lightgrey
Accent foreground
#38442cdarkslategray
#38442cdarkslategray
Destructive
#8b1a0edarkred
#ea412etomato
Destructive foreground
#fad5d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7d1dblightgrey
#c7d1dblightgrey

Contrast

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

Light mode
Text on background19.97:1AAA
Text on card19.79:1AAA
Primary button7.72:1AAA
Secondary button7.89:1AAA
Muted text5.05:1AA
Accent7.20:1AAA
Destructive6.86:1AA
Dark mode
Text on background20.70:1AAA
Text on card20.41:1AAA
Primary button7.72:1AAA
Secondary button7.89:1AAA
Muted text6.42:1AA
Accent7.20:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 249.67);
  --foreground: oklch(0.11 0.017 238.509);
  --muted: oklch(0.943 0.008 346.256);
  --muted-foreground: oklch(0.502 0.018 346.947);
  --popover: oklch(0.992 0.002 249.67);
  --popover-foreground: oklch(0.11 0.017 238.509);
  --card: oklch(0.983 0.004 249.691);
  --card-foreground: oklch(0.087 0.014 238.509);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.856 0.017 249.833);
  --primary-foreground: oklch(0.334 0.026 250.333);
  --secondary: oklch(0.85 0.025 346.779);
  --secondary-foreground: oklch(0.327 0.039 348.983);
  --accent: oklch(0.878 0.028 129.469);
  --accent-foreground: oklch(0.368 0.042 130.433);
  --destructive: oklch(0.415 0.15 30.487);
  --destructive-foreground: oklch(0.903 0.043 25.446);
  --ring: oklch(0.856 0.017 249.833);
  --chart-1: oklch(0.856 0.017 249.833);
  --chart-2: oklch(0.85 0.025 346.779);
  --chart-3: oklch(0.878 0.028 129.469);
  --chart-4: oklch(0.875 0.021 346.631);
  --chart-5: oklch(0.855 0.02 249.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.007 243.82);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.176 0.013 347.893);
  --muted-foreground: oklch(0.675 0.017 346.663);
  --popover: oklch(0.089 0.007 243.82);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.009 243.82);
  --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.856 0.017 249.833);
  --primary-foreground: oklch(0.334 0.026 250.333);
  --secondary: oklch(0.85 0.025 346.779);
  --secondary-foreground: oklch(0.327 0.039 348.983);
  --accent: oklch(0.878 0.028 129.469);
  --accent-foreground: oklch(0.368 0.042 130.433);
  --destructive: oklch(0.624 0.209 30.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.856 0.017 249.833);
  --chart-1: oklch(0.856 0.017 249.833);
  --chart-2: oklch(0.85 0.025 346.779);
  --chart-3: oklch(0.878 0.028 129.469);
  --chart-4: oklch(0.875 0.021 346.631);
  --chart-5: oklch(0.855 0.02 249.859);
}