Xcode Partial (Dark) is a shadcn/ui theme built around a neutral gray primary color (#e0e0e1) with muted blue accents (#4b4d58). The light mode uses a blue-tinted background (#28292f). Dark mode keeps the neutral gray primary (#e0e0e1) on a blue-tinted background (#28292f).
| Token | Light | Dark |
|---|---|---|
| Background | #28292fdarkslategray | #28292fdarkslategray |
| Foreground | #bababasilver | #bababasilver |
| Card | #232429darkslategray | #232429darkslategray |
| Card foreground | #c7c7c7silver | #c7c7c7silver |
| Popover | #212227black | #212227black |
| Popover foreground | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Primary | #e0e0e1gainsboro | #e0e0e1gainsboro |
| Primary foreground | #464649darkslategray | #464649darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2f313cdarkslategray | #2f313cdarkslategray |
| Muted foreground | #acafbedarkgray | #acafbedarkgray |
| Accent | #4b4d58darkslategray | #4b4d58darkslategray |
| Accent foreground | #e9e9eclavender | #e9e9eclavender |
| Destructive | #e72e27crimson | #e72e27crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #383838darkslategray | #383838darkslategray |
| Input | #404040darkslategray | #404040darkslategray |
| Ring | #e0e0e1gainsboro | #e0e0e1gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.47:1 | AAA |
| Text on card | 9.14:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 4.36:1 | AA Large |
| Text on background | 7.47:1 | AAA |
| Text on card | 9.14:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Xcode Partial (Dark) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.282 0.011 277.73);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.316 0.02 277.337);
--muted-foreground: oklch(0.756 0.022 277.887);
--popover: oklch(0.252 0.009 277.763);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.262 0.01 277.751);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--primary: oklch(0.906 0.002 286.367);
--primary-foreground: oklch(0.395 0.005 286.18);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.423 0.019 277.645);
--accent-foreground: oklch(0.936 0.004 278.26);
--destructive: oklch(0.602 0.22 28.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.002 286.367);
--chart-1: oklch(0.906 0.002 286.367);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.423 0.019 277.645);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.904 0.004 286.317);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.282 0.011 277.73);
--foreground: oklch(0.789 0 171.254);
--muted: oklch(0.316 0.02 277.337);
--muted-foreground: oklch(0.756 0.022 277.887);
--popover: oklch(0.252 0.009 277.763);
--popover-foreground: oklch(0.869 0 165.964);
--card: oklch(0.262 0.01 277.751);
--card-foreground: oklch(0.829 0 180);
--border: oklch(0.341 0 158.199);
--input: oklch(0.371 0 168.69);
--primary: oklch(0.906 0.002 286.367);
--primary-foreground: oklch(0.395 0.005 286.18);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.423 0.019 277.645);
--accent-foreground: oklch(0.936 0.004 278.26);
--destructive: oklch(0.602 0.22 28.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.002 286.367);
--chart-1: oklch(0.906 0.002 286.367);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.423 0.019 277.645);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.904 0.004 286.317);
}