Expensive is a shadcn/ui theme built around a neutral gray primary color (#d3ced4) with neutral gray accents (#dcdadd). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#d3ced4) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060307black |
| Foreground | #040105black | #fdfcfdwhite |
| Card | #ffffffwhite | #060307black |
| Card foreground | #040105black | #fdfcfdwhite |
| Popover | #ffffffwhite | #060307black |
| Popover foreground | #040105black | #fdfcfdwhite |
| Primary | #d3ced4lightgrey | #d3ced4lightgrey |
| Primary foreground | #3a353bdarkslategray | #3a353bdarkslategray |
| Secondary | #dcdaddgainsboro | #1c151eblack |
| Secondary foreground | #443f46darkslategray | #baa4c1silver |
| Muted | #f1edf2whitesmoke | #110d12black |
| Muted foreground | #48384cdarkslategray | #c2b3c7silver |
| Accent | #dcdaddgainsboro | #1c151eblack |
| Accent foreground | #443f46darkslategray | #baa4c1silver |
| Destructive | #5d1f09maroon | #d54815chocolate |
| Destructive foreground | #f6b8a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d3ced4lightgrey | #d3ced4lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.36:1 | AAA |
| Text on background | 20.04:1 | AAA |
| Text on card | 20.04:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 9.71:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.38:1 | AA Large |
Paste this into your globals.css to use Expensive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.028 321.131);
--muted: oklch(0.951 0.008 318.322);
--muted-foreground: oklch(0.366 0.039 318.217);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.028 321.131);
--card: oklch(1 0 180);
--card-foreground: oklch(0.08 0.028 321.131);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.857 0.009 318.32);
--primary-foreground: oklch(0.336 0.014 318.29);
--secondary: oklch(0.89 0.006 318.324);
--secondary-foreground: oklch(0.375 0.013 318.296);
--accent: oklch(0.89 0.006 318.324);
--accent-foreground: oklch(0.375 0.013 318.296);
--destructive: oklch(0.332 0.095 38.756);
--destructive-foreground: oklch(0.835 0.078 40.866);
--ring: oklch(0.857 0.009 318.32);
--chart-1: oklch(0.857 0.009 318.32);
--chart-2: oklch(0.89 0.006 318.324);
--chart-3: oklch(0.89 0.006 318.324);
--chart-4: oklch(0.914 0.004 318.325);
--chart-5: oklch(0.856 0.013 318.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.019 319.877);
--foreground: oklch(0.992 0.002 318.328);
--muted: oklch(0.165 0.012 318.253);
--muted-foreground: oklch(0.785 0.032 318.289);
--popover: oklch(0.108 0.019 319.877);
--popover-foreground: oklch(0.992 0.002 318.328);
--card: oklch(0.108 0.019 319.877);
--card-foreground: oklch(0.992 0.002 318.328);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.857 0.009 318.32);
--primary-foreground: oklch(0.336 0.014 318.29);
--secondary: oklch(0.208 0.022 318.219);
--secondary-foreground: oklch(0.747 0.048 318.266);
--accent: oklch(0.208 0.022 318.219);
--accent-foreground: oklch(0.747 0.048 318.266);
--destructive: oklch(0.595 0.186 37.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.857 0.009 318.32);
--chart-1: oklch(0.857 0.009 318.32);
--chart-2: oklch(0.208 0.022 318.219);
--chart-3: oklch(0.208 0.022 318.219);
--chart-4: oklch(0.239 0.027 318.206);
--chart-5: oklch(0.856 0.013 318.315);
}