Aftershock for shadcn/ui

Aftershock is a shadcn/ui theme built around a vivid light yellow primary color (#f9f3d2) with vivid light green accents (#ecf9d2). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid light yellow primary (#f9f3d2) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcf7snow
#000000black
Foreground
#171303black
#fcfbf8snow
Card
#fcfaf3floralwhite
#030303black
Card foreground
#121002black
#fdfdfcwhite
Popover
#fcfaf3floralwhite
#030303black
Popover foreground
#121002black
#fdfdfcwhite
Primary
#f9f3d2lightgoldenrodyellow
#f9f3d2lightgoldenrodyellow
Primary foreground
#2d2706black
#2d2706black
Secondary
#f9dfd2antiquewhite
#f9dfd2antiquewhite
Secondary foreground
#883911saddlebrown
#883911saddlebrown
Muted
#f3eeeclinen
#130e0cblack
Muted foreground
#584c46darkolivegreen
#b9ada7darkgray
Accent
#ecf9d2beige
#ecf9d2beige
Accent foreground
#202d06black
#202d06black
Destructive
#691707maroon
#e6330forangered
Destructive foreground
#f9b6a9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f3d2lightgoldenrodyellow
#f9f3d2lightgoldenrodyellow

Contrast

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

Light mode
Text on background18.06:1AAA
Text on card18.30:1AAA
Primary button13.35:1AAA
Secondary button6.25:1AA
Muted text7.22:1AAA
Accent13.26:1AAA
Destructive7.09:1AAA
Dark mode
Text on background20.29:1AAA
Text on card20.31:1AAA
Primary button13.35:1AAA
Secondary button6.25:1AA
Muted text8.75:1AAA
Accent13.26:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 97.35);
  --foreground: oklch(0.188 0.033 99.476);
  --muted: oklch(0.954 0.006 48.67);
  --muted-foreground: oklch(0.427 0.018 48.271);
  --popover: oklch(0.985 0.01 97.395);
  --popover-foreground: oklch(0.17 0.029 100.255);
  --card: oklch(0.985 0.01 97.395);
  --card-foreground: oklch(0.17 0.029 100.255);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.96 0.044 97.813);
  --primary-foreground: oklch(0.272 0.05 97.749);
  --secondary: oklch(0.921 0.034 48.327);
  --secondary-foreground: oklch(0.446 0.12 43.307);
  --accent: oklch(0.963 0.054 122.406);
  --accent-foreground: oklch(0.277 0.063 126.287);
  --destructive: oklch(0.346 0.118 33.031);
  --destructive-foreground: oklch(0.836 0.081 31.552);
  --ring: oklch(0.96 0.044 97.813);
  --chart-1: oklch(0.96 0.044 97.813);
  --chart-2: oklch(0.921 0.034 48.327);
  --chart-3: oklch(0.963 0.054 122.406);
  --chart-4: oklch(0.945 0.024 48.456);
  --chart-5: oklch(0.962 0.045 97.83);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 97.31);
  --muted: oklch(0.169 0.01 48.123);
  --muted-foreground: oklch(0.756 0.016 48.505);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 97.285);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 97.285);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.96 0.044 97.813);
  --primary-foreground: oklch(0.272 0.05 97.749);
  --secondary: oklch(0.921 0.034 48.327);
  --secondary-foreground: oklch(0.446 0.12 43.307);
  --accent: oklch(0.963 0.054 122.406);
  --accent-foreground: oklch(0.277 0.063 126.287);
  --destructive: oklch(0.602 0.219 32.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.96 0.044 97.813);
  --chart-1: oklch(0.96 0.044 97.813);
  --chart-2: oklch(0.921 0.034 48.327);
  --chart-3: oklch(0.963 0.054 122.406);
  --chart-4: oklch(0.945 0.024 48.456);
  --chart-5: oklch(0.962 0.045 97.83);
}