Shock for shadcn/ui

Shock is a shadcn/ui theme built around a vivid deep teal primary color (#062b2d) with muted light teal accents (#e9eced). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid deep teal primary (#062b2d) on a teal-tinted background (#050f0f).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#050f0fblack
Foreground
#031516black
#fcfdfdwhite
Card
#f5fafamintcream
#071213black
Card foreground
#031112black
#ffffffwhite
Popover
#f8fbfcghostwhite
#050f0fblack
Popover foreground
#031516black
#fcfdfdwhite
Primary
#062b2dblack
#062b2dblack
Primary foreground
#1cd6e3darkturquoise
#1cd6e3darkturquoise
Secondary
#e9ecedlavender
#2d2f2fdarkslategray
Secondary foreground
#49595adarkslategray
#c6c8c8silver
Muted
#eceeefwhitesmoke
#101313black
Muted foreground
#4f5d5fdimgray
#a0afb0darkgray
Accent
#e9ecedlavender
#2d2f2fdarkslategray
Accent foreground
#49595adarkslategray
#c6c8c8silver
Destructive
#720808maroon
#f02424crimson
Destructive foreground
#fab3b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#062b2dblack
#062b2dblack

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.19:1AAA
Primary button8.48:1AAA
Secondary button6.19:1AA
Muted text5.89:1AA
Accent6.19:1AA
Destructive6.91:1AA
Dark mode
Text on background19.09:1AAA
Text on card18.99:1AAA
Primary button8.48:1AAA
Secondary button8.04:1AAA
Muted text8.21:1AAA
Accent8.04:1AAA
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 202.176);
  --foreground: oklch(0.18 0.025 201.088);
  --muted: oklch(0.948 0.003 202.182);
  --muted-foreground: oklch(0.468 0.018 201.844);
  --popover: oklch(0.987 0.004 202.176);
  --popover-foreground: oklch(0.18 0.025 201.088);
  --card: oklch(0.98 0.005 202.156);
  --card-foreground: oklch(0.163 0.022 200.675);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.264 0.041 202.02);
  --primary-foreground: oklch(0.799 0.133 202.993);
  --secondary: oklch(0.941 0.004 202.168);
  --secondary-foreground: oklch(0.45 0.019 201.815);
  --accent: oklch(0.941 0.004 202.168);
  --accent-foreground: oklch(0.45 0.019 201.815);
  --destructive: oklch(0.353 0.138 28.157);
  --destructive-foreground: oklch(0.832 0.083 18.979);
  --ring: oklch(0.264 0.041 202.02);
  --chart-1: oklch(0.264 0.041 202.02);
  --chart-2: oklch(0.941 0.004 202.168);
  --chart-3: oklch(0.941 0.004 202.168);
  --chart-4: oklch(0.963 0.003 202.186);
  --chart-5: oklch(0.266 0.042 202.064);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.015 201.03);
  --foreground: oklch(0.993 0.001 202.207);
  --muted: oklch(0.184 0.004 201.98);
  --muted-foreground: oklch(0.743 0.016 201.989);
  --popover: oklch(0.157 0.015 201.03);
  --popover-foreground: oklch(0.993 0.001 202.207);
  --card: oklch(0.172 0.017 201.34);
  --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.264 0.041 202.02);
  --primary-foreground: oklch(0.799 0.133 202.993);
  --secondary: oklch(0.302 0.002 202.128);
  --secondary-foreground: oklch(0.831 0.002 202.184);
  --accent: oklch(0.302 0.002 202.128);
  --accent-foreground: oklch(0.831 0.002 202.184);
  --destructive: oklch(0.612 0.234 27.772);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.264 0.041 202.02);
  --chart-1: oklch(0.264 0.041 202.02);
  --chart-2: oklch(0.302 0.002 202.128);
  --chart-3: oklch(0.302 0.002 202.128);
  --chart-4: oklch(0.333 0.003 202.125);
  --chart-5: oklch(0.266 0.042 202.064);
}