Plot for shadcn/ui

Plot is a shadcn/ui theme built around a green primary color (#59c931) with violet accents (#a131c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#59c931) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#071103black
#fcfdfcwhite
Card
#ffffffwhite
#000000black
Card foreground
#071103black
#fcfdfcwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#071103black
#fcfdfcwhite
Primary
#59c931limegreen
#59c931limegreen
Primary foreground
#102509black
#102509black
Secondary
#a131c9darkorchid
#a131c9darkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4eff5whitesmoke
#0e0a10black
Muted foreground
#4b404fdarkslategray
#bbb0bfsilver
Accent
#a131c9darkorchid
#a131c9darkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#632303maroon
#ef5406orangered
Destructive foreground
#fcbc9cburlywood
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59c931limegreen
#59c931limegreen

Contrast

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

Light mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button7.62:1AAA
Secondary button5.54:1AA
Muted text8.64:1AAA
Accent5.54:1AA
Destructive7.21:1AAA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button7.62:1AAA
Secondary button5.54:1AA
Muted text9.42:1AAA
Accent5.54:1AA
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.163 0.036 135.947);
  --muted: oklch(0.958 0.009 317.168);
  --muted-foreground: oklch(0.389 0.027 317.028);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.163 0.036 135.947);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.163 0.036 135.947);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.743 0.211 138.991);
  --primary-foreground: oklch(0.239 0.056 138.205);
  --secondary: oklch(0.548 0.228 315.048);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.228 315.048);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.349 0.102 42.398);
  --destructive-foreground: oklch(0.846 0.087 47.669);
  --ring: oklch(0.743 0.211 138.991);
  --chart-1: oklch(0.743 0.211 138.991);
  --chart-2: oklch(0.548 0.228 315.048);
  --chart-3: oklch(0.548 0.228 315.048);
  --chart-4: oklch(0.57 0.226 315.326);
  --chart-5: oklch(0.751 0.218 139.127);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 137.192);
  --muted: oklch(0.152 0.014 316.973);
  --muted-foreground: oklch(0.772 0.023 317.121);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 137.192);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 137.192);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.743 0.211 138.991);
  --primary-foreground: oklch(0.239 0.056 138.205);
  --secondary: oklch(0.548 0.228 315.048);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.548 0.228 315.048);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.203 39.67);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.743 0.211 138.991);
  --chart-1: oklch(0.743 0.211 138.991);
  --chart-2: oklch(0.548 0.228 315.048);
  --chart-3: oklch(0.548 0.228 315.048);
  --chart-4: oklch(0.57 0.226 315.326);
  --chart-5: oklch(0.751 0.218 139.127);
}