Costly is a shadcn/ui theme built around a vivid cyan primary color (#0bdcf4) with vivid red accents (#f4230b). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid cyan primary (#0bdcf4) on a cyan-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #050a0ablack |
| Foreground | #031517black | #f6f9f9whitesmoke |
| Card | #fcfdfdwhite | #050a0ablack |
| Card foreground | #031517black | #f6f9f9whitesmoke |
| Popover | #fcfdfdwhite | #050a0ablack |
| Popover foreground | #031517black | #f6f9f9whitesmoke |
| Primary | #0bdcf4deepskyblue | #0bdcf4deepskyblue |
| Primary foreground | #022c31darkslategray | #022c31darkslategray |
| Secondary | #f4230borangered | #f4230borangered |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9dedcgainsboro | #231716black |
| Muted foreground | #645a59dimgray | #a69c9bdarkgray |
| Accent | #f4230borangered | #f4230borangered |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #850505maroon | #f72222crimson |
| Destructive foreground | #fdbfbflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0bdcf4deepskyblue | #0bdcf4deepskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.34:1 | AAA |
| Text on card | 18.34:1 | AAA |
| Primary button | 8.94:1 | AAA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 5.06:1 | AA |
| Accent | 4.14:1 | AA Large |
| Destructive | 6.62:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 8.94:1 | AAA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 6.52:1 | AA |
| Accent | 4.14:1 | AA Large |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Costly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 204.977);
--foreground: oklch(0.18 0.026 204.25);
--muted: oklch(0.909 0.013 25.11);
--muted-foreground: oklch(0.476 0.013 25.243);
--popover: oklch(0.993 0.002 204.977);
--popover-foreground: oklch(0.18 0.026 204.25);
--card: oklch(0.993 0.002 204.977);
--card-foreground: oklch(0.18 0.026 204.25);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.14 208.335);
--primary-foreground: oklch(0.269 0.044 206.16);
--secondary: oklch(0.617 0.239 30.393);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.617 0.239 30.393);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.39 0.156 28.738);
--destructive-foreground: oklch(0.86 0.071 18.637);
--ring: oklch(0.82 0.14 208.335);
--chart-1: oklch(0.82 0.14 208.335);
--chart-2: oklch(0.617 0.239 30.393);
--chart-3: oklch(0.617 0.239 30.393);
--chart-4: oklch(0.626 0.232 30.52);
--chart-5: oklch(0.828 0.142 208.558);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.009 203.207);
--foreground: oklch(0.979 0.003 204.963);
--muted: oklch(0.219 0.019 25.944);
--muted-foreground: oklch(0.701 0.012 25.138);
--popover: oklch(0.138 0.009 203.207);
--popover-foreground: oklch(0.979 0.003 204.963);
--card: oklch(0.138 0.009 203.207);
--card-foreground: oklch(0.979 0.003 204.963);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.14 208.335);
--primary-foreground: oklch(0.269 0.044 206.16);
--secondary: oklch(0.617 0.239 30.393);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.617 0.239 30.393);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.623 0.241 27.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.14 208.335);
--chart-1: oklch(0.82 0.14 208.335);
--chart-2: oklch(0.617 0.239 30.393);
--chart-3: oklch(0.617 0.239 30.393);
--chart-4: oklch(0.626 0.232 30.52);
--chart-5: oklch(0.828 0.142 208.558);
}