Determined is a shadcn/ui theme built around a neutral gray primary color (#50494f) with neutral gray accents (#494f50). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the neutral gray primary (#50494f) on a purple-tinted background (#0a0509).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0a0509black |
| Foreground | #080207black | #ffffffwhite |
| Card | #fdfcfdwhite | #0a0509black |
| Card foreground | #080207black | #ffffffwhite |
| Popover | #fdfcfdwhite | #0a0509black |
| Popover foreground | #080207black | #ffffffwhite |
| Primary | #50494fdarkslategray | #50494fdarkslategray |
| Primary foreground | #e7e4e6gainsboro | #e7e4e6gainsboro |
| Secondary | #4f5049darkslategray | #4f5049darkslategray |
| Secondary foreground | #e6e7e4gainsboro | #e6e7e4gainsboro |
| Muted | #f3f4f1whitesmoke | #0e0e0bblack |
| Muted foreground | #4c4c48darkslategray | #b7b7b3silver |
| Accent | #494f50darkslategray | #494f50darkslategray |
| Accent foreground | #e4e6e7gainsboro | #e4e6e7gainsboro |
| Destructive | #d41702firebrick | #e81902red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #50494fdarkslategray | #50494fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 7.81:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 5.34:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.89:1 | AA |
| Secondary button | 6.60:1 | AA |
| Muted text | 9.58:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 4.58:1 | AA |
Paste this into your globals.css to use Determined in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 330.284);
--foreground: oklch(0.107 0.028 331.52);
--muted: oklch(0.966 0.004 113.391);
--muted-foreground: oklch(0.415 0.007 113.633);
--popover: oklch(0.991 0.003 330.284);
--popover-foreground: oklch(0.107 0.028 331.52);
--card: oklch(0.991 0.003 330.284);
--card-foreground: oklch(0.107 0.028 331.52);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.415 0.012 330.605);
--primary-foreground: oklch(0.922 0.003 330.291);
--secondary: oklch(0.427 0.01 113.741);
--secondary-foreground: oklch(0.926 0.003 113.361);
--accent: oklch(0.422 0.007 209.435);
--accent-foreground: oklch(0.924 0.002 209.463);
--destructive: oklch(0.553 0.218 30.379);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.012 330.605);
--chart-1: oklch(0.415 0.012 330.605);
--chart-2: oklch(0.427 0.01 113.741);
--chart-3: oklch(0.422 0.007 209.435);
--chart-4: oklch(0.456 0.011 113.747);
--chart-5: oklch(0.412 0.02 330.872);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.016 330.903);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.007 114.08);
--muted-foreground: oklch(0.778 0.006 113.456);
--popover: oklch(0.127 0.016 330.903);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.016 330.903);
--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.415 0.012 330.605);
--primary-foreground: oklch(0.922 0.003 330.291);
--secondary: oklch(0.427 0.01 113.741);
--secondary-foreground: oklch(0.926 0.003 113.361);
--accent: oklch(0.422 0.007 209.435);
--accent-foreground: oklch(0.924 0.002 209.463);
--destructive: oklch(0.592 0.234 30.311);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.012 330.605);
--chart-1: oklch(0.415 0.012 330.605);
--chart-2: oklch(0.427 0.01 113.741);
--chart-3: oklch(0.422 0.007 209.435);
--chart-4: oklch(0.456 0.011 113.747);
--chart-5: oklch(0.412 0.02 330.872);
}