Rubric is a shadcn/ui theme built around a deep cyan primary color (#1b5364) with deep blue accents (#1b2f64). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the deep cyan primary (#1b5364) on a neutral background (#030608).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfdghostwhite | #030608black |
| Foreground | #020e12black | #fcfdfdwhite |
| Card | #f7fcfdghostwhite | #030608black |
| Card foreground | #020e12black | #fcfdfdwhite |
| Popover | #f7fcfdghostwhite | #030608black |
| Popover foreground | #020e12black | #fcfdfdwhite |
| Primary | #1b5364darkslategray | #1b5364darkslategray |
| Primary foreground | #c3e4efpowderblue | #c3e4efpowderblue |
| Secondary | #1b6451darkslategray | #1b6451darkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #deede9lavender | #12211dblack |
| Muted foreground | #435651darkslategray | #a9bcb7darkgray |
| Accent | #1b2f64midnightblue | #1b2f64midnightblue |
| Accent foreground | #c3cfeflightblue | #c3cfeflightblue |
| Destructive | #942a00saddlebrown | #fa4700orangered |
| Destructive foreground | #ffd7c7bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b5364darkslategray | #1b5364darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.83:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 7.01:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Rubric in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 217.773);
--foreground: oklch(0.155 0.022 216.272);
--muted: oklch(0.934 0.017 178.249);
--muted-foreground: oklch(0.436 0.026 176.942);
--popover: oklch(0.987 0.005 217.773);
--popover-foreground: oklch(0.155 0.022 216.272);
--card: oklch(0.987 0.005 217.773);
--card-foreground: oklch(0.155 0.022 216.272);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.414 0.063 221.776);
--primary-foreground: oklch(0.899 0.038 218.091);
--secondary: oklch(0.454 0.077 171.282);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.321 0.097 266.036);
--accent-foreground: oklch(0.855 0.046 269.594);
--destructive: oklch(0.446 0.148 37.396);
--destructive-foreground: oklch(0.908 0.05 42.732);
--ring: oklch(0.414 0.063 221.776);
--chart-1: oklch(0.414 0.063 221.776);
--chart-2: oklch(0.454 0.077 171.282);
--chart-3: oklch(0.321 0.097 266.036);
--chart-4: oklch(0.491 0.085 171.142);
--chart-5: oklch(0.417 0.066 222.136);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.01 213.743);
--foreground: oklch(0.993 0.001 217.75);
--muted: oklch(0.233 0.022 175.581);
--muted-foreground: oklch(0.78 0.023 177.908);
--popover: oklch(0.119 0.01 213.743);
--popover-foreground: oklch(0.993 0.001 217.75);
--card: oklch(0.119 0.01 213.743);
--card-foreground: oklch(0.993 0.001 217.75);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.414 0.063 221.776);
--primary-foreground: oklch(0.899 0.038 218.091);
--secondary: oklch(0.454 0.077 171.282);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.321 0.097 266.036);
--accent-foreground: oklch(0.855 0.046 269.594);
--destructive: oklch(0.653 0.223 36.057);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.063 221.776);
--chart-1: oklch(0.414 0.063 221.776);
--chart-2: oklch(0.454 0.077 171.282);
--chart-3: oklch(0.321 0.097 266.036);
--chart-4: oklch(0.491 0.085 171.142);
--chart-5: oklch(0.417 0.066 222.136);
}