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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 4.95:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 11.01:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 4.25:1 | AA Large |
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);
}