Dependable is a shadcn/ui theme built around a deep violet primary color (#190a2e) with deep green accents (#0a2e19). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#190a2e) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f7fdghostwhite | #020203black |
| Foreground | #040109black | #f7f5fawhitesmoke |
| Card | #f9f7fdghostwhite | #020203black |
| Card foreground | #040109black | #f7f5fawhitesmoke |
| Popover | #f9f7fdghostwhite | #020203black |
| Popover foreground | #040109black | #f7f5fawhitesmoke |
| Primary | #190a2eblack | #190a2eblack |
| Primary foreground | #ad86e4mediumpurple | #ad86e4mediumpurple |
| Secondary | #2e190ablack | #2e190ablack |
| Secondary foreground | #e4ad86burlywood | #e4ad86burlywood |
| Muted | #e7e5e4gainsboro | #1b1918black |
| Muted foreground | #4b413adarkslategray | #c5bbb4silver |
| Accent | #0a2e19black | #0a2e19black |
| Accent foreground | #33d175mediumseagreen | #33d175mediumseagreen |
| Destructive | #cf3617firebrick | #e63c1aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #190a2eblack | #190a2eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 7.43:1 | AAA |
| Destructive | 5.03:1 | AA |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 9.27:1 | AAA |
| Accent | 7.43:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Dependable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 304.931);
--foreground: oklch(0.094 0.032 306.894);
--muted: oklch(0.924 0.003 58.317);
--muted-foreground: oklch(0.383 0.018 57.69);
--popover: oklch(0.98 0.008 304.931);
--popover-foreground: oklch(0.094 0.032 306.894);
--card: oklch(0.98 0.008 304.931);
--card-foreground: oklch(0.094 0.032 306.894);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.192 0.068 299.039);
--primary-foreground: oklch(0.695 0.138 302.146);
--secondary: oklch(0.238 0.041 54.799);
--secondary-foreground: oklch(0.789 0.082 56.74);
--accent: oklch(0.268 0.056 154.205);
--accent-foreground: oklch(0.76 0.182 152.352);
--destructive: oklch(0.564 0.194 32.877);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.192 0.068 299.039);
--chart-1: oklch(0.192 0.068 299.039);
--chart-2: oklch(0.238 0.041 54.799);
--chart-3: oklch(0.268 0.056 154.205);
--chart-4: oklch(0.274 0.05 54.343);
--chart-5: oklch(0.191 0.071 298.637);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 305.598);
--foreground: oklch(0.973 0.007 304.951);
--muted: oklch(0.216 0.004 58.081);
--muted-foreground: oklch(0.799 0.015 58.098);
--popover: oklch(0.086 0.009 305.598);
--popover-foreground: oklch(0.973 0.007 304.951);
--card: oklch(0.086 0.009 305.598);
--card-foreground: oklch(0.973 0.007 304.951);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.192 0.068 299.039);
--primary-foreground: oklch(0.695 0.138 302.146);
--secondary: oklch(0.238 0.041 54.799);
--secondary-foreground: oklch(0.789 0.082 56.74);
--accent: oklch(0.268 0.056 154.205);
--accent-foreground: oklch(0.76 0.182 152.352);
--destructive: oklch(0.609 0.211 32.838);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.192 0.068 299.039);
--chart-1: oklch(0.192 0.068 299.039);
--chart-2: oklch(0.238 0.041 54.799);
--chart-3: oklch(0.268 0.056 154.205);
--chart-4: oklch(0.274 0.05 54.343);
--chart-5: oklch(0.191 0.071 298.637);
}