Near is a shadcn/ui theme built around a light pink primary color (#fdf2f7) with muted light pink accents (#e3d8dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#fdf2f7) on a pink-tinted background (#0a0507).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0507black |
| Foreground | #000000black | #f9f6f7whitesmoke |
| Card | #ffffffwhite | #0a0507black |
| Card foreground | #000000black | #f9f6f7whitesmoke |
| Popover | #ffffffwhite | #0a0507black |
| Popover foreground | #000000black | #f9f6f7whitesmoke |
| Primary | #fdf2f7lavenderblush | #fdf2f7lavenderblush |
| Primary foreground | #a11b55brown | #a11b55brown |
| Secondary | #e3d8ddgainsboro | #251d21black |
| Secondary foreground | #513943darkslategray | #c2b2b9silver |
| Muted | #f6eff2whitesmoke | #10090cblack |
| Muted foreground | #6e535fdimgray | #ac919crosybrown |
| Accent | #e3d8ddgainsboro | #251d21black |
| Accent foreground | #513943darkslategray | #c2b2b9silver |
| Destructive | #801900maroon | #fa3200orangered |
| Destructive foreground | #ffc2b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fdf2f7lavenderblush | #fdf2f7lavenderblush |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 7.52:1 | AAA |
| Muted text | 6.03:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 6.84:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Near in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.958 0.009 348.984);
--muted-foreground: oklch(0.476 0.04 350.942);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.971 0.013 349.107);
--primary-foreground: oklch(0.472 0.172 1.088);
--secondary: oklch(0.893 0.014 349.163);
--secondary-foreground: oklch(0.375 0.037 351.287);
--accent: oklch(0.893 0.014 349.163);
--accent-foreground: oklch(0.375 0.037 351.287);
--destructive: oklch(0.391 0.14 34.054);
--destructive-foreground: oklch(0.865 0.074 34.457);
--ring: oklch(0.971 0.013 349.107);
--chart-1: oklch(0.971 0.013 349.107);
--chart-2: oklch(0.893 0.014 349.163);
--chart-3: oklch(0.893 0.014 349.163);
--chart-4: oklch(0.918 0.011 349.053);
--chart-5: oklch(0.97 0.014 349.123);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.013 348.544);
--foreground: oklch(0.976 0.003 348.823);
--muted: oklch(0.152 0.014 351.065);
--muted-foreground: oklch(0.683 0.036 350.153);
--popover: oklch(0.126 0.013 348.544);
--popover-foreground: oklch(0.976 0.003 348.823);
--card: oklch(0.126 0.013 348.544);
--card-foreground: oklch(0.976 0.003 348.823);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.013 349.107);
--primary-foreground: oklch(0.472 0.172 1.088);
--secondary: oklch(0.242 0.014 350.253);
--secondary-foreground: oklch(0.779 0.021 349.476);
--accent: oklch(0.242 0.014 350.253);
--accent-foreground: oklch(0.779 0.021 349.476);
--destructive: oklch(0.637 0.237 32.643);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.013 349.107);
--chart-1: oklch(0.971 0.013 349.107);
--chart-2: oklch(0.242 0.014 350.253);
--chart-3: oklch(0.242 0.014 350.253);
--chart-4: oklch(0.273 0.016 350.343);
--chart-5: oklch(0.97 0.014 349.123);
}