Beret for shadcn/ui

Beret is a shadcn/ui theme built around a muted light indigo primary color (#ecedf3) with muted light yellow accents (#f3f3ec). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted light indigo primary (#ecedf3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#000000black
Foreground
#020208black
#f8f8fbghostwhite
Card
#f7f7fdghostwhite
#000000black
Card foreground
#020208black
#f8f8fbghostwhite
Popover
#f7f7fdghostwhite
#000000black
Popover foreground
#020208black
#f8f8fbghostwhite
Primary
#ecedf3lavender
#ecedf3lavender
Primary foreground
#44456adarkslateblue
#44456adarkslateblue
Secondary
#f3f3ecwhitesmoke
#f3f3ecwhitesmoke
Secondary foreground
#2c2b1cdarkslategray
#2c2b1cdarkslategray
Muted
#edede8linen
#171712black
Muted foreground
#464643darkslategray
#bcbbb9silver
Accent
#f3f3ecwhitesmoke
#f3f3ecwhitesmoke
Accent foreground
#2c2b1cdarkslategray
#2c2b1cdarkslategray
Destructive
#8f2c05saddlebrown
#e24608orangered
Destructive foreground
#fdd8c9bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecedf3lavender
#ecedf3lavender

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button7.78:1AAA
Secondary button12.81:1AAA
Muted text8.08:1AAA
Accent12.81:1AAA
Destructive6.26:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.78:1AAA
Secondary button12.81:1AAA
Muted text9.36:1AAA
Accent12.81:1AAA
Destructive4.09:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 284.663);
  --foreground: oklch(0.095 0.022 279.093);
  --muted: oklch(0.946 0.007 104.943);
  --muted-foreground: oklch(0.394 0.004 105.002);
  --popover: oklch(0.978 0.008 284.663);
  --popover-foreground: oklch(0.095 0.022 279.093);
  --card: oklch(0.978 0.008 284.663);
  --card-foreground: oklch(0.095 0.022 279.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.946 0.009 284.645);
  --primary-foreground: oklch(0.405 0.062 281.762);
  --secondary: oklch(0.962 0.009 104.964);
  --secondary-foreground: oklch(0.285 0.026 106.278);
  --accent: oklch(0.962 0.009 104.964);
  --accent-foreground: oklch(0.285 0.026 106.278);
  --destructive: oklch(0.44 0.14 37.996);
  --destructive-foreground: oklch(0.909 0.047 42.754);
  --ring: oklch(0.946 0.009 284.645);
  --chart-1: oklch(0.946 0.009 284.645);
  --chart-2: oklch(0.962 0.009 104.964);
  --chart-3: oklch(0.962 0.009 104.964);
  --chart-4: oklch(0.981 0.004 104.884);
  --chart-5: oklch(0.945 0.01 284.622);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.004 284.737);
  --muted: oklch(0.203 0.011 105.681);
  --muted-foreground: oklch(0.793 0.004 104.89);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.004 284.737);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.981 0.004 284.737);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.946 0.009 284.645);
  --primary-foreground: oklch(0.405 0.062 281.762);
  --secondary: oklch(0.962 0.009 104.964);
  --secondary-foreground: oklch(0.285 0.026 106.278);
  --accent: oklch(0.962 0.009 104.964);
  --accent-foreground: oklch(0.285 0.026 106.278);
  --destructive: oklch(0.613 0.202 37.069);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.946 0.009 284.645);
  --chart-1: oklch(0.946 0.009 284.645);
  --chart-2: oklch(0.962 0.009 104.964);
  --chart-3: oklch(0.962 0.009 104.964);
  --chart-4: oklch(0.981 0.004 104.884);
  --chart-5: oklch(0.945 0.01 284.622);
}