Everlasting for shadcn/ui

Everlasting is a shadcn/ui theme built around a teal primary color (#296d70) with yellow accents (#6d7029). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#296d70) on a teal-tinted background (#070d0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070d0dblack
Foreground
#010404black
#ffffffwhite
Card
#fcfcfcsnow
#091011black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#091011black
Popover foreground
#000000black
#ffffffwhite
Primary
#296d70seagreen
#296d70seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#70296drebeccapurple
#70296drebeccapurple
Secondary foreground
#f1daf0lavender
#f1daf0lavender
Muted
#e9d3e8gainsboro
#2c162bblack
Muted foreground
#4c384bdarkslategray
#c7b3c6silver
Accent
#6d7029darkolivegreen
#6d7029darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cd1c04firebrick
#fa260aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#296d70seagreen
#296d70seagreen

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 button5.98:1AA
Secondary button7.19:1AAA
Muted text7.55:1AAA
Accent5.22:1AA
Destructive5.58:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.18:1AAA
Primary button5.98:1AA
Secondary button7.19:1AAA
Muted text8.49:1AAA
Accent5.22:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.011 198.706);
  --muted: oklch(0.89 0.038 327.423);
  --muted-foreground: oklch(0.371 0.041 328.012);
  --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.493 0.068 200.048);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.412 0.134 329.702);
  --secondary-foreground: oklch(0.913 0.04 327.434);
  --accent: oklch(0.528 0.094 111.912);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.542 0.21 30.741);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.493 0.068 200.048);
  --chart-1: oklch(0.493 0.068 200.048);
  --chart-2: oklch(0.412 0.134 329.702);
  --chart-3: oklch(0.528 0.094 111.912);
  --chart-4: oklch(0.44 0.145 329.729);
  --chart-5: oklch(0.499 0.071 200.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.01 200.043);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.241 0.051 328.818);
  --muted-foreground: oklch(0.789 0.034 327.433);
  --popover: oklch(0.167 0.011 200.179);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.167 0.011 200.179);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.493 0.068 200.048);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.412 0.134 329.702);
  --secondary-foreground: oklch(0.913 0.04 327.434);
  --accent: oklch(0.528 0.094 111.912);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.63 0.243 30.719);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.493 0.068 200.048);
  --chart-1: oklch(0.493 0.068 200.048);
  --chart-2: oklch(0.412 0.134 329.702);
  --chart-3: oklch(0.528 0.094 111.912);
  --chart-4: oklch(0.44 0.145 329.729);
  --chart-5: oklch(0.499 0.071 200.086);
}