Refreshments for shadcn/ui

Refreshments is a shadcn/ui theme built around a light orange primary color (#f7e2d4) with muted light orange accents (#e3ddd9). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light orange primary (#f7e2d4) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040201black
Foreground
#120803black
#fdfcfbsnow
Card
#fdfcfcsnow
#040201black
Card foreground
#120803black
#fdfcfbsnow
Popover
#fdfcfcsnow
#040201black
Popover foreground
#120803black
#fdfcfbsnow
Primary
#f7e2d4antiquewhite
#f7e2d4antiquewhite
Primary foreground
#804119saddlebrown
#804119saddlebrown
Secondary
#edeae8linen
#3a2e27darkslategray
Secondary foreground
#5b5049darkolivegreen
#d4c7bfsilver
Muted
#e3d9d3gainsboro
#2c221cblack
Muted foreground
#444241darkslategray
#bebcbbsilver
Accent
#e3ddd9gainsboro
#563e2fdarkolivegreen
Accent foreground
#50423adarkslategray
#e6d9d1gainsboro
Destructive
#913203saddlebrown
#fb6e28tomato
Destructive foreground
#fedac8bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7e2d4antiquewhite
#f7e2d4antiquewhite

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.34:1AAA
Primary button6.22:1AA
Secondary button6.52:1AA
Muted text7.22:1AAA
Accent7.13:1AAA
Destructive6.03:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button6.22:1AA
Secondary button7.93:1AAA
Muted text8.22:1AAA
Accent7.18:1AAA
Destructive7.35:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.001 54.489);
  --foreground: oklch(0.148 0.024 61.943);
  --muted: oklch(0.893 0.013 54.299);
  --muted-foreground: oklch(0.38 0.003 54.404);
  --popover: oklch(0.992 0.001 54.489);
  --popover-foreground: oklch(0.148 0.024 61.943);
  --card: oklch(0.992 0.001 54.489);
  --card-foreground: oklch(0.148 0.024 61.943);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.925 0.029 54.08);
  --primary-foreground: oklch(0.446 0.101 49.201);
  --secondary: oklch(0.939 0.004 54.45);
  --secondary-foreground: oklch(0.438 0.019 53.939);
  --accent: oklch(0.9 0.009 54.367);
  --accent-foreground: oklch(0.392 0.023 53.705);
  --destructive: oklch(0.451 0.137 40.816);
  --destructive-foreground: oklch(0.914 0.047 48.185);
  --ring: oklch(0.925 0.029 54.08);
  --chart-1: oklch(0.925 0.029 54.08);
  --chart-2: oklch(0.939 0.004 54.45);
  --chart-3: oklch(0.9 0.009 54.367);
  --chart-4: oklch(0.962 0.002 54.472);
  --chart-5: oklch(0.925 0.03 54.061);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.008 61.084);
  --foreground: oklch(0.992 0.002 54.483);
  --muted: oklch(0.261 0.018 53.551);
  --muted-foreground: oklch(0.797 0.002 54.466);
  --popover: oklch(0.092 0.008 61.084);
  --popover-foreground: oklch(0.992 0.002 54.483);
  --card: oklch(0.092 0.008 61.084);
  --card-foreground: oklch(0.992 0.002 54.483);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.925 0.029 54.08);
  --primary-foreground: oklch(0.446 0.101 49.201);
  --secondary: oklch(0.313 0.022 53.569);
  --secondary-foreground: oklch(0.838 0.019 54.202);
  --accent: oklch(0.385 0.041 53.006);
  --accent-foreground: oklch(0.893 0.018 54.234);
  --destructive: oklch(0.701 0.189 43.285);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.925 0.029 54.08);
  --chart-1: oklch(0.925 0.029 54.08);
  --chart-2: oklch(0.313 0.022 53.569);
  --chart-3: oklch(0.385 0.041 53.006);
  --chart-4: oklch(0.343 0.025 53.538);
  --chart-5: oklch(0.925 0.03 54.061);
}