Radar is a shadcn/ui theme built around a muted deep teal primary color (#304545) with muted deep yellow accents (#454530). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the muted deep teal primary (#304545) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f6fdfdmintcream | #000000black |
| Foreground | #010404black | #f4fafamintcream |
| Card | #f2fcfcazure | #030303black |
| Card foreground | #000000black | #f8fcfcmintcream |
| Popover | #f6fdfdmintcream | #000000black |
| Popover foreground | #010404black | #f4fafamintcream |
| Primary | #304545darkslategray | #304545darkslategray |
| Primary foreground | #ccdbdblightgrey | #ccdbdblightgrey |
| Secondary | #453045darkslategray | #453045darkslategray |
| Secondary foreground | #dbccdblightgrey | #dbccdblightgrey |
| Muted | #e5dce5gainsboro | #231a23black |
| Muted foreground | #574c57dimgray | #b3a8b3darkgray |
| Accent | #454530darkslategray | #454530darkslategray |
| Accent foreground | #dbdbcclightgrey | #dbdbcclightgrey |
| Destructive | #cd200afirebrick | #f6523ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #304545darkslategray | #304545darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 6.08:1 | AA |
| Accent | 7.00:1 | AAA |
| Destructive | 5.52:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.75:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 7.00:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Radar in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 195.847);
--foreground: oklch(0.101 0.013 194.303);
--muted: oklch(0.904 0.016 325.221);
--muted-foreground: oklch(0.431 0.023 325.47);
--popover: oklch(0.99 0.007 195.847);
--popover-foreground: oklch(0.101 0.013 194.303);
--card: oklch(0.985 0.011 195.783);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.373 0.026 194.781);
--primary-foreground: oklch(0.881 0.017 195.644);
--secondary: oklch(0.342 0.046 325.97);
--secondary-foreground: oklch(0.862 0.027 325.316);
--accent: oklch(0.384 0.033 107.052);
--accent-foreground: oklch(0.888 0.021 106.024);
--destructive: oklch(0.544 0.207 30.832);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.373 0.026 194.781);
--chart-1: oklch(0.373 0.026 194.781);
--chart-2: oklch(0.342 0.046 325.97);
--chart-3: oklch(0.384 0.033 107.052);
--chart-4: oklch(0.37 0.051 325.988);
--chart-5: oklch(0.378 0.03 194.627);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.006 195.862);
--muted: oklch(0.233 0.022 325.728);
--muted-foreground: oklch(0.744 0.021 325.29);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.006 195.862);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.988 0.004 195.899);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.373 0.026 194.781);
--primary-foreground: oklch(0.881 0.017 195.644);
--secondary: oklch(0.342 0.046 325.97);
--secondary-foreground: oklch(0.862 0.027 325.316);
--accent: oklch(0.384 0.033 107.052);
--accent-foreground: oklch(0.888 0.021 106.024);
--destructive: oklch(0.661 0.204 30.648);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.373 0.026 194.781);
--chart-1: oklch(0.373 0.026 194.781);
--chart-2: oklch(0.342 0.046 325.97);
--chart-3: oklch(0.384 0.033 107.052);
--chart-4: oklch(0.37 0.051 325.988);
--chart-5: oklch(0.378 0.03 194.627);
}