Everlasting for shadcn/ui

Everlasting is a shadcn/ui theme built around a green primary color (#748e15) with indigo accents (#2f158e). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the green primary (#748e15) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfdf7snow
#030302black
Foreground
#000000black
#fdfdfcwhite
Card
#fcfdf7snow
#030302black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfdf7snow
#030302black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#748e15olivedrab
#748e15olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#2f158eindigo
#2f158eindigo
Secondary foreground
#e2dcfalavender
#e2dcfalavender
Muted
#e9e6f4lavender
#0e0b19black
Muted foreground
#3f3b4edarkslategray
#b5b1c4silver
Accent
#2f158eindigo
#2f158eindigo
Accent foreground
#e2dcfalavender
#e2dcfalavender
Destructive
#882d0csaddlebrown
#e64c14orangered
Destructive foreground
#fbd8cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#748e15olivedrab
#748e15olivedrab

Contrast

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

Light mode
Text on background20.49:1AAA
Text on card20.49:1AAA
Primary button3.73:1AA Large
Secondary button9.77:1AAA
Muted text8.79:1AAA
Accent9.77:1AAA
Destructive6.50:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button3.73:1AA Large
Secondary button9.77:1AAA
Muted text9.30:1AAA
Accent9.77:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 116.475);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.932 0.019 295.96);
  --muted-foreground: oklch(0.365 0.033 294.635);
  --popover: oklch(0.991 0.008 116.475);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.008 116.475);
  --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.605 0.14 122.127);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.335 0.179 280.631);
  --secondary-foreground: oklch(0.907 0.041 295.493);
  --accent: oklch(0.335 0.179 280.631);
  --accent-foreground: oklch(0.907 0.041 295.493);
  --destructive: oklch(0.429 0.131 37.987);
  --destructive-foreground: oklch(0.908 0.042 41.021);
  --ring: oklch(0.605 0.14 122.127);
  --chart-1: oklch(0.605 0.14 122.127);
  --chart-2: oklch(0.335 0.179 280.631);
  --chart-3: oklch(0.335 0.179 280.631);
  --chart-4: oklch(0.356 0.192 280.338);
  --chart-5: oklch(0.612 0.143 122.318);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.009 116.615);
  --foreground: oklch(0.993 0.001 116.344);
  --muted: oklch(0.161 0.029 292.78);
  --muted-foreground: oklch(0.768 0.028 295.674);
  --popover: oklch(0.099 0.009 116.615);
  --popover-foreground: oklch(0.993 0.001 116.344);
  --card: oklch(0.099 0.009 116.615);
  --card-foreground: oklch(0.993 0.001 116.344);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.605 0.14 122.127);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.335 0.179 280.631);
  --secondary-foreground: oklch(0.907 0.041 295.493);
  --accent: oklch(0.335 0.179 280.631);
  --accent-foreground: oklch(0.907 0.041 295.493);
  --destructive: oklch(0.626 0.199 37.314);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.605 0.14 122.127);
  --chart-1: oklch(0.605 0.14 122.127);
  --chart-2: oklch(0.335 0.179 280.631);
  --chart-3: oklch(0.335 0.179 280.631);
  --chart-4: oklch(0.356 0.192 280.338);
  --chart-5: oklch(0.612 0.143 122.318);
}