Scrap for shadcn/ui

Scrap is a shadcn/ui theme built around a green primary color (#8acf68) with muted light green accents (#bfccb8). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#8acf68) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040802black
Foreground
#081103black
#f7faf5whitesmoke
Card
#fcfdfcwhite
#040802black
Card foreground
#081103black
#f7faf5whitesmoke
Popover
#fcfdfcwhite
#040802black
Popover foreground
#081103black
#f7faf5whitesmoke
Primary
#8acf68darkseagreen
#8acf68darkseagreen
Primary foreground
#020401black
#020401black
Secondary
#d5d9d4lightgrey
#1f271bblack
Secondary foreground
#3c413adarkslategray
#b6c7aesilver
Muted
#ddead7gainsboro
#1c2815black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#bfccb8silver
#36492cdarkslategray
Accent foreground
#272f22darkslategray
#d0dec9lightgrey
Destructive
#7d0c08maroon
#f02019crimson
Destructive foreground
#fbbebclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8acf68darkseagreen
#8acf68darkseagreen

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button11.01:1AAA
Secondary button7.30:1AAA
Muted text4.95:1AA
Accent8.24:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button11.01:1AAA
Secondary button8.61:1AAA
Muted text5.76:1AA
Accent6.95:1AA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 134.839);
  --foreground: oklch(0.164 0.034 133.987);
  --muted: oklch(0.922 0.028 134.978);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.994 0.002 134.839);
  --popover-foreground: oklch(0.164 0.034 133.987);
  --card: oklch(0.994 0.002 134.839);
  --card-foreground: oklch(0.164 0.034 133.987);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.786 0.153 136.15);
  --primary-foreground: oklch(0.099 0.015 133.35);
  --secondary: oklch(0.88 0.007 134.869);
  --secondary-foreground: oklch(0.368 0.014 135.019);
  --accent: oklch(0.828 0.03 135.012);
  --accent-foreground: oklch(0.294 0.026 135.301);
  --destructive: oklch(0.376 0.145 28.931);
  --destructive-foreground: oklch(0.856 0.07 20.9);
  --ring: oklch(0.786 0.153 136.15);
  --chart-1: oklch(0.786 0.153 136.15);
  --chart-2: oklch(0.88 0.007 134.869);
  --chart-3: oklch(0.828 0.03 135.012);
  --chart-4: oklch(0.903 0.006 134.86);
  --chart-5: oklch(0.792 0.161 136.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.02 133.323);
  --foreground: oklch(0.981 0.008 134.865);
  --muted: oklch(0.259 0.037 135.673);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.125 0.02 133.323);
  --popover-foreground: oklch(0.981 0.008 134.865);
  --card: oklch(0.125 0.02 133.323);
  --card-foreground: oklch(0.981 0.008 134.865);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.786 0.153 136.15);
  --primary-foreground: oklch(0.099 0.015 133.35);
  --secondary: oklch(0.261 0.024 135.331);
  --secondary-foreground: oklch(0.809 0.039 135.071);
  --accent: oklch(0.381 0.054 135.655);
  --accent-foreground: oklch(0.885 0.033 135.016);
  --destructive: oklch(0.61 0.237 28.947);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.786 0.153 136.15);
  --chart-1: oklch(0.786 0.153 136.15);
  --chart-2: oklch(0.261 0.024 135.331);
  --chart-3: oklch(0.381 0.054 135.655);
  --chart-4: oklch(0.296 0.029 135.362);
  --chart-5: oklch(0.792 0.161 136.24);
}