Gyro is a shadcn/ui theme built around a light cyan primary color (#ebf3f5) with light blue accents (#ebeef5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#ebf3f5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020708black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020708black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020708black | #ffffffwhite |
| Primary | #ebf3f5whitesmoke | #ebf3f5whitesmoke |
| Primary foreground | #182b2fdarkslategray | #182b2fdarkslategray |
| Secondary | #ebf5f1whitesmoke | #ebf5f1whitesmoke |
| Secondary foreground | #182f28darkslategray | #182f28darkslategray |
| Muted | #e4ecealavender | #131b18black |
| Muted foreground | #545958dimgray | #a6aba9darkgray |
| Accent | #ebeef5lavender | #ebeef5lavender |
| Accent foreground | #3b4d72darkslateblue | #3b4d72darkslateblue |
| Destructive | #a82a00firebrick | #e63900orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebf3f5whitesmoke | #ebf3f5whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 13.08:1 | AAA |
| Secondary button | 12.74:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.99:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 13.08:1 | AAA |
| Secondary button | 12.74:1 | AAA |
| Muted text | 7.51:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Gyro in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.122 0.014 207.095);
--muted: oklch(0.937 0.01 174.272);
--muted-foreground: oklch(0.46 0.007 174.128);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.122 0.014 207.095);
--card: oklch(1 0 180);
--card-foreground: oklch(0.122 0.014 207.095);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.958 0.009 211.038);
--primary-foreground: oklch(0.276 0.026 211.626);
--secondary: oklch(0.961 0.011 174.244);
--secondary-foreground: oklch(0.284 0.032 170.572);
--accent: oklch(0.949 0.009 264.518);
--accent-foreground: oklch(0.423 0.066 263.489);
--destructive: oklch(0.483 0.168 35.357);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.958 0.009 211.038);
--chart-1: oklch(0.958 0.009 211.038);
--chart-2: oklch(0.961 0.011 174.244);
--chart-3: oklch(0.949 0.009 264.518);
--chart-4: oklch(0.98 0.006 174.42);
--chart-5: oklch(0.959 0.01 211.038);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.214 0.014 172.509);
--muted-foreground: oklch(0.736 0.006 174.333);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.958 0.009 211.038);
--primary-foreground: oklch(0.276 0.026 211.626);
--secondary: oklch(0.961 0.011 174.244);
--secondary-foreground: oklch(0.284 0.032 170.572);
--accent: oklch(0.949 0.009 264.518);
--accent-foreground: oklch(0.423 0.066 263.489);
--destructive: oklch(0.606 0.214 34.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.958 0.009 211.038);
--chart-1: oklch(0.958 0.009 211.038);
--chart-2: oklch(0.961 0.011 174.244);
--chart-3: oklch(0.949 0.009 264.518);
--chart-4: oklch(0.98 0.006 174.42);
--chart-5: oklch(0.959 0.01 211.038);
}