Priority for shadcn/ui

Priority is a shadcn/ui theme built around a light green primary color (#beeac6) with light purple accents (#eabee1). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the light green primary (#beeac6) on a green-tinted background (#050b06).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#050b06black
Foreground
#041106black
#fcfdfcwhite
Card
#f3fcf5mintcream
#060e08black
Card foreground
#030d05black
#ffffffwhite
Popover
#f3fcf5mintcream
#060e08black
Popover foreground
#030d05black
#ffffffwhite
Primary
#beeac6lightgrey
#beeac6lightgrey
Primary foreground
#1d5929darkslategray
#1d5929darkslategray
Secondary
#eabee1thistle
#eabee1thistle
Secondary foreground
#591d4dindigo
#591d4dindigo
Muted
#f2e3eflavender
#1c0d19black
Muted foreground
#6e5e6bdimgray
#a1919edarkgray
Accent
#eabee1thistle
#eabee1thistle
Accent foreground
#591d4dindigo
#591d4dindigo
Destructive
#b40e0efirebrick
#da1010red
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#beeac6lightgrey
#beeac6lightgrey

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.81:1AAA
Primary button6.26:1AA
Secondary button7.55:1AAA
Muted text4.89:1AA
Accent7.55:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button6.26:1AA
Secondary button7.55:1AAA
Muted text6.30:1AA
Accent7.55:1AAA
Destructive5.15:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 151.874);
  --foreground: oklch(0.159 0.031 150.199);
  --muted: oklch(0.931 0.023 332.375);
  --muted-foreground: oklch(0.502 0.029 332.834);
  --popover: oklch(0.982 0.013 151.807);
  --popover-foreground: oklch(0.142 0.027 150.843);
  --card: oklch(0.982 0.013 151.807);
  --card-foreground: oklch(0.142 0.027 150.843);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.896 0.066 150.831);
  --primary-foreground: oklch(0.411 0.099 147.305);
  --secondary: oklch(0.849 0.068 333.153);
  --secondary-foreground: oklch(0.341 0.108 336.394);
  --accent: oklch(0.849 0.068 333.153);
  --accent-foreground: oklch(0.341 0.108 336.394);
  --destructive: oklch(0.489 0.194 28.514);
  --destructive-foreground: oklch(0.978 0.009 17.317);
  --ring: oklch(0.896 0.066 150.831);
  --chart-1: oklch(0.896 0.066 150.831);
  --chart-2: oklch(0.849 0.068 333.153);
  --chart-3: oklch(0.849 0.068 333.153);
  --chart-4: oklch(0.876 0.056 332.923);
  --chart-5: oklch(0.897 0.07 150.762);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 151.353);
  --foreground: oklch(0.993 0.002 151.983);
  --muted: oklch(0.186 0.035 334.557);
  --muted-foreground: oklch(0.675 0.027 332.583);
  --popover: oklch(0.154 0.02 150.855);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.154 0.02 150.855);
  --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.896 0.066 150.831);
  --primary-foreground: oklch(0.411 0.099 147.305);
  --secondary: oklch(0.849 0.068 333.153);
  --secondary-foreground: oklch(0.341 0.108 336.394);
  --accent: oklch(0.849 0.068 333.153);
  --accent-foreground: oklch(0.341 0.108 336.394);
  --destructive: oklch(0.563 0.225 28.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.896 0.066 150.831);
  --chart-1: oklch(0.896 0.066 150.831);
  --chart-2: oklch(0.849 0.068 333.153);
  --chart-3: oklch(0.849 0.068 333.153);
  --chart-4: oklch(0.876 0.056 332.923);
  --chart-5: oklch(0.897 0.07 150.762);
}