Basic is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#d9c9c9). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#070303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #070303black |
| Foreground | #0c0404black | #fdfbfbsnow |
| Card | #fdf6f6snow | #070303black |
| Card foreground | #0c0404black | #fdfbfbsnow |
| Popover | #fdf6f6snow | #070303black |
| Popover foreground | #0c0404black | #fdfbfbsnow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #d9c9c9lightgrey | #291e1eblack |
| Secondary foreground | #422f2fdarkslategray | #c7b2b2silver |
| Muted | #f0e0e0mistyrose | #1f0f0fblack |
| Muted foreground | #4d3d3ddarkslategray | #c2b2b2silver |
| Accent | #d9c9c9lightgrey | #291e1eblack |
| Accent foreground | #422f2fdarkslategray | #c7b2b2silver |
| Destructive | #d3350dfirebrick | #e1390eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 9.09:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.37:1 | AA Large |
Paste this into your globals.css to use Basic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.282);
--foreground: oklch(0.12 0.019 20.328);
--muted: oklch(0.92 0.017 17.469);
--muted-foreground: oklch(0.376 0.023 18.237);
--popover: oklch(0.98 0.007 17.282);
--popover-foreground: oklch(0.12 0.019 20.328);
--card: oklch(0.98 0.007 17.282);
--card-foreground: oklch(0.12 0.019 20.328);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.85 0.017 17.502);
--secondary-foreground: oklch(0.326 0.028 18.708);
--accent: oklch(0.85 0.017 17.502);
--accent-foreground: oklch(0.326 0.028 18.708);
--destructive: oklch(0.57 0.2 33.734);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.85 0.017 17.502);
--chart-3: oklch(0.85 0.017 17.502);
--chart-4: oklch(0.875 0.014 17.433);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 18.726);
--foreground: oklch(0.991 0.002 17.192);
--muted: oklch(0.192 0.027 19.814);
--muted-foreground: oklch(0.777 0.019 17.568);
--popover: oklch(0.109 0.01 18.726);
--popover-foreground: oklch(0.991 0.002 17.192);
--card: oklch(0.109 0.01 18.726);
--card-foreground: oklch(0.991 0.002 17.192);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.249 0.018 18.429);
--secondary-foreground: oklch(0.782 0.024 17.687);
--accent: oklch(0.249 0.018 18.429);
--accent-foreground: oklch(0.782 0.024 17.687);
--destructive: oklch(0.599 0.21 33.68);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.249 0.018 18.429);
--chart-3: oklch(0.249 0.018 18.429);
--chart-4: oklch(0.278 0.021 18.507);
--chart-5: oklch(1 0 180);
}