Rudiment is a shadcn/ui theme built around a light green primary color (#bce1ad) with light pink accents (#e1adbc). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the light green primary (#bce1ad) on a green-tinted background (#090e07).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #090e07black |
| Foreground | #050e02black | #f9fbf8mintcream |
| Card | #f9fcf8mintcream | #090e07black |
| Card foreground | #050e02black | #f9fbf8mintcream |
| Popover | #f9fcf8mintcream | #090e07black |
| Popover foreground | #050e02black | #f9fbf8mintcream |
| Primary | #bce1adsilver | #bce1adsilver |
| Primary foreground | #254319darkgreen | #254319darkgreen |
| Secondary | #adbce1lightsteelblue | #adbce1lightsteelblue |
| Secondary foreground | #192543midnightblue | #192543midnightblue |
| Muted | #e9ebf1lavender | #0e1016black |
| Muted foreground | #4c4f57darkslategray | #a8abb3darkgray |
| Accent | #e1adbclightpink | #e1adbclightpink |
| Accent foreground | #431925darkslategray | #431925darkslategray |
| Destructive | #632403maroon | #f96210orangered |
| Destructive foreground | #fcbd9cburlywood | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bce1adsilver | #bce1adsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 6.89:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 18.75:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 6.76:1 | AA |
Paste this into your globals.css to use Rudiment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 136.63);
--foreground: oklch(0.148 0.035 134.576);
--muted: oklch(0.941 0.008 268.728);
--muted-foreground: oklch(0.428 0.014 268.529);
--popover: oklch(0.988 0.007 136.63);
--popover-foreground: oklch(0.148 0.035 134.576);
--card: oklch(0.988 0.007 136.63);
--card-foreground: oklch(0.148 0.035 134.576);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.869 0.08 136.914);
--primary-foreground: oklch(0.348 0.077 137.706);
--secondary: oklch(0.795 0.055 268.169);
--secondary-foreground: oklch(0.27 0.059 266.26);
--accent: oklch(0.799 0.063 359.887);
--accent-foreground: oklch(0.281 0.067 4.625);
--destructive: oklch(0.351 0.1 43.624);
--destructive-foreground: oklch(0.849 0.086 49.463);
--ring: oklch(0.869 0.08 136.914);
--chart-1: oklch(0.869 0.08 136.914);
--chart-2: oklch(0.795 0.055 268.169);
--chart-3: oklch(0.799 0.063 359.887);
--chart-4: oklch(0.824 0.047 268.296);
--chart-5: oklch(0.872 0.085 136.936);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.018 136.03);
--foreground: oklch(0.987 0.004 136.622);
--muted: oklch(0.174 0.013 268.118);
--muted-foreground: oklch(0.741 0.012 268.669);
--popover: oklch(0.154 0.018 136.03);
--popover-foreground: oklch(0.987 0.004 136.622);
--card: oklch(0.154 0.018 136.03);
--card-foreground: oklch(0.987 0.004 136.622);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.869 0.08 136.914);
--primary-foreground: oklch(0.348 0.077 137.706);
--secondary: oklch(0.795 0.055 268.169);
--secondary-foreground: oklch(0.27 0.059 266.26);
--accent: oklch(0.799 0.063 359.887);
--accent-foreground: oklch(0.281 0.067 4.625);
--destructive: oklch(0.681 0.2 42.014);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.869 0.08 136.914);
--chart-1: oklch(0.869 0.08 136.914);
--chart-2: oklch(0.795 0.055 268.169);
--chart-3: oklch(0.799 0.063 359.887);
--chart-4: oklch(0.824 0.047 268.296);
--chart-5: oklch(0.872 0.085 136.936);
}