Xcode Default (Dark) is a shadcn/ui theme built around a neutral gray primary color (#dedede) with neutral gray accents (#42424c). The light mode uses a neutral background (#1f1f23). Dark mode keeps the neutral gray primary (#dedede) on a neutral background (#1f1f23).
| Token | Light | Dark |
|---|---|---|
| Background | #1f1f23black | #1f1f23black |
| Foreground | #e0e0e1gainsboro | #e0e0e1gainsboro |
| Card | #1a1a1eblack | #1a1a1eblack |
| Card foreground | #ededeewhitesmoke | #ededeewhitesmoke |
| Popover | #18181bblack | #18181bblack |
| Popover foreground | #fafafasnow | #fafafasnow |
| Primary | #dededegainsboro | #dededegainsboro |
| Primary foreground | #454545darkslategray | #454545darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #262631darkslategray | #262631darkslategray |
| Muted foreground | #a1a1b5darkgray | #a1a1b5darkgray |
| Accent | #42424cdarkslategray | #42424cdarkslategray |
| Accent foreground | #dedee3gainsboro | #dedee3gainsboro |
| Destructive | #fe0a01red | #fe0a01red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Input | #363636darkslategray | #363636darkslategray |
| Ring | #dededegainsboro | #dededegainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.46:1 | AAA |
| Text on card | 14.81:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 4.00:1 | AA Large |
| Text on background | 12.46:1 | AAA |
| Text on card | 14.81:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Xcode Default (Dark) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.241 0.009 285.721);
--foreground: oklch(0.906 0.002 286.367);
--muted: oklch(0.274 0.019 285.067);
--muted-foreground: oklch(0.715 0.029 285.64);
--popover: oklch(0.209 0.007 285.781);
--popover-foreground: oklch(0.985 0 286.395);
--card: oklch(0.22 0.008 285.758);
--card-foreground: oklch(0.946 0.001 286.381);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.9 0 188.746);
--primary-foreground: oklch(0.39 0 165.964);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.384 0.017 285.581);
--accent-foreground: oklch(0.903 0.006 286.283);
--destructive: oklch(0.627 0.255 29.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.9 0 188.746);
--chart-1: oklch(0.9 0 188.746);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.384 0.017 285.581);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.899 0.002 17.198);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.241 0.009 285.721);
--foreground: oklch(0.906 0.002 286.367);
--muted: oklch(0.274 0.019 285.067);
--muted-foreground: oklch(0.715 0.029 285.64);
--popover: oklch(0.209 0.007 285.781);
--popover-foreground: oklch(0.985 0 286.395);
--card: oklch(0.22 0.008 285.758);
--card-foreground: oklch(0.946 0.001 286.381);
--border: oklch(0.301 0 189.462);
--input: oklch(0.331 0 180);
--primary: oklch(0.9 0 188.746);
--primary-foreground: oklch(0.39 0 165.964);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.384 0.017 285.581);
--accent-foreground: oklch(0.903 0.006 286.283);
--destructive: oklch(0.627 0.255 29.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.9 0 188.746);
--chart-1: oklch(0.9 0 188.746);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.384 0.017 285.581);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.899 0.002 17.198);
}