Programming is a shadcn/ui theme built around a red primary color (#db4639) with muted light red accents (#cfc0bf). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#db4639) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0504black |
| Foreground | #090201black | #fdfcfcsnow |
| Card | #ffffffwhite | #0b0504black |
| Card foreground | #090201black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0b0504black |
| Popover foreground | #090201black | #fdfcfcsnow |
| Primary | #db4639indianred | #db4639indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ded9d8gainsboro | #171212black |
| Secondary foreground | #483e3ddarkslategray | #b7a5a4darkgray |
| Muted | #eee3e3mistyrose | #1c1211black |
| Muted foreground | #574d4cdarkslategray | #b3a9a8darkgray |
| Accent | #cfc0bfsilver | #2a1e1dblack |
| Accent foreground | #342927darkslategray | #c9b3b1silver |
| Destructive | #750c00maroon | #fa1900red |
| Destructive foreground | #ffb1a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #db4639indianred | #db4639indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.57:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.39:1 | AAA |
| Muted text | 6.51:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 4.24:1 | AA Large |
| Secondary button | 7.87:1 | AAA |
| Muted text | 7.97:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Programming in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.022 30.937);
--muted: oklch(0.925 0.011 23.7);
--muted-foreground: oklch(0.43 0.014 23.93);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.022 30.937);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.022 30.937);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.604 0.187 28.959);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.889 0.006 23.645);
--secondary-foreground: oklch(0.373 0.014 23.973);
--accent: oklch(0.82 0.016 23.785);
--accent-foreground: oklch(0.292 0.018 24.28);
--destructive: oklch(0.36 0.139 31.266);
--destructive-foreground: oklch(0.832 0.093 26.28);
--ring: oklch(0.604 0.187 28.959);
--chart-1: oklch(0.604 0.187 28.959);
--chart-2: oklch(0.889 0.006 23.645);
--chart-3: oklch(0.82 0.016 23.785);
--chart-4: oklch(0.913 0.005 23.629);
--chart-5: oklch(0.606 0.194 29.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.014 27.067);
--foreground: oklch(0.992 0.001 23.593);
--muted: oklch(0.197 0.017 24.638);
--muted-foreground: oklch(0.742 0.012 23.747);
--popover: oklch(0.124 0.014 27.067);
--popover-foreground: oklch(0.992 0.001 23.593);
--card: oklch(0.124 0.014 27.067);
--card-foreground: oklch(0.992 0.001 23.593);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.604 0.187 28.959);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.189 0.007 24.008);
--secondary-foreground: oklch(0.738 0.021 23.881);
--accent: oklch(0.25 0.019 24.463);
--accent-foreground: oklch(0.784 0.025 23.924);
--destructive: oklch(0.624 0.248 30.259);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.604 0.187 28.959);
--chart-1: oklch(0.604 0.187 28.959);
--chart-2: oklch(0.189 0.007 24.008);
--chart-3: oklch(0.25 0.019 24.463);
--chart-4: oklch(0.222 0.01 24.071);
--chart-5: oklch(0.606 0.194 29.168);
}