Costly is a shadcn/ui theme built around a neutral gray primary color (#463f43) with neutral gray accents (#3f4642). The light mode uses a neutral background (#fefbfd). Dark mode keeps the neutral gray primary (#463f43) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040103black |
| Foreground | #080206black | #f8f6f8whitesmoke |
| Card | #fefbfdsnow | #040103black |
| Card foreground | #080206black | #f8f6f8whitesmoke |
| Popover | #fefbfdsnow | #040103black |
| Popover foreground | #080206black | #f8f6f8whitesmoke |
| Primary | #463f43darkslategray | #463f43darkslategray |
| Primary foreground | #dddadcgainsboro | #dddadcgainsboro |
| Secondary | #3f4642darkslategray | #3f4642darkslategray |
| Secondary foreground | #dadddbgainsboro | #dadddbgainsboro |
| Muted | #d4eddegainsboro | #122b1cblack |
| Muted foreground | #587463dimgray | #8ba796darkseagreen |
| Accent | #3f4642darkslategray | #3f4642darkslategray |
| Accent foreground | #dadddbgainsboro | #dadddbgainsboro |
| Destructive | #5c120amaroon | #eb4e3dtomato |
| Destructive foreground | #f5aba3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #463f43darkslategray | #463f43darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.13:1 | AA Large |
| Accent | 7.12:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Costly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 339.564);
--foreground: oklch(0.106 0.024 339.696);
--muted: oklch(0.923 0.033 158.653);
--muted-foreground: oklch(0.532 0.043 157.507);
--popover: oklch(0.991 0.004 339.564);
--popover-foreground: oklch(0.106 0.024 339.696);
--card: oklch(0.991 0.004 339.564);
--card-foreground: oklch(0.106 0.024 339.696);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.376 0.011 340.12);
--primary-foreground: oklch(0.89 0.005 339.59);
--secondary: oklch(0.385 0.011 158.813);
--secondary-foreground: oklch(0.894 0.005 159.348);
--accent: oklch(0.385 0.011 158.813);
--accent-foreground: oklch(0.894 0.005 159.348);
--destructive: oklch(0.314 0.108 30.327);
--destructive-foreground: oklch(0.81 0.089 26.257);
--ring: oklch(0.376 0.011 340.12);
--chart-1: oklch(0.376 0.011 340.12);
--chart-2: oklch(0.385 0.011 158.813);
--chart-3: oklch(0.385 0.011 158.813);
--chart-4: oklch(0.414 0.012 158.801);
--chart-5: oklch(0.373 0.018 340.508);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.015 339.647);
--foreground: oklch(0.976 0.002 339.524);
--muted: oklch(0.263 0.042 155.112);
--muted-foreground: oklch(0.702 0.041 158.108);
--popover: oklch(0.086 0.015 339.647);
--popover-foreground: oklch(0.976 0.002 339.524);
--card: oklch(0.086 0.015 339.647);
--card-foreground: oklch(0.976 0.002 339.524);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.376 0.011 340.12);
--primary-foreground: oklch(0.89 0.005 339.59);
--secondary: oklch(0.385 0.011 158.813);
--secondary-foreground: oklch(0.894 0.005 159.348);
--accent: oklch(0.385 0.011 158.813);
--accent-foreground: oklch(0.894 0.005 159.348);
--destructive: oklch(0.639 0.195 29.736);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.376 0.011 340.12);
--chart-1: oklch(0.376 0.011 340.12);
--chart-2: oklch(0.385 0.011 158.813);
--chart-3: oklch(0.385 0.011 158.813);
--chart-4: oklch(0.414 0.012 158.801);
--chart-5: oklch(0.373 0.018 340.508);
}