Ram is a shadcn/ui theme built around a near-white primary color (#fbfefa) with near-white accents (#fafefc). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the near-white primary (#fbfefa) on a green-tinted background (#080d07).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #080d07black |
| Foreground | #051703black | #f6f9f6whitesmoke |
| Card | #f8fcf8mintcream | #080d07black |
| Card foreground | #051703black | #f6f9f6whitesmoke |
| Popover | #f8fcf8mintcream | #080d07black |
| Popover foreground | #051703black | #f6f9f6whitesmoke |
| Primary | #fbfefasnow | #fbfefasnow |
| Primary foreground | #13560bdarkgreen | #13560bdarkgreen |
| Secondary | #fdfefasnow | #fdfefasnow |
| Secondary foreground | #39560bdarkolivegreen | #39560bdarkolivegreen |
| Muted | #e5ecdagainsboro | #1e2513black |
| Muted foreground | #5f605cdimgray | #a1a39fdarkgray |
| Accent | #fafefcmintcream | #fafefcmintcream |
| Accent foreground | #0b5628darkgreen | #0b5628darkgreen |
| Destructive | #6c0e04maroon | #f7321dorangered |
| Destructive foreground | #fcafa6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbfefasnow | #fbfefasnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.94:1 | AAA |
| Text on card | 17.94:1 | AAA |
| Primary button | 8.76:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 8.72:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 18.46:1 | AAA |
| Text on card | 18.46:1 | AAA |
| Primary button | 8.76:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 8.72:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Ram in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.007 142.089);
--foreground: oklch(0.182 0.049 140.279);
--muted: oklch(0.933 0.026 124.051);
--muted-foreground: oklch(0.487 0.006 123.828);
--popover: oklch(0.987 0.007 142.089);
--popover-foreground: oklch(0.182 0.049 140.279);
--card: oklch(0.987 0.007 142.089);
--card-foreground: oklch(0.182 0.049 140.279);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.006 142.091);
--primary-foreground: oklch(0.398 0.124 141.573);
--secondary: oklch(0.996 0.005 123.721);
--secondary-foreground: oklch(0.416 0.104 129.365);
--accent: oklch(0.995 0.005 159.351);
--accent-foreground: oklch(0.399 0.103 150.377);
--destructive: oklch(0.343 0.128 30.885);
--destructive-foreground: oklch(0.825 0.092 26.273);
--ring: oklch(0.995 0.006 142.091);
--chart-1: oklch(0.995 0.006 142.091);
--chart-2: oklch(0.996 0.005 123.721);
--chart-3: oklch(0.995 0.005 159.351);
--chart-4: oklch(1.008 0.011 303.479);
--chart-5: oklch(0.995 0.007 142.09);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.017 141.304);
--foreground: oklch(0.979 0.004 142.097);
--muted: oklch(0.253 0.034 125.832);
--muted-foreground: oklch(0.712 0.006 123.757);
--popover: oklch(0.152 0.017 141.304);
--popover-foreground: oklch(0.979 0.004 142.097);
--card: oklch(0.152 0.017 141.304);
--card-foreground: oklch(0.979 0.004 142.097);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.995 0.006 142.091);
--primary-foreground: oklch(0.398 0.124 141.573);
--secondary: oklch(0.996 0.005 123.721);
--secondary-foreground: oklch(0.416 0.104 129.365);
--accent: oklch(0.995 0.005 159.351);
--accent-foreground: oklch(0.399 0.103 150.377);
--destructive: oklch(0.632 0.232 30.516);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.006 142.091);
--chart-1: oklch(0.995 0.006 142.091);
--chart-2: oklch(0.996 0.005 123.721);
--chart-3: oklch(0.995 0.005 159.351);
--chart-4: oklch(1.008 0.011 303.479);
--chart-5: oklch(0.995 0.007 142.09);
}