Galactic Civilization Lynx is a shadcn/ui theme built around a violet primary color (#421f8e) with purple accents (#7a1f8e). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the violet primary (#421f8e) on a violet-tinted background (#09070e).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f6fdghostwhite | #09070eblack |
| Foreground | #040208black | #ffffffwhite |
| Card | #f9f6fdghostwhite | #0b0910black |
| Card foreground | #040208black | #ffffffwhite |
| Popover | #f9f6fdghostwhite | #0b0910black |
| Popover foreground | #040208black | #ffffffwhite |
| Primary | #421f8edarkslateblue | #421f8edarkslateblue |
| Primary foreground | #ece6f9lavender | #ece6f9lavender |
| Secondary | #1f348emidnightblue | #1f348emidnightblue |
| Secondary foreground | #e6e9f9lavender | #e6e9f9lavender |
| Muted | #e0e1e5gainsboro | #1a1a1fblack |
| Muted foreground | #57585bdimgray | #a4a5a8darkgray |
| Accent | #7a1f8erebeccapurple | #7a1f8erebeccapurple |
| Accent foreground | #f6e6f9lavenderblush | #f6e6f9lavenderblush |
| Destructive | #9a1804darkred | #bb3925firebrick |
| Destructive foreground | #fed8d2bisque | #ffffffwhite |
| Border | #e2e1e5gainsboro | #1b1a1eblack |
| Input | #e2e1e5gainsboro | #1b1a1eblack |
| Ring | #421f8edarkslateblue | #421f8edarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 9.45:1 | AAA |
| Secondary button | 8.99:1 | AAA |
| Muted text | 7.02:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 5.62:1 | AA |
Paste this into your globals.css to use Galactic Civilization Lynx in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.01 300.604);
--foreground: oklch(0.097 0.024 301.224);
--muted: oklch(0.911 0.006 276.084);
--muted-foreground: oklch(0.461 0.005 276.03);
--popover: oklch(0.978 0.01 300.604);
--popover-foreground: oklch(0.097 0.024 301.224);
--card: oklch(0.978 0.01 300.604);
--card-foreground: oklch(0.097 0.024 301.224);
--border: oklch(0.912 0.005 300.669);
--input: oklch(0.912 0.005 300.669);
--primary: oklch(0.365 0.168 289.771);
--primary-foreground: oklch(0.935 0.027 300.292);
--secondary: oklch(0.37 0.152 268.102);
--secondary-foreground: oklch(0.938 0.022 275.85);
--accent: oklch(0.437 0.181 319.403);
--accent-foreground: oklch(0.943 0.031 320.021);
--destructive: oklch(0.442 0.167 31.436);
--destructive-foreground: oklch(0.913 0.043 28.247);
--ring: oklch(0.365 0.168 289.771);
--chart-1: oklch(0.365 0.168 289.771);
--chart-2: oklch(0.37 0.152 268.102);
--chart-3: oklch(0.437 0.181 319.403);
--chart-4: oklch(0.392 0.162 267.994);
--chart-5: oklch(0.363 0.174 288.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.016 300.164);
--foreground: oklch(1 0 180);
--muted: oklch(0.221 0.008 275.655);
--muted-foreground: oklch(0.721 0.004 276.089);
--popover: oklch(0.146 0.015 297.713);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.148 0.013 297.848);
--card-foreground: oklch(1 0 180);
--border: oklch(0.221 0.008 300.189);
--input: oklch(0.221 0.008 300.189);
--primary: oklch(0.365 0.168 289.771);
--primary-foreground: oklch(0.935 0.027 300.292);
--secondary: oklch(0.37 0.152 268.102);
--secondary-foreground: oklch(0.938 0.022 275.85);
--accent: oklch(0.437 0.181 319.403);
--accent-foreground: oklch(0.943 0.031 320.021);
--destructive: oklch(0.535 0.17 31.583);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.365 0.168 289.771);
--chart-1: oklch(0.365 0.168 289.771);
--chart-2: oklch(0.37 0.152 268.102);
--chart-3: oklch(0.437 0.181 319.403);
--chart-4: oklch(0.392 0.162 267.994);
--chart-5: oklch(0.363 0.174 288.986);
}