Sarcastic for shadcn/ui

Sarcastic is a shadcn/ui theme built around a muted teal primary color (#93bdba) with muted blue accents (#93abbd). The light mode uses a neutral background (#fbfefe). Dark mode keeps the muted teal primary (#93bdba) on a teal-tinted background (#04100f).

Color palette

TokenLightDark
Background
#fbfefewhite
#04100fblack
Foreground
#020d0cblack
#f8fbfbghostwhite
Card
#fbfefewhite
#04100fblack
Card foreground
#020d0cblack
#f8fbfbghostwhite
Popover
#fbfefewhite
#04100fblack
Popover foreground
#020d0cblack
#f8fbfbghostwhite
Primary
#93bdbadarkgray
#93bdbadarkgray
Primary foreground
#0c1312black
#0c1312black
Secondary
#93bda6darkseagreen
#93bda6darkseagreen
Secondary foreground
#0c130fblack
#0c130fblack
Muted
#e0ebe5gainsboro
#141f19black
Muted foreground
#444b47darkslategray
#b4bbb7silver
Accent
#93abbddarkgray
#93abbddarkgray
Accent foreground
#0c1013black
#0c1013black
Destructive
#94340asaddlebrown
#d74b0fchocolate
Destructive foreground
#fce0d4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#93bdbadarkgray
#93bdbadarkgray

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button9.17:1AAA
Secondary button9.03:1AAA
Muted text7.33:1AAA
Accent8.02:1AAA
Destructive6.10:1AA
Dark mode
Text on background18.57:1AAA
Text on card18.57:1AAA
Primary button9.17:1AAA
Secondary button9.03:1AAA
Muted text8.65:1AAA
Accent8.02:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 192.37);
  --foreground: oklch(0.146 0.019 190.723);
  --muted: oklch(0.93 0.015 161.424);
  --muted-foreground: oklch(0.405 0.011 161.111);
  --popover: oklch(0.994 0.003 192.37);
  --popover-foreground: oklch(0.146 0.019 190.723);
  --card: oklch(0.994 0.003 192.37);
  --card-foreground: oklch(0.146 0.019 190.723);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.768 0.045 191.204);
  --primary-foreground: oklch(0.179 0.011 191.098);
  --secondary: oklch(0.762 0.056 159.898);
  --secondary-foreground: oklch(0.177 0.014 159.712);
  --accent: oklch(0.729 0.037 241.017);
  --accent-foreground: oklch(0.169 0.009 241.095);
  --destructive: oklch(0.458 0.138 39.593);
  --destructive-foreground: oklch(0.927 0.035 44.638);
  --ring: oklch(0.768 0.045 191.204);
  --chart-1: oklch(0.768 0.045 191.204);
  --chart-2: oklch(0.762 0.056 159.898);
  --chart-3: oklch(0.729 0.037 241.017);
  --chart-4: oklch(0.783 0.051 160.138);
  --chart-5: oklch(0.773 0.05 191.068);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.018 190.452);
  --foreground: oklch(0.987 0.003 192.356);
  --muted: oklch(0.227 0.02 159.432);
  --muted-foreground: oklch(0.786 0.01 161.507);
  --popover: oklch(0.161 0.018 190.452);
  --popover-foreground: oklch(0.987 0.003 192.356);
  --card: oklch(0.161 0.018 190.452);
  --card-foreground: oklch(0.987 0.003 192.356);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.768 0.045 191.204);
  --primary-foreground: oklch(0.179 0.011 191.098);
  --secondary: oklch(0.762 0.056 159.898);
  --secondary-foreground: oklch(0.177 0.014 159.712);
  --accent: oklch(0.729 0.037 241.017);
  --accent-foreground: oklch(0.169 0.009 241.095);
  --destructive: oklch(0.599 0.186 38.981);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.045 191.204);
  --chart-1: oklch(0.768 0.045 191.204);
  --chart-2: oklch(0.762 0.056 159.898);
  --chart-3: oklch(0.729 0.037 241.017);
  --chart-4: oklch(0.783 0.051 160.138);
  --chart-5: oklch(0.773 0.05 191.068);
}