Custom is a shadcn/ui theme built around a yellow primary color (#7a652e) with violet accents (#652e7a). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#7a652e) on a neutral background (#080603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080603black |
| Foreground | #120e02black | #ffffffwhite |
| Card | #fcfcfcsnow | #0b0904black |
| Card foreground | #0e0a02black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0b0904black |
| Popover foreground | #0e0a02black | #ffffffwhite |
| Primary | #7a652edarkolivegreen | #7a652edarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #2e7a65seagreen | #2e7a65seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #edf3f1whitesmoke | #0c1211black |
| Muted foreground | #485652darkslategray | #a9b7b3darkgray |
| Accent | #652e7arebeccapurple | #652e7arebeccapurple |
| Accent foreground | #f1e5f5lavender | #f1e5f5lavender |
| Destructive | #bd1600firebrick | #ff270aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7a652edarkolivegreen | #7a652edarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 5.13:1 | AA |
| Muted text | 6.83:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 5.13:1 | AA |
| Muted text | 9.09:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Custom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.164 0.026 92.14);
--muted: oklch(0.958 0.007 177.515);
--muted-foreground: oklch(0.44 0.019 176.405);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.146 0.023 94.466);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.146 0.023 94.466);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.514 0.078 87.869);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.082 171.338);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.41 0.132 315.256);
--accent-foreground: oklch(0.936 0.025 316.532);
--destructive: oklch(0.508 0.199 30.835);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.078 87.869);
--chart-1: oklch(0.514 0.078 87.869);
--chart-2: oklch(0.526 0.082 171.338);
--chart-3: oklch(0.41 0.132 315.256);
--chart-4: oklch(0.56 0.088 171.264);
--chart-5: oklch(0.519 0.082 87.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 93.45);
--foreground: oklch(1 0 180);
--muted: oklch(0.176 0.01 176.023);
--muted-foreground: oklch(0.767 0.017 177.068);
--popover: oklch(0.141 0.014 93.144);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.014 93.144);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.514 0.078 87.869);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.526 0.082 171.338);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.41 0.132 315.256);
--accent-foreground: oklch(0.936 0.025 316.532);
--destructive: oklch(0.639 0.247 30.709);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.514 0.078 87.869);
--chart-1: oklch(0.514 0.078 87.869);
--chart-2: oklch(0.526 0.082 171.338);
--chart-3: oklch(0.41 0.132 315.256);
--chart-4: oklch(0.56 0.088 171.264);
--chart-5: oklch(0.519 0.082 87.633);
}