Prompt for shadcn/ui

Prompt is a shadcn/ui theme built around a deep teal primary color (#1c7852) with deep orange accents (#78521c). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the deep teal primary (#1c7852) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#04100bblack
#f4faf8mintcream
Card
#f3fcf8mintcream
#030303black
Card foreground
#030c08black
#f8fcfamintcream
Popover
#f7fdfamintcream
#000000black
Popover foreground
#04100bblack
#f4faf8mintcream
Primary
#1c7852seagreen
#1c7852seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#521c78indigo
#521c78indigo
Secondary foreground
#e6d2f4lavender
#e6d2f4lavender
Muted
#f2f1f3whitesmoke
#0d0c0eblack
Muted foreground
#58505edimgray
#a9a1afdarkgray
Accent
#78521csaddlebrown
#78521csaddlebrown
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#953309saddlebrown
#f25918orangered
Destructive foreground
#fce0d4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c7852seagreen
#1c7852seagreen

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.91:1AAA
Primary button5.45:1AA
Secondary button8.30:1AAA
Muted text6.85:1AA
Accent6.98:1AA
Destructive6.06:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.98:1AAA
Primary button5.45:1AA
Secondary button8.30:1AAA
Muted text7.82:1AAA
Accent6.98:1AA
Destructive3.38:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 169.476);
  --foreground: oklch(0.16 0.022 167.235);
  --muted: oklch(0.96 0.003 311.696);
  --muted-foreground: oklch(0.443 0.025 311.279);
  --popover: oklch(0.988 0.007 169.476);
  --popover-foreground: oklch(0.16 0.022 167.235);
  --card: oklch(0.983 0.01 169.375);
  --card-foreground: oklch(0.143 0.019 169.458);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.51 0.104 160.537);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.359 0.148 306.908);
  --secondary-foreground: oklch(0.89 0.052 311.257);
  --accent: oklch(0.469 0.085 71.662);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.46 0.141 39.318);
  --destructive-foreground: oklch(0.927 0.036 44.631);
  --ring: oklch(0.51 0.104 160.537);
  --chart-1: oklch(0.51 0.104 160.537);
  --chart-2: oklch(0.359 0.148 306.908);
  --chart-3: oklch(0.469 0.085 71.662);
  --chart-4: oklch(0.384 0.16 306.798);
  --chart-5: oklch(0.516 0.107 160.125);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.981 0.007 169.46);
  --muted: oklch(0.155 0.005 311.45);
  --muted-foreground: oklch(0.721 0.022 311.481);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.981 0.007 169.46);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.987 0.005 169.531);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0.104 160.537);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.359 0.148 306.908);
  --secondary-foreground: oklch(0.89 0.052 311.257);
  --accent: oklch(0.469 0.085 71.662);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.66 0.2 39.526);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.104 160.537);
  --chart-1: oklch(0.51 0.104 160.537);
  --chart-2: oklch(0.359 0.148 306.908);
  --chart-3: oklch(0.469 0.085 71.662);
  --chart-4: oklch(0.384 0.16 306.798);
  --chart-5: oklch(0.516 0.107 160.125);
}