Near is a shadcn/ui theme built around a light indigo primary color (#cac1eb) with light green accents (#e3ebc1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#cac1eb) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #020104black | #f6f6f9whitesmoke |
| Card | #fcfcfcsnow | #040307black |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #fcfcfcsnow | #040307black |
| Popover foreground | #000000black | #f9f9fbghostwhite |
| Primary | #cac1ebthistle | #cac1ebthistle |
| Primary foreground | #2a1e5cmidnightblue | #2a1e5cmidnightblue |
| Secondary | #e3ebc1palegoldenrod | #e3ebc1palegoldenrod |
| Secondary foreground | #0d0f05black | #0d0f05black |
| Muted | #e6e8degainsboro | #1f2117black |
| Muted foreground | #626558dimgray | #a5a79adarkgray |
| Accent | #e3ebc1palegoldenrod | #e3ebc1palegoldenrod |
| Accent foreground | #0d0f05black | #0d0f05black |
| Destructive | #c64c06chocolate | #ed5c07orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cac1ebthistle | #cac1ebthistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.59:1 | AAA |
| Secondary button | 15.55:1 | AAA |
| Muted text | 4.81:1 | AA |
| Accent | 15.55:1 | AAA |
| Destructive | 4.72:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 8.59:1 | AAA |
| Secondary button | 15.55:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 15.55:1 | AAA |
| Destructive | 3.41: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.079 0.015 294.695);
--muted: oklch(0.927 0.014 115.848);
--muted-foreground: oklch(0.5 0.021 116.336);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.832 0.058 294.268);
--primary-foreground: oklch(0.291 0.106 287.011);
--secondary: oklch(0.923 0.055 116.683);
--secondary-foreground: oklch(0.164 0.022 117.364);
--accent: oklch(0.923 0.055 116.683);
--accent-foreground: oklch(0.164 0.022 117.364);
--destructive: oklch(0.574 0.169 42.563);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.058 294.268);
--chart-1: oklch(0.832 0.058 294.268);
--chart-2: oklch(0.923 0.055 116.683);
--chart-3: oklch(0.923 0.055 116.683);
--chart-4: oklch(0.937 0.045 116.461);
--chart-5: oklch(0.83 0.062 294.183);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.013 294.834);
--foreground: oklch(0.974 0.004 295.501);
--muted: oklch(0.243 0.019 116.998);
--muted-foreground: oklch(0.723 0.019 116.058);
--popover: oklch(0.102 0.017 294.834);
--popover-foreground: oklch(0.983 0.003 295.527);
--card: oklch(0.102 0.017 294.834);
--card-foreground: oklch(0.983 0.003 295.527);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.832 0.058 294.268);
--primary-foreground: oklch(0.291 0.106 287.011);
--secondary: oklch(0.923 0.055 116.683);
--secondary-foreground: oklch(0.164 0.022 117.364);
--accent: oklch(0.923 0.055 116.683);
--accent-foreground: oklch(0.164 0.022 117.364);
--destructive: oklch(0.656 0.195 42.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.058 294.268);
--chart-1: oklch(0.832 0.058 294.268);
--chart-2: oklch(0.923 0.055 116.683);
--chart-3: oklch(0.923 0.055 116.683);
--chart-4: oklch(0.937 0.045 116.461);
--chart-5: oklch(0.83 0.062 294.183);
}