Pseudocode is a shadcn/ui theme built around a neutral gray primary color (#383939) with neutral gray accents (#393838). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the neutral gray primary (#383939) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #010404black |
| Foreground | #061412black | #f9fbfbghostwhite |
| Card | #f3fcfbmintcream | #020807black |
| Card foreground | #04100fblack | #fcfdfdwhite |
| Popover | #f7fdfcmintcream | #010404black |
| Popover foreground | #061412black | #f9fbfbghostwhite |
| Primary | #383939darkslategray | #383939darkslategray |
| Primary foreground | #d1d2d1lightgrey | #d1d2d1lightgrey |
| Secondary | #393838darkslategray | #393838darkslategray |
| Secondary foreground | #d2d1d1lightgrey | #d2d1d1lightgrey |
| Muted | #e4dddegainsboro | #221b1cblack |
| Muted foreground | #444141darkslategray | #bebbbcsilver |
| Accent | #393838darkslategray | #393838darkslategray |
| Accent foreground | #d2d1d1lightgrey | #d2d1d1lightgrey |
| Destructive | #ad0401darkred | #e90501red |
| Destructive foreground | #ffe1e1mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #383939darkslategray | #383939darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.25:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.14:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 7.68:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 8.86:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.66:1 | AA |
Paste this into your globals.css to use Pseudocode in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 188.761);
--foreground: oklch(0.177 0.021 186.092);
--muted: oklch(0.903 0.007 9.104);
--muted-foreground: oklch(0.378 0.004 9.138);
--popover: oklch(0.989 0.006 188.761);
--popover-foreground: oklch(0.177 0.021 186.092);
--card: oklch(0.983 0.009 188.685);
--card-foreground: oklch(0.16 0.018 186.737);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.342 0.002 188.802);
--primary-foreground: oklch(0.862 0.001 188.882);
--secondary: oklch(0.34 0.002 9.02);
--secondary-foreground: oklch(0.86 0.001 8.938);
--accent: oklch(0.34 0.002 9.02);
--accent-foreground: oklch(0.86 0.001 8.938);
--destructive: oklch(0.47 0.191 29.392);
--destructive-foreground: oklch(0.934 0.033 18.921);
--ring: oklch(0.342 0.002 188.802);
--chart-1: oklch(0.342 0.002 188.802);
--chart-2: oklch(0.34 0.002 9.02);
--chart-3: oklch(0.34 0.002 9.02);
--chart-4: oklch(0.369 0.002 9.022);
--chart-5: oklch(0.345 0.006 188.483);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 188.29);
--foreground: oklch(0.987 0.003 188.844);
--muted: oklch(0.231 0.011 9.997);
--muted-foreground: oklch(0.795 0.003 9);
--popover: oklch(0.099 0.011 188.29);
--popover-foreground: oklch(0.987 0.003 188.844);
--card: oklch(0.125 0.013 188.29);
--card-foreground: oklch(0.993 0.001 188.877);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.342 0.002 188.802);
--primary-foreground: oklch(0.862 0.001 188.882);
--secondary: oklch(0.34 0.002 9.02);
--secondary-foreground: oklch(0.86 0.001 8.938);
--accent: oklch(0.34 0.002 9.02);
--accent-foreground: oklch(0.86 0.001 8.938);
--destructive: oklch(0.588 0.24 29.342);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.342 0.002 188.802);
--chart-1: oklch(0.342 0.002 188.802);
--chart-2: oklch(0.34 0.002 9.02);
--chart-3: oklch(0.34 0.002 9.02);
--chart-4: oklch(0.369 0.002 9.022);
--chart-5: oklch(0.345 0.006 188.483);
}