Xcode Default (Light) is a shadcn/ui theme built around a neutral gray primary color (#292929) with vivid light yellow accents (#ffffb3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#292929) on a neutral background (#ffffff).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #ffffffwhite |
| Foreground | #333333darkslategray | #333333darkslategray |
| Card | #fffff5ivory | #fffff5ivory |
| Card foreground | #262626darkslategray | #262626darkslategray |
| Popover | #fffff0ivory | #fffff0ivory |
| Popover foreground | #1a1a1ablack | #1a1a1ablack |
| Primary | #292929darkslategray | #292929darkslategray |
| Primary foreground | #c2c2c2silver | #c2c2c2silver |
| Secondary | #bfbfbfsilver | #bfbfbfsilver |
| Secondary foreground | #262626darkslategray | #262626darkslategray |
| Muted | #e9e9e2beige | #e9e9e2beige |
| Muted foreground | #565643darkolivegreen | #565643darkolivegreen |
| Accent | #ffffb3lemonchiffon | #ffffb3lemonchiffon |
| Accent foreground | #1a1a00black | #1a1a00black |
| Destructive | #a80d0bfirebrick | #a80d0bfirebrick |
| Destructive foreground | #fde7e7mistyrose | #fde7e7mistyrose |
| Border | #fefee7lightyellow | #fefee7lightyellow |
| Input | #fdfdd8cornsilk | #fdfdd8cornsilk |
| Ring | #292929darkslategray | #292929darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.63:1 | AAA |
| Text on card | 15.04:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 16.95:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 12.63:1 | AAA |
| Text on card | 15.04:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 6.11:1 | AA |
| Accent | 16.95:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Xcode Default (Light) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.931 0.008 106.557);
--muted-foreground: oklch(0.446 0.029 107.51);
--popover: oklch(0.996 0.02 106.757);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.997 0.013 106.639);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.99 0.03 106.934);
--input: oklch(0.985 0.048 107.243);
--primary: oklch(0.28 0 180);
--primary-foreground: oklch(0.813 0 165.964);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.983 0.096 108.045);
--accent-foreground: oklch(0.209 0.045 109.769);
--destructive: oklch(0.464 0.183 28.812);
--destructive-foreground: oklch(0.947 0.024 18.761);
--ring: oklch(0.28 0 180);
--chart-1: oklch(0.28 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.983 0.096 108.045);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.278 0.004 17.374);
}
.dark {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.321 0 180);
--muted: oklch(0.931 0.008 106.557);
--muted-foreground: oklch(0.446 0.029 107.51);
--popover: oklch(0.996 0.02 106.757);
--popover-foreground: oklch(0.216 0 180);
--card: oklch(0.997 0.013 106.639);
--card-foreground: oklch(0.27 0 180);
--border: oklch(0.99 0.03 106.934);
--input: oklch(0.985 0.048 107.243);
--primary: oklch(0.28 0 180);
--primary-foreground: oklch(0.813 0 165.964);
--secondary: oklch(0.805 0 169.695);
--secondary-foreground: oklch(0.27 0 180);
--accent: oklch(0.983 0.096 108.045);
--accent-foreground: oklch(0.209 0.045 109.769);
--destructive: oklch(0.464 0.183 28.812);
--destructive-foreground: oklch(0.947 0.024 18.761);
--ring: oklch(0.28 0 180);
--chart-1: oklch(0.28 0 180);
--chart-2: oklch(0.805 0 169.695);
--chart-3: oklch(0.983 0.096 108.045);
--chart-4: oklch(0.829 0 180);
--chart-5: oklch(0.278 0.004 17.374);
}