Classic is a shadcn/ui theme built around a deep purple primary color (#180618) with deep pink accents (#180610). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#180618) on a purple-tinted background (#0c030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c030cblack |
| Foreground | #090109black | #f8f6f8whitesmoke |
| Card | #fcfcfcsnow | #100410black |
| Card foreground | #040105black | #faf9fbghostwhite |
| Popover | #fcfcfcsnow | #100410black |
| Popover foreground | #040105black | #faf9fbghostwhite |
| Primary | #180618black | #180618black |
| Primary foreground | #db74dcorchid | #db74dcorchid |
| Secondary | #0f0618black | #0f0618black |
| Secondary foreground | #dbc6f1thistle | #dbc6f1thistle |
| Muted | #f0eff1whitesmoke | #0f0e10black |
| Muted foreground | #66626adimgray | #99959ddarkgray |
| Accent | #180610black | #180610black |
| Accent foreground | #dc74aapalevioletred | #dc74aapalevioletred |
| Destructive | #c8300efirebrick | #f04924orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #180618black | #180618black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 12.59:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 5.39:1 | AA |
| Text on background | 18.87:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 6.98:1 | AA |
| Secondary button | 12.59:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 6.63:1 | AA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Classic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.036 327.353);
--muted: oklch(0.953 0.003 307.757);
--muted-foreground: oklch(0.502 0.014 307.473);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.029 327.353);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.029 327.353);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.164 0.047 326.827);
--primary-foreground: oklch(0.712 0.18 326.651);
--secondary: oklch(0.149 0.041 304.989);
--secondary-foreground: oklch(0.857 0.063 306.939);
--accent: oklch(0.159 0.037 349.12);
--accent-foreground: oklch(0.693 0.143 349.217);
--destructive: oklch(0.547 0.193 33.178);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.164 0.047 326.827);
--chart-1: oklch(0.164 0.047 326.827);
--chart-2: oklch(0.149 0.041 304.989);
--chart-3: oklch(0.159 0.037 349.12);
--chart-4: oklch(0.178 0.056 303.535);
--chart-5: oklch(0.164 0.049 326.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.031 326.744);
--foreground: oklch(0.976 0.003 325.122);
--muted: oklch(0.167 0.004 307.508);
--muted-foreground: oklch(0.675 0.013 307.57);
--popover: oklch(0.138 0.035 326.732);
--popover-foreground: oklch(0.984 0.002 325.115);
--card: oklch(0.138 0.035 326.732);
--card-foreground: oklch(0.984 0.002 325.115);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.164 0.047 326.827);
--primary-foreground: oklch(0.712 0.18 326.651);
--secondary: oklch(0.149 0.041 304.989);
--secondary-foreground: oklch(0.857 0.063 306.939);
--accent: oklch(0.159 0.037 349.12);
--accent-foreground: oklch(0.693 0.143 349.217);
--destructive: oklch(0.64 0.209 33.813);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.164 0.047 326.827);
--chart-1: oklch(0.164 0.047 326.827);
--chart-2: oklch(0.149 0.041 304.989);
--chart-3: oklch(0.159 0.037 349.12);
--chart-4: oklch(0.178 0.056 303.535);
--chart-5: oklch(0.164 0.049 326.901);
}