Revival for shadcn/ui

Revival is a shadcn/ui theme built around a light teal primary color (#d6f5f1) with light blue accents (#d6eaf5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#d6f5f1) on a teal-tinted background (#030c0b).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c0bblack
Foreground
#010404black
#f8fcfbmintcream
Card
#fcfcfcsnow
#04100fblack
Card foreground
#000000black
#fbfdfdwhite
Popover
#fcfcfcsnow
#04100fblack
Popover foreground
#000000black
#fbfdfdwhite
Primary
#d6f5f1lightcyan
#d6f5f1lightcyan
Primary foreground
#0a2925black
#0a2925black
Secondary
#d6f5e1gainsboro
#d6f5e1gainsboro
Secondary foreground
#0a2915black
#0a2915black
Muted
#e7eeealavender
#111814black
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#d6eaf5lavender
#d6eaf5lavender
Accent foreground
#1e597bdarkslategray
#1e597bdarkslategray
Destructive
#a53212brown
#e14419orangered
Destructive foreground
#fdf0edseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d6f5f1lightcyan
#d6f5f1lightcyan

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.54:1AAA
Primary button13.40:1AAA
Secondary button13.43:1AAA
Muted text5.49:1AA
Accent6.10:1AA
Destructive6.13:1AA
Dark mode
Text on background19.12:1AAA
Text on card18.92:1AAA
Primary button13.40:1AAA
Secondary button13.43:1AAA
Muted text6.99:1AA
Accent6.10:1AA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.101 0.014 187.088);
  --muted: oklch(0.943 0.009 158.515);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.033 186.879);
  --primary-foreground: oklch(0.257 0.037 183.099);
  --secondary: oklch(0.942 0.042 157.723);
  --secondary-foreground: oklch(0.252 0.052 152.669);
  --accent: oklch(0.925 0.026 232.999);
  --accent-foreground: oklch(0.442 0.082 238.323);
  --destructive: oklch(0.487 0.156 35.318);
  --destructive-foreground: oklch(0.965 0.015 35.968);
  --ring: oklch(0.947 0.033 186.879);
  --chart-1: oklch(0.947 0.033 186.879);
  --chart-2: oklch(0.942 0.042 157.723);
  --chart-3: oklch(0.925 0.026 232.999);
  --chart-4: oklch(0.959 0.029 158.044);
  --chart-5: oklch(0.948 0.034 186.838);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.017 186.603);
  --foreground: oklch(0.988 0.004 187.645);
  --muted: oklch(0.199 0.013 157.238);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.161 0.019 185.454);
  --popover-foreground: oklch(0.994 0.002 187.698);
  --card: oklch(0.161 0.019 185.454);
  --card-foreground: oklch(0.994 0.002 187.698);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.033 186.879);
  --primary-foreground: oklch(0.257 0.037 183.099);
  --secondary: oklch(0.942 0.042 157.723);
  --secondary-foreground: oklch(0.252 0.052 152.669);
  --accent: oklch(0.925 0.026 232.999);
  --accent-foreground: oklch(0.442 0.082 238.323);
  --destructive: oklch(0.61 0.2 35.091);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.033 186.879);
  --chart-1: oklch(0.947 0.033 186.879);
  --chart-2: oklch(0.942 0.042 157.723);
  --chart-3: oklch(0.925 0.026 232.999);
  --chart-4: oklch(0.959 0.029 158.044);
  --chart-5: oklch(0.948 0.034 186.838);
}