Distant is a shadcn/ui theme built around a light indigo primary color (#ab9de7) with light green accents (#9de7ab). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the light indigo primary (#ab9de7) on an indigo-tinted background (#08070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #08070eblack |
| Foreground | #070510black | #f7f6f8whitesmoke |
| Card | #fbfbfeghostwhite | #08070eblack |
| Card foreground | #070510black | #f7f6f8whitesmoke |
| Popover | #fbfbfeghostwhite | #08070eblack |
| Popover foreground | #070510black | #f7f6f8whitesmoke |
| Primary | #ab9de7lightsteelblue | #ab9de7lightsteelblue |
| Primary foreground | #191041midnightblue | #191041midnightblue |
| Secondary | #e7ab9dburlywood | #e7ab9dburlywood |
| Secondary foreground | #411910maroon | #411910maroon |
| Muted | #eeececlinen | #131111black |
| Muted foreground | #493e3cdarkslategray | #c3b9b6silver |
| Accent | #9de7abpalegreen | #9de7abpalegreen |
| Accent foreground | #104119darkgreen | #104119darkgreen |
| Destructive | #b72801firebrick | #fe5020orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab9de7lightsteelblue | #ab9de7lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 18.63:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 9.79:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 3.29:1 | AA Large |
Paste this into your globals.css to use Distant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 294.738);
--foreground: oklch(0.124 0.027 292.657);
--muted: oklch(0.946 0.002 32.661);
--muted-foreground: oklch(0.375 0.016 32.729);
--popover: oklch(0.989 0.005 294.738);
--popover-foreground: oklch(0.124 0.027 292.657);
--card: oklch(0.989 0.005 294.738);
--card-foreground: oklch(0.124 0.027 292.657);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.735 0.106 292.005);
--primary-foreground: oklch(0.222 0.088 285.107);
--secondary: oklch(0.792 0.074 32.986);
--secondary-foreground: oklch(0.273 0.065 34.036);
--accent: oklch(0.863 0.111 149.368);
--accent-foreground: oklch(0.333 0.085 146.564);
--destructive: oklch(0.508 0.183 33.817);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.735 0.106 292.005);
--chart-1: oklch(0.735 0.106 292.005);
--chart-2: oklch(0.792 0.074 32.986);
--chart-3: oklch(0.863 0.111 149.368);
--chart-4: oklch(0.818 0.064 32.894);
--chart-5: oklch(0.732 0.111 291.834);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.016 293.667);
--foreground: oklch(0.975 0.003 294.769);
--muted: oklch(0.18 0.003 32.669);
--muted-foreground: oklch(0.792 0.013 32.668);
--popover: oklch(0.133 0.016 293.667);
--popover-foreground: oklch(0.975 0.003 294.769);
--card: oklch(0.133 0.016 293.667);
--card-foreground: oklch(0.975 0.003 294.769);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.735 0.106 292.005);
--primary-foreground: oklch(0.222 0.088 285.107);
--secondary: oklch(0.792 0.074 32.986);
--secondary-foreground: oklch(0.273 0.065 34.036);
--accent: oklch(0.863 0.111 149.368);
--accent-foreground: oklch(0.333 0.085 146.564);
--destructive: oklch(0.67 0.218 35.192);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.735 0.106 292.005);
--chart-1: oklch(0.735 0.106 292.005);
--chart-2: oklch(0.792 0.074 32.986);
--chart-3: oklch(0.863 0.111 149.368);
--chart-4: oklch(0.818 0.064 32.894);
--chart-5: oklch(0.732 0.111 291.834);
}