Chemical for shadcn/ui

Chemical is a shadcn/ui theme built around a deep orange primary color (#644920) with deep blue accents (#203c64). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#644920) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040301black
#fdfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#644920darkolivegreen
#644920darkolivegreen
Primary foreground
#eedfc9bisque
#eedfc9bisque
Secondary
#203c64darkslategray
#203c64darkslategray
Secondary foreground
#c9d8eegainsboro
#c9d8eegainsboro
Muted
#cbd6e7gainsboro
#182334darkslategray
Muted foreground
#4f5764dimgray
#9ba4b0darkgray
Accent
#203c64darkslategray
#203c64darkslategray
Accent foreground
#c9d8eegainsboro
#c9d8eegainsboro
Destructive
#a73411brown
#df4516orangered
Destructive foreground
#fdf0ecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#644920darkolivegreen
#644920darkolivegreen

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button6.36:1AA
Secondary button7.71:1AAA
Muted text4.96:1AA
Accent7.71:1AAA
Destructive6.00:1AA
Dark mode
Text on background20.63:1AAA
Text on card20.67:1AAA
Primary button6.36:1AA
Secondary button7.71:1AAA
Muted text6.24:1AA
Accent7.71:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.015 87.226);
  --muted: oklch(0.872 0.027 258.366);
  --muted-foreground: oklch(0.454 0.024 258.372);
  --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.426 0.067 75.239);
  --primary-foreground: oklch(0.909 0.033 78.142);
  --secondary: oklch(0.355 0.078 258.316);
  --secondary-foreground: oklch(0.877 0.034 258.371);
  --accent: oklch(0.355 0.078 258.316);
  --accent-foreground: oklch(0.877 0.034 258.371);
  --destructive: oklch(0.492 0.157 36.028);
  --destructive-foreground: oklch(0.965 0.015 37.674);
  --ring: oklch(0.426 0.067 75.239);
  --chart-1: oklch(0.426 0.067 75.239);
  --chart-2: oklch(0.355 0.078 258.316);
  --chart-3: oklch(0.355 0.078 258.316);
  --chart-4: oklch(0.381 0.086 258.325);
  --chart-5: oklch(0.429 0.07 74.862);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 78.309);
  --muted: oklch(0.256 0.036 258.293);
  --muted-foreground: oklch(0.715 0.021 258.365);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.426 0.067 75.239);
  --primary-foreground: oklch(0.909 0.033 78.142);
  --secondary: oklch(0.355 0.078 258.316);
  --secondary-foreground: oklch(0.877 0.034 258.371);
  --accent: oklch(0.355 0.078 258.316);
  --accent-foreground: oklch(0.877 0.034 258.371);
  --destructive: oklch(0.606 0.198 35.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.067 75.239);
  --chart-1: oklch(0.426 0.067 75.239);
  --chart-2: oklch(0.355 0.078 258.316);
  --chart-3: oklch(0.355 0.078 258.316);
  --chart-4: oklch(0.381 0.086 258.325);
  --chart-5: oklch(0.429 0.07 74.862);
}