Cursor is a shadcn/ui theme built around a vivid deep green primary color (#398a0a) with muted light green accents (#d7dfd2). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid deep green primary (#398a0a) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #020401black |
| Foreground | #0a1603black | #ffffffwhite |
| Card | #f6fbf4whitesmoke | #040802black |
| Card foreground | #081203black | #ffffffwhite |
| Popover | #f6fbf4whitesmoke | #040802black |
| Popover foreground | #081203black | #ffffffwhite |
| Primary | #398a0aforestgreen | #398a0aforestgreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8eae6linen | #1b1f19black |
| Secondary foreground | #4d5549darkslategray | #b3bcaedarkgray |
| Muted | #eaede9linen | #141612black |
| Muted foreground | #474847darkslategray | #b7b8b7silver |
| Accent | #d7dfd2gainsboro | #2c3725darkslategray |
| Accent foreground | #3d4b35darkslategray | #c4d2bcsilver |
| Destructive | #7d1103maroon | #eb2005red |
| Destructive foreground | #fdbdb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #398a0aforestgreen | #398a0aforestgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.00:1 | AAA |
| Text on card | 18.20:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 6.38:1 | AA |
| Muted text | 7.76:1 | AAA |
| Accent | 6.82:1 | AA |
| Destructive | 6.72:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 4.38:1 | AA Large |
| Secondary button | 8.53:1 | AAA |
| Muted text | 9.12:1 | AAA |
| Accent | 7.95:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Cursor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 133.646);
--foreground: oklch(0.184 0.042 133.941);
--muted: oklch(0.942 0.006 133.646);
--muted-foreground: oklch(0.401 0.003 133.647);
--popover: oklch(0.982 0.009 133.666);
--popover-foreground: oklch(0.166 0.037 132.908);
--card: oklch(0.982 0.009 133.666);
--card-foreground: oklch(0.166 0.037 132.908);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.559 0.169 137.988);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.934 0.005 133.642);
--secondary-foreground: oklch(0.44 0.023 133.938);
--accent: oklch(0.895 0.02 133.744);
--accent-foreground: oklch(0.393 0.04 134.292);
--destructive: oklch(0.379 0.143 31.301);
--destructive-foreground: oklch(0.854 0.076 27.294);
--ring: oklch(0.559 0.169 137.988);
--chart-1: oklch(0.559 0.169 137.988);
--chart-2: oklch(0.934 0.005 133.642);
--chart-3: oklch(0.895 0.02 133.744);
--chart-4: oklch(0.956 0.004 133.63);
--chart-5: oklch(0.565 0.172 138.161);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.016 132.137);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.009 133.896);
--muted-foreground: oklch(0.782 0.002 133.624);
--popover: oklch(0.125 0.02 132.137);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.02 132.137);
--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.559 0.169 137.988);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.233 0.012 133.932);
--secondary-foreground: oklch(0.785 0.023 133.791);
--accent: oklch(0.32 0.033 134.324);
--accent-foreground: oklch(0.846 0.033 133.851);
--destructive: oklch(0.599 0.233 30.644);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.559 0.169 137.988);
--chart-1: oklch(0.559 0.169 137.988);
--chart-2: oklch(0.233 0.012 133.932);
--chart-3: oklch(0.32 0.033 134.324);
--chart-4: oklch(0.267 0.015 133.957);
--chart-5: oklch(0.565 0.172 138.161);
}