Modification for shadcn/ui

Modification is a shadcn/ui theme built around a teal primary color (#3ee0ba) with yellow accents (#e0ba3e). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#3ee0ba) on a teal-tinted background (#040b09).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b09black
Foreground
#04100dblack
#fcfdfdwhite
Card
#fcfcfcsnow
#060f0dblack
Card foreground
#030c0ablack
#ffffffwhite
Popover
#fcfcfcsnow
#060f0dblack
Popover foreground
#030c0ablack
#ffffffwhite
Primary
#3ee0baturquoise
#3ee0baturquoise
Primary foreground
#0b4638darkslategray
#0b4638darkslategray
Secondary
#ba3ee0mediumorchid
#ba3ee0mediumorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e0dbe1gainsboro
#231e24black
Muted foreground
#58455edimgray
#b4a1badarkgray
Accent
#e0ba3egoldenrod
#e0ba3egoldenrod
Accent foreground
#46380bdarkolivegreen
#46380bdarkolivegreen
Destructive
#cf3f17firebrick
#e9603atomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3ee0baturquoise
#3ee0baturquoise

Contrast

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

Light mode
Text on background19.35:1AAA
Text on card19.36:1AAA
Primary button6.43:1AA
Secondary button4.33:1AA Large
Muted text6.31:1AA
Accent6.13:1AA
Destructive4.81:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.45:1AAA
Primary button6.43:1AA
Secondary button4.33:1AA Large
Muted text6.82:1AA
Accent6.13:1AA
Destructive6.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.16 0.02 178.435);
  --muted: oklch(0.896 0.01 318.319);
  --muted-foreground: oklch(0.421 0.046 318.213);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.143 0.017 180.298);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.017 180.298);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.141 173.169);
  --primary-foreground: oklch(0.355 0.063 172.877);
  --secondary: oklch(0.609 0.243 317.019);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.8 0.143 91.457);
  --accent-foreground: oklch(0.348 0.063 91.248);
  --destructive: oklch(0.573 0.187 35.15);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.141 173.169);
  --chart-1: oklch(0.814 0.141 173.169);
  --chart-2: oklch(0.609 0.243 317.019);
  --chart-3: oklch(0.8 0.143 91.457);
  --chart-4: oklch(0.629 0.231 317.316);
  --chart-5: oklch(0.823 0.145 172.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.013 180.762);
  --foreground: oklch(0.993 0.001 180.938);
  --muted: oklch(0.243 0.014 318.271);
  --muted-foreground: oklch(0.734 0.041 318.275);
  --popover: oklch(0.157 0.015 178.979);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.015 178.979);
  --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.814 0.141 173.169);
  --primary-foreground: oklch(0.355 0.063 172.877);
  --secondary: oklch(0.609 0.243 317.019);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.8 0.143 91.457);
  --accent-foreground: oklch(0.348 0.063 91.248);
  --destructive: oklch(0.657 0.179 36.192);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.814 0.141 173.169);
  --chart-1: oklch(0.814 0.141 173.169);
  --chart-2: oklch(0.609 0.243 317.019);
  --chart-3: oklch(0.8 0.143 91.457);
  --chart-4: oklch(0.629 0.231 317.316);
  --chart-5: oklch(0.823 0.145 172.866);
}