Fresh for shadcn/ui

Fresh is a shadcn/ui theme built around a light purple primary color (#e8d7ea) with light pink accents (#ead7e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e8d7ea) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#100311black
#fbf9fbsnow
Card
#fcfcfcsnow
#0a040bblack
Card foreground
#0c020dblack
#fdfcfdwhite
Popover
#fcfcfcsnow
#0a040bblack
Popover foreground
#0c020dblack
#fdfcfdwhite
Primary
#e8d7eagainsboro
#e8d7eagainsboro
Primary foreground
#59325ddarkslateblue
#59325ddarkslateblue
Secondary
#dfd7eagainsboro
#dfd7eagainsboro
Secondary foreground
#44325ddarkslategray
#44325ddarkslategray
Muted
#ece7f3lavender
#110c18black
Muted foreground
#625d69dimgray
#9b96a2darkgray
Accent
#ead7e2gainsboro
#ead7e2gainsboro
Accent foreground
#5d324bdarkslategray
#5d324bdarkslategray
Destructive
#b54708saddlebrown
#f6762ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8d7eagainsboro
#e8d7eagainsboro

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card19.94:1AAA
Primary button7.53:1AAA
Secondary button8.09:1AAA
Muted text5.26:1AA
Accent7.57:1AAA
Destructive5.41:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.78:1AAA
Primary button7.53:1AAA
Secondary button8.09:1AAA
Muted text6.68:1AA
Accent7.57:1AAA
Destructive7.57:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.041 324.717);
  --muted: oklch(0.936 0.017 304.793);
  --muted-foreground: oklch(0.489 0.02 304.487);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.121 0.036 325.002);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.036 325.002);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.899 0.031 323.29);
  --primary-foreground: oklch(0.384 0.085 324.025);
  --secondary: oklch(0.891 0.026 304.64);
  --secondary-foreground: oklch(0.357 0.075 301.97);
  --accent: oklch(0.898 0.025 341.642);
  --accent-foreground: oklch(0.38 0.071 345.052);
  --destructive: oklch(0.54 0.156 43.105);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.031 323.29);
  --chart-1: oklch(0.899 0.031 323.29);
  --chart-2: oklch(0.891 0.026 304.64);
  --chart-3: oklch(0.898 0.025 341.642);
  --chart-4: oklch(0.919 0.019 304.752);
  --chart-5: oklch(0.898 0.034 323.305);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.019 324.481);
  --foreground: oklch(0.984 0.003 323.15);
  --muted: oklch(0.166 0.026 302.823);
  --muted-foreground: oklch(0.68 0.018 304.675);
  --popover: oklch(0.125 0.022 324.393);
  --popover-foreground: oklch(0.992 0.002 323.142);
  --card: oklch(0.125 0.022 324.393);
  --card-foreground: oklch(0.992 0.002 323.142);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.899 0.031 323.29);
  --primary-foreground: oklch(0.384 0.085 324.025);
  --secondary: oklch(0.891 0.026 304.64);
  --secondary-foreground: oklch(0.357 0.075 301.97);
  --accent: oklch(0.898 0.025 341.642);
  --accent-foreground: oklch(0.38 0.071 345.052);
  --destructive: oklch(0.707 0.177 46.514);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.899 0.031 323.29);
  --chart-1: oklch(0.899 0.031 323.29);
  --chart-2: oklch(0.891 0.026 304.64);
  --chart-3: oklch(0.898 0.025 341.642);
  --chart-4: oklch(0.919 0.019 304.752);
  --chart-5: oklch(0.898 0.034 323.305);
}