Classic is a shadcn/ui theme built around a near-black primary color (#0c0503) with near-black accents (#05030c). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the near-black primary (#0c0503) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #040201black |
| Foreground | #040201black | #f9f6f6whitesmoke |
| Card | #fcf9f8snow | #040201black |
| Card foreground | #040201black | #f9f6f6whitesmoke |
| Popover | #fcf9f8snow | #040201black |
| Popover foreground | #040201black | #f9f6f6whitesmoke |
| Primary | #0c0503black | #0c0503black |
| Primary foreground | #da8267darksalmon | #da8267darksalmon |
| Secondary | #030c05black | #030c05black |
| Secondary foreground | #2bb14alimegreen | #2bb14alimegreen |
| Muted | #d6e5dagainsboro | #1a291dblack |
| Muted foreground | #516155dimgray | #9eaea1darkgray |
| Accent | #05030cblack | #05030cblack |
| Accent foreground | #c6b9eethistle | #c6b9eethistle |
| Destructive | #8d2c0csaddlebrown | #ec5827chocolate |
| Destructive foreground | #fbdbd0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c0503black | #0c0503black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.05:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.56:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Classic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.984 0.003 37.728);
--foreground: oklch(0.088 0.011 45.284);
--muted: oklch(0.909 0.023 152.829);
--muted-foreground: oklch(0.476 0.028 152.247);
--popover: oklch(0.984 0.003 37.728);
--popover-foreground: oklch(0.088 0.011 45.284);
--card: oklch(0.984 0.003 37.728);
--card-foreground: oklch(0.088 0.011 45.284);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.017 45.432);
--primary-foreground: oklch(0.695 0.116 37.709);
--secondary: oklch(0.142 0.025 152.286);
--secondary-foreground: oklch(0.667 0.182 146.855);
--accent: oklch(0.11 0.027 296.22);
--accent-foreground: oklch(0.814 0.075 295.393);
--destructive: oklch(0.437 0.137 36.962);
--destructive-foreground: oklch(0.915 0.039 39.306);
--ring: oklch(0.127 0.017 45.432);
--chart-1: oklch(0.127 0.017 45.432);
--chart-2: oklch(0.142 0.025 152.286);
--chart-3: oklch(0.11 0.027 296.22);
--chart-4: oklch(0.191 0.038 149.822);
--chart-5: oklch(0.127 0.018 45.917);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.01 44.611);
--foreground: oklch(0.976 0.003 37.727);
--muted: oklch(0.262 0.03 151.175);
--muted-foreground: oklch(0.734 0.025 152.671);
--popover: oklch(0.089 0.01 44.611);
--popover-foreground: oklch(0.976 0.003 37.727);
--card: oklch(0.089 0.01 44.611);
--card-foreground: oklch(0.976 0.003 37.727);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.127 0.017 45.432);
--primary-foreground: oklch(0.695 0.116 37.709);
--secondary: oklch(0.142 0.025 152.286);
--secondary-foreground: oklch(0.667 0.182 146.855);
--accent: oklch(0.11 0.027 296.22);
--accent-foreground: oklch(0.814 0.075 295.393);
--destructive: oklch(0.651 0.192 37.62);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.127 0.017 45.432);
--chart-1: oklch(0.127 0.017 45.432);
--chart-2: oklch(0.142 0.025 152.286);
--chart-3: oklch(0.11 0.027 296.22);
--chart-4: oklch(0.191 0.038 149.822);
--chart-5: oklch(0.127 0.018 45.917);
}