Fresco for shadcn/ui

Fresco is a shadcn/ui theme built around a light teal primary color (#c4ebed) with muted light teal accents (#b5d2d4). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the light teal primary (#c4ebed) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#f7fcfcmintcream
#060e0eblack
Foreground
#030c0cblack
#f5f9f9whitesmoke
Card
#f4fbfbmintcream
#081112black
Card foreground
#020808black
#f9fbfbghostwhite
Popover
#f7fcfcmintcream
#060e0eblack
Popover foreground
#030c0cblack
#f5f9f9whitesmoke
Primary
#c4ebedpaleturquoise
#c4ebedpaleturquoise
Primary foreground
#061314black
#061314black
Secondary
#d1dfe0gainsboro
#1e1f1fblack
Secondary foreground
#344a4cdarkslategray
#b6b9b9silver
Muted
#f0f4f4whitesmoke
#0b0e0fblack
Muted foreground
#4b4e4edarkslategray
#b1b4b4darkgray
Accent
#b5d2d4lightsteelblue
#2f3737darkslategray
Accent foreground
#203537darkslategray
#c8d0d0lightgrey
Destructive
#682803maroon
#f9620borangered
Destructive foreground
#fdc2a1navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c4ebedpaleturquoise
#c4ebedpaleturquoise

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.19:1AAA
Primary button14.78:1AAA
Secondary button6.88:1AA
Muted text7.58:1AAA
Accent8.05:1AAA
Destructive7.06:1AAA
Dark mode
Text on background18.41:1AAA
Text on card18.40:1AAA
Primary button14.78:1AAA
Secondary button8.35:1AAA
Muted text9.26:1AAA
Accent7.81:1AAA
Destructive6.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 202.16);
  --foreground: oklch(0.143 0.017 200.211);
  --muted: oklch(0.964 0.004 202.172);
  --muted-foreground: oklch(0.421 0.004 202.12);
  --popover: oklch(0.988 0.005 202.16);
  --popover-foreground: oklch(0.143 0.017 200.211);
  --card: oklch(0.982 0.007 202.134);
  --card-foreground: oklch(0.125 0.014 199.752);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.04 201.801);
  --primary-foreground: oklch(0.174 0.019 201.277);
  --secondary: oklch(0.894 0.015 202.044);
  --secondary-foreground: oklch(0.392 0.028 201.629);
  --accent: oklch(0.842 0.031 201.863);
  --accent-foreground: oklch(0.312 0.027 201.575);
  --destructive: oklch(0.366 0.103 44.672);
  --destructive-foreground: oklch(0.859 0.081 51.369);
  --ring: oklch(0.912 0.04 201.801);
  --chart-1: oklch(0.912 0.04 201.801);
  --chart-2: oklch(0.894 0.015 202.044);
  --chart-3: oklch(0.842 0.031 201.863);
  --chart-4: oklch(0.915 0.012 202.08);
  --chart-5: oklch(0.914 0.042 201.784);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.154 0.012 201.242);
  --foreground: oklch(0.98 0.004 202.171);
  --muted: oklch(0.162 0.006 201.867);
  --muted-foreground: oklch(0.767 0.003 202.169);
  --popover: oklch(0.154 0.012 201.242);
  --popover-foreground: oklch(0.98 0.004 202.171);
  --card: oklch(0.169 0.014 201.498);
  --card-foreground: oklch(0.986 0.003 202.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.912 0.04 201.801);
  --primary-foreground: oklch(0.174 0.019 201.277);
  --secondary: oklch(0.239 0.002 202.137);
  --secondary-foreground: oklch(0.783 0.003 202.173);
  --accent: oklch(0.328 0.01 201.902);
  --accent-foreground: oklch(0.85 0.008 202.11);
  --destructive: oklch(0.682 0.2 42.578);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.912 0.04 201.801);
  --chart-1: oklch(0.912 0.04 201.801);
  --chart-2: oklch(0.239 0.002 202.137);
  --chart-3: oklch(0.328 0.01 201.902);
  --chart-4: oklch(0.271 0.002 202.132);
  --chart-5: oklch(0.914 0.042 201.784);
}