Rack is a shadcn/ui theme built around an orange primary color (#cd9b89) with yellow accents (#cdbd89). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#cd9b89) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #110704black | #fcf9f8snow |
| Card | #ffffffwhite | #040201black |
| Card foreground | #110704black | #fcf9f8snow |
| Popover | #ffffffwhite | #040201black |
| Popover foreground | #110704black | #fcf9f8snow |
| Primary | #cd9b89rosybrown | #cd9b89rosybrown |
| Primary foreground | #190f0bblack | #190f0bblack |
| Secondary | #cd8999rosybrown | #cd8999rosybrown |
| Secondary foreground | #190b0eblack | #190b0eblack |
| Muted | #e2d0d4lightgrey | #2f1d22black |
| Muted foreground | #5a4449darkslategray | #bba5aadarkgray |
| Accent | #cdbd89tan | #cdbd89tan |
| Accent foreground | #19160bblack | #19160bblack |
| Destructive | #611305maroon | #f65437tomato |
| Destructive foreground | #faac9elightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cd9b89rosybrown | #cd9b89rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.01:1 | AA |
| Accent | 9.65:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 6.85:1 | AA |
| Accent | 9.65:1 | AAA |
| Destructive | 6.22:1 | AA |
Paste this into your globals.css to use Rack in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.021 47.771);
--muted: oklch(0.873 0.02 1.601);
--muted-foreground: oklch(0.412 0.031 3.023);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.021 47.771);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.021 47.771);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.732 0.065 40.879);
--primary-foreground: oklch(0.179 0.02 40.824);
--secondary: oklch(0.703 0.084 4.207);
--secondary-foreground: oklch(0.171 0.026 5.035);
--accent: oklch(0.798 0.07 93.17);
--accent-foreground: oklch(0.199 0.021 93.14);
--destructive: oklch(0.325 0.114 32.575);
--destructive-foreground: oklch(0.815 0.096 30.335);
--ring: oklch(0.732 0.065 40.879);
--chart-1: oklch(0.732 0.065 40.879);
--chart-2: oklch(0.703 0.084 4.207);
--chart-3: oklch(0.798 0.07 93.17);
--chart-4: oklch(0.73 0.076 3.765);
--chart-5: oklch(0.732 0.07 40.861);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.01 48.927);
--foreground: oklch(0.984 0.003 41.279);
--muted: oklch(0.257 0.028 3.942);
--muted-foreground: oklch(0.742 0.027 1.947);
--popover: oklch(0.089 0.01 48.927);
--popover-foreground: oklch(0.984 0.003 41.279);
--card: oklch(0.089 0.01 48.927);
--card-foreground: oklch(0.984 0.003 41.279);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.732 0.065 40.879);
--primary-foreground: oklch(0.179 0.02 40.824);
--secondary: oklch(0.703 0.084 4.207);
--secondary-foreground: oklch(0.171 0.026 5.035);
--accent: oklch(0.798 0.07 93.17);
--accent-foreground: oklch(0.199 0.021 93.14);
--destructive: oklch(0.662 0.203 32.351);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.732 0.065 40.879);
--chart-1: oklch(0.732 0.065 40.879);
--chart-2: oklch(0.703 0.084 4.207);
--chart-3: oklch(0.798 0.07 93.17);
--chart-4: oklch(0.73 0.076 3.765);
--chart-5: oklch(0.732 0.07 40.861);
}