Dependent is a shadcn/ui theme built around an orange primary color (#dbb58f) with muted light orange accents (#dfdbd7). The light mode uses a neutral background (#fdfaf6). Dark mode keeps the orange primary (#dbb58f) on an orange-tinted background (#0d0a07).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfaf6snow | #0d0a07black |
| Foreground | #0b0804black | #ffffffwhite |
| Card | #fdfaf6snow | #0d0a07black |
| Card foreground | #0b0804black | #ffffffwhite |
| Popover | #fdfaf6snow | #0d0a07black |
| Popover foreground | #0b0804black | #ffffffwhite |
| Primary | #dbb58fburlywood | #dbb58fburlywood |
| Primary foreground | #2a1c0eblack | #2a1c0eblack |
| Secondary | #dfdbd7gainsboro | #191714black |
| Secondary foreground | #4a423bdarkslategray | #b9b0a7darkgray |
| Muted | #f4ede6linen | #19120bblack |
| Muted foreground | #57524cdarkolivegreen | #b3ada8darkgray |
| Accent | #dfdbd7gainsboro | #191714black |
| Accent foreground | #4a423bdarkslategray | #b9b0a7darkgray |
| Destructive | #6b230bmaroon | #ec6c41tomato |
| Destructive foreground | #f7c2b0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbb58fburlywood | #dbb58fburlywood |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 7.14:1 | AAA |
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.77:1 | AA |
Paste this into your globals.css to use Dependent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 67.755);
--foreground: oklch(0.136 0.013 74.531);
--muted: oklch(0.95 0.012 67.678);
--muted-foreground: oklch(0.441 0.012 67.512);
--popover: oklch(0.987 0.006 67.755);
--popover-foreground: oklch(0.136 0.013 74.531);
--card: oklch(0.987 0.006 67.755);
--card-foreground: oklch(0.136 0.013 74.531);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.797 0.067 66.621);
--primary-foreground: oklch(0.241 0.033 65.113);
--secondary: oklch(0.894 0.007 67.737);
--secondary-foreground: oklch(0.385 0.016 67.334);
--accent: oklch(0.894 0.007 67.737);
--accent-foreground: oklch(0.385 0.016 67.334);
--destructive: oklch(0.362 0.108 37.495);
--destructive-foreground: oklch(0.857 0.066 39.236);
--ring: oklch(0.797 0.067 66.621);
--chart-1: oklch(0.797 0.067 66.621);
--chart-2: oklch(0.894 0.007 67.737);
--chart-3: oklch(0.894 0.007 67.737);
--chart-4: oklch(0.917 0.005 67.758);
--chart-5: oklch(0.799 0.071 66.527);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.149 0.009 69.66);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.018 66.36);
--muted-foreground: oklch(0.752 0.01 67.668);
--popover: oklch(0.149 0.009 69.66);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.009 69.66);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.797 0.067 66.621);
--primary-foreground: oklch(0.241 0.033 65.113);
--secondary: oklch(0.206 0.006 67.464);
--secondary-foreground: oklch(0.762 0.016 67.588);
--accent: oklch(0.206 0.006 67.464);
--accent-foreground: oklch(0.762 0.016 67.588);
--destructive: oklch(0.679 0.17 38.61);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.797 0.067 66.621);
--chart-1: oklch(0.797 0.067 66.621);
--chart-2: oklch(0.206 0.006 67.464);
--chart-3: oklch(0.206 0.006 67.464);
--chart-4: oklch(0.24 0.008 67.424);
--chart-5: oklch(0.799 0.071 66.527);
}