Gasket for shadcn/ui

Gasket is a shadcn/ui theme built around a deep green primary color (#061d0e) with deep orange accents (#1d0e06). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#061d0e) on a green-tinted background (#030c06).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c06black
Foreground
#000000black
#f7f8f7whitesmoke
Card
#fcfcfcsnow
#051008black
Card foreground
#000000black
#f9fafaghostwhite
Popover
#fcfcfcsnow
#051008black
Popover foreground
#000000black
#f9fafaghostwhite
Primary
#061d0eblack
#061d0eblack
Primary foreground
#2ac65emediumseagreen
#2ac65emediumseagreen
Secondary
#0e061dblack
#0e061dblack
Secondary foreground
#d7c8f3thistle
#d7c8f3thistle
Muted
#e2dceflavender
#161023black
Muted foreground
#48464edarkslategray
#b4b1b9silver
Accent
#1d0e06black
#1d0e06black
Accent foreground
#e29974darksalmon
#e29974darksalmon
Destructive
#792901saddlebrown
#f75402orangered
Destructive foreground
#fec9aepeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#061d0eblack
#061d0eblack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.81:1AAA
Secondary button12.63:1AAA
Muted text6.96:1AA
Accent8.08:1AAA
Destructive6.63:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.55:1AAA
Primary button7.81:1AAA
Secondary button12.63:1AAA
Muted text8.74:1AAA
Accent8.08:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.906 0.026 301.038);
  --muted-foreground: oklch(0.399 0.015 300.879);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.209 0.043 152.254);
  --primary-foreground: oklch(0.726 0.191 149.076);
  --secondary: oklch(0.152 0.049 296.169);
  --secondary-foreground: oklch(0.859 0.061 300.346);
  --accent: oklch(0.184 0.031 48.195);
  --accent-foreground: oklch(0.746 0.101 47.275);
  --destructive: oklch(0.397 0.12 41.333);
  --destructive-foreground: oklch(0.876 0.071 47.893);
  --ring: oklch(0.209 0.043 152.254);
  --chart-1: oklch(0.209 0.043 152.254);
  --chart-2: oklch(0.152 0.049 296.169);
  --chart-3: oklch(0.184 0.031 48.195);
  --chart-4: oklch(0.179 0.064 294.367);
  --chart-5: oklch(0.21 0.044 152.108);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.021 156.748);
  --foreground: oklch(0.978 0.002 157.221);
  --muted: oklch(0.192 0.037 298.198);
  --muted-foreground: oklch(0.764 0.013 301.221);
  --popover: oklch(0.158 0.024 155.659);
  --popover-foreground: oklch(0.985 0.001 157.236);
  --card: oklch(0.158 0.024 155.659);
  --card-foreground: oklch(0.985 0.001 157.236);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.209 0.043 152.254);
  --primary-foreground: oklch(0.726 0.191 149.076);
  --secondary: oklch(0.152 0.049 296.169);
  --secondary-foreground: oklch(0.859 0.061 300.346);
  --accent: oklch(0.184 0.031 48.195);
  --accent-foreground: oklch(0.746 0.101 47.275);
  --destructive: oklch(0.663 0.211 39.148);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.209 0.043 152.254);
  --chart-1: oklch(0.209 0.043 152.254);
  --chart-2: oklch(0.152 0.049 296.169);
  --chart-3: oklch(0.184 0.031 48.195);
  --chart-4: oklch(0.179 0.064 294.367);
  --chart-5: oklch(0.21 0.044 152.108);
}