Scratchy for shadcn/ui

Scratchy is a shadcn/ui theme built around a vivid teal primary color (#0dc59a) with muted light teal accents (#c5d8d4). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid teal primary (#0dc59a) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#020303black
Foreground
#010404black
#ffffffwhite
Card
#f8fcfbmintcream
#020303black
Card foreground
#010404black
#ffffffwhite
Popover
#f8fcfbmintcream
#020303black
Popover foreground
#010404black
#ffffffwhite
Primary
#0dc59alightseagreen
#0dc59alightseagreen
Primary foreground
#000504black
#000504black
Secondary
#c5d8d4lightgrey
#303131darkslategray
Secondary foreground
#2b403bdarkslategray
#c9cacalightgrey
Muted
#f1f3f3whitesmoke
#0c0e0dblack
Muted foreground
#485653darkslategray
#a9b7b4darkgray
Accent
#c5d8d4lightgrey
#303131darkslategray
Accent foreground
#2b403bdarkslategray
#c9cacalightgrey
Destructive
#e10805red
#fb3532crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0dc59alightseagreen
#0dc59alightseagreen

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button9.21:1AAA
Secondary button7.45:1AAA
Muted text6.90:1AA
Accent7.45:1AAA
Destructive4.95:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button9.21:1AAA
Secondary button7.95:1AAA
Muted text9.35:1AAA
Accent7.95:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 180.826);
  --foreground: oklch(0.101 0.015 180.945);
  --muted: oklch(0.963 0.002 180.911);
  --muted-foreground: oklch(0.44 0.019 179.719);
  --popover: oklch(0.988 0.005 180.826);
  --popover-foreground: oklch(0.101 0.015 180.945);
  --card: oklch(0.988 0.005 180.826);
  --card-foreground: oklch(0.101 0.015 180.945);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.732 0.144 169.634);
  --primary-foreground: oklch(0.102 0.017 180.944);
  --secondary: oklch(0.867 0.022 180.241);
  --secondary-foreground: oklch(0.353 0.028 178.435);
  --accent: oklch(0.867 0.022 180.241);
  --accent-foreground: oklch(0.353 0.028 178.435);
  --destructive: oklch(0.573 0.232 29.232);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.144 169.634);
  --chart-1: oklch(0.732 0.144 169.634);
  --chart-2: oklch(0.867 0.022 180.241);
  --chart-3: oklch(0.867 0.022 180.241);
  --chart-4: oklch(0.888 0.018 180.373);
  --chart-5: oklch(0.74 0.147 169.298);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 180.953);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.003 180.49);
  --muted-foreground: oklch(0.768 0.016 180.346);
  --popover: oklch(0.096 0.007 180.953);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.096 0.007 180.953);
  --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.732 0.144 169.634);
  --primary-foreground: oklch(0.102 0.017 180.944);
  --secondary: oklch(0.312 0.001 180.832);
  --secondary-foreground: oklch(0.838 0.001 180.919);
  --accent: oklch(0.312 0.001 180.832);
  --accent-foreground: oklch(0.838 0.001 180.919);
  --destructive: oklch(0.643 0.232 27.415);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.144 169.634);
  --chart-1: oklch(0.732 0.144 169.634);
  --chart-2: oklch(0.312 0.001 180.832);
  --chart-3: oklch(0.312 0.001 180.832);
  --chart-4: oklch(0.342 0.002 180.828);
  --chart-5: oklch(0.74 0.147 169.298);
}