Tempting for shadcn/ui

Tempting is a shadcn/ui theme built around a green primary color (#8ac65d) with green accents (#5dc664). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#8ac65d) on a neutral background (#050802).

Color palette

TokenLightDark
Background
#fafcf8snow
#050802black
Foreground
#0c1504black
#fafbf8snow
Card
#f7fbf4whitesmoke
#070c04black
Card foreground
#091103black
#fcfdfcwhite
Popover
#fafcf8snow
#050802black
Popover foreground
#0c1504black
#fafbf8snow
Primary
#8ac65dyellowgreen
#8ac65dyellowgreen
Primary foreground
#000000black
#000000black
Secondary
#bfc65ddarkkhaki
#bfc65ddarkkhaki
Secondary foreground
#000000black
#000000black
Muted
#f2f3ecwhitesmoke
#12130cblack
Muted foreground
#4a4a45darkslategray
#babab5silver
Accent
#5dc664mediumseagreen
#5dc664mediumseagreen
Accent foreground
#000000black
#000000black
Destructive
#9e2000darkred
#ff5429tomato
Destructive foreground
#ffdad1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ac65dyellowgreen
#8ac65dyellowgreen

Contrast

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

Light mode
Text on background18.09:1AAA
Text on card18.33:1AAA
Primary button10.31:1AAA
Secondary button11.44:1AAA
Muted text7.98:1AAA
Accent9.72:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.39:1AAA
Primary button10.31:1AAA
Secondary button11.44:1AAA
Muted text9.61:1AAA
Accent9.72:1AAA
Destructive6.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 131.144);
  --foreground: oklch(0.182 0.037 132.07);
  --muted: oklch(0.962 0.009 109.643);
  --muted-foreground: oklch(0.408 0.009 109.902);
  --popover: oklch(0.988 0.007 131.144);
  --popover-foreground: oklch(0.182 0.037 132.07);
  --card: oklch(0.983 0.01 131.175);
  --card-foreground: oklch(0.165 0.032 130.922);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.762 0.151 133.327);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.799 0.13 112.433);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.168 144.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.455 0.166 33.478);
  --destructive-foreground: oklch(0.918 0.043 34.327);
  --ring: oklch(0.762 0.151 133.327);
  --chart-1: oklch(0.762 0.151 133.327);
  --chart-2: oklch(0.799 0.13 112.433);
  --chart-3: oklch(0.741 0.168 144.897);
  --chart-4: oklch(0.813 0.122 112.206);
  --chart-5: oklch(0.77 0.159 133.477);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.019 129.797);
  --foreground: oklch(0.987 0.004 131.122);
  --muted: oklch(0.182 0.013 110.739);
  --muted-foreground: oklch(0.788 0.008 109.666);
  --popover: oklch(0.126 0.019 129.797);
  --popover-foreground: oklch(0.987 0.004 131.122);
  --card: oklch(0.144 0.022 129.944);
  --card-foreground: oklch(0.994 0.002 131.103);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.762 0.151 133.327);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.799 0.13 112.433);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.168 144.897);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.676 0.214 34.697);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.762 0.151 133.327);
  --chart-1: oklch(0.762 0.151 133.327);
  --chart-2: oklch(0.799 0.13 112.433);
  --chart-3: oklch(0.741 0.168 144.897);
  --chart-4: oklch(0.813 0.122 112.206);
  --chart-5: oklch(0.77 0.159 133.477);
}