Robotics is a shadcn/ui theme built around a near-black primary color (#07000a) with near-black accents (#030a00). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the near-black primary (#07000a) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8fcghostwhite | #060208black |
| Foreground | #0d0212black | #fdfcfdwhite |
| Card | #fbf8fcghostwhite | #060208black |
| Card foreground | #0d0212black | #fdfcfdwhite |
| Popover | #fbf8fcghostwhite | #060208black |
| Popover foreground | #0d0212black | #fdfcfdwhite |
| Primary | #07000ablack | #07000ablack |
| Primary foreground | #e0a4ffplum | #e0a4ffplum |
| Secondary | #030a00black | #030a00black |
| Secondary foreground | #48d501limegreen | #48d501limegreen |
| Muted | #ecf1e9linen | #11160eblack |
| Muted foreground | #4f584bdarkslategray | #abb4a7darkgray |
| Accent | #030a00black | #030a00black |
| Accent foreground | #48d501limegreen | #48d501limegreen |
| Destructive | #c61e15firebrick | #e7271dcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #07000ablack | #07000ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 10.29:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 10.29:1 | AAA |
| Destructive | 5.82:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 10.77:1 | AAA |
| Secondary button | 10.29:1 | AAA |
| Muted text | 8.60:1 | AAA |
| Accent | 10.29:1 | AAA |
| Destructive | 4.45:1 | AA Large |
Paste this into your globals.css to use Robotics in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 314.794);
--foreground: oklch(0.127 0.043 315.388);
--muted: oklch(0.952 0.011 134.886);
--muted-foreground: oklch(0.449 0.024 135.096);
--popover: oklch(0.982 0.007 314.794);
--popover-foreground: oklch(0.127 0.043 315.388);
--card: oklch(0.982 0.007 314.794);
--card-foreground: oklch(0.127 0.043 315.388);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.094 0.045 318.661);
--primary-foreground: oklch(0.806 0.139 313.946);
--secondary: oklch(0.131 0.036 132.14);
--secondary-foreground: oklch(0.766 0.245 139.616);
--accent: oklch(0.131 0.036 132.14);
--accent-foreground: oklch(0.766 0.245 139.616);
--destructive: oklch(0.531 0.202 29.208);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.045 318.661);
--chart-1: oklch(0.094 0.045 318.661);
--chart-2: oklch(0.131 0.036 132.14);
--chart-3: oklch(0.131 0.036 132.14);
--chart-4: oklch(0.193 0.055 134.578);
--chart-5: oklch(0.093 0.046 318.817);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.021 316.593);
--foreground: oklch(0.991 0.002 314.815);
--muted: oklch(0.19 0.017 135.295);
--muted-foreground: oklch(0.759 0.021 134.964);
--popover: oklch(0.105 0.021 316.593);
--popover-foreground: oklch(0.991 0.002 314.815);
--card: oklch(0.105 0.021 316.593);
--card-foreground: oklch(0.991 0.002 314.815);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.045 318.661);
--primary-foreground: oklch(0.806 0.139 313.946);
--secondary: oklch(0.131 0.036 132.14);
--secondary-foreground: oklch(0.766 0.245 139.616);
--accent: oklch(0.131 0.036 132.14);
--accent-foreground: oklch(0.766 0.245 139.616);
--destructive: oklch(0.597 0.225 29.126);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.045 318.661);
--chart-1: oklch(0.094 0.045 318.661);
--chart-2: oklch(0.131 0.036 132.14);
--chart-3: oklch(0.131 0.036 132.14);
--chart-4: oklch(0.193 0.055 134.578);
--chart-5: oklch(0.093 0.046 318.817);
}