Robotics is a shadcn/ui theme built around a muted light green primary color (#ebefed) with muted light teal accents (#ebefef). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the muted light green primary (#ebefed) on a green-tinted background (#070d09).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #070d09black |
| Foreground | #000000black | #f6f9f7whitesmoke |
| Card | #f8fcf9mintcream | #070d09black |
| Card foreground | #000000black | #f6f9f7whitesmoke |
| Popover | #f8fcf9mintcream | #070d09black |
| Popover foreground | #000000black | #f6f9f7whitesmoke |
| Primary | #ebefedwhitesmoke | #ebefedwhitesmoke |
| Primary foreground | #4c5d52darkslategray | #4c5d52darkslategray |
| Secondary | #ecefebwhitesmoke | #ecefebwhitesmoke |
| Secondary foreground | #4e5d4cdarkolivegreen | #4e5d4cdarkolivegreen |
| Muted | #dde5dcgainsboro | #1b231ablack |
| Muted foreground | #585b57dimgray | #a4a8a4darkgray |
| Accent | #ebefefwhitesmoke | #ebefefwhitesmoke |
| Accent foreground | #4c5d5bdarkslategray | #4c5d5bdarkslategray |
| Destructive | #622304maroon | #e15109orangered |
| Destructive foreground | #fbbc9dburlywood | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebefedwhitesmoke | #ebefedwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.04:1 | AA |
| Muted text | 5.35:1 | AA |
| Accent | 5.99:1 | AA |
| Destructive | 7.24:1 | AAA |
| Text on background | 18.47:1 | AAA |
| Text on card | 18.47:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.04:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 5.99:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Robotics in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 159.349);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.016 142.052);
--muted-foreground: oklch(0.467 0.007 142.062);
--popover: oklch(0.987 0.005 159.349);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.005 159.349);
--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.949 0.005 159.356);
--primary-foreground: oklch(0.459 0.027 158.104);
--secondary: oklch(0.949 0.006 142.092);
--secondary-foreground: oklch(0.459 0.033 141.867);
--accent: oklch(0.949 0.004 188.814);
--accent-foreground: oklch(0.462 0.021 187.806);
--destructive: oklch(0.347 0.099 42.618);
--destructive-foreground: oklch(0.846 0.084 47.704);
--ring: oklch(0.949 0.005 159.356);
--chart-1: oklch(0.949 0.005 159.356);
--chart-2: oklch(0.949 0.006 142.092);
--chart-3: oklch(0.949 0.004 188.814);
--chart-4: oklch(0.971 0.003 142.101);
--chart-5: oklch(0.949 0.006 159.322);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.013 158.509);
--foreground: oklch(0.979 0.004 159.385);
--muted: oklch(0.246 0.022 141.803);
--muted-foreground: oklch(0.726 0.006 142.084);
--popover: oklch(0.152 0.013 158.509);
--popover-foreground: oklch(0.979 0.004 159.385);
--card: oklch(0.152 0.013 158.509);
--card-foreground: oklch(0.979 0.004 159.385);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.949 0.005 159.356);
--primary-foreground: oklch(0.459 0.027 158.104);
--secondary: oklch(0.949 0.006 142.092);
--secondary-foreground: oklch(0.459 0.033 141.867);
--accent: oklch(0.949 0.004 188.814);
--accent-foreground: oklch(0.462 0.021 187.806);
--destructive: oklch(0.624 0.191 40.263);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.949 0.005 159.356);
--chart-1: oklch(0.949 0.005 159.356);
--chart-2: oklch(0.949 0.006 142.092);
--chart-3: oklch(0.949 0.004 188.814);
--chart-4: oklch(0.971 0.003 142.101);
--chart-5: oklch(0.949 0.006 159.322);
}