Rim is a shadcn/ui theme built around a blue primary color (#92adc4) with green accents (#adc492). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the blue primary (#92adc4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #030b12black | #ffffffwhite |
| Card | #fbfdfewhite | #000000black |
| Card foreground | #030b12black | #ffffffwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #030b12black | #ffffffwhite |
| Primary | #92adc4darkgray | #92adc4darkgray |
| Primary foreground | #0c1217black | #0c1217black |
| Secondary | #c492adrosybrown | #c492adrosybrown |
| Secondary foreground | #170c12black | #170c12black |
| Muted | #eae6e8lavender | #191517black |
| Muted foreground | #685e64dimgray | #a1979cdarkgray |
| Accent | #adc492darkseagreen | #adc492darkseagreen |
| Accent foreground | #12170cblack | #12170cblack |
| Destructive | #a73902saddlebrown | #f75402orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92adc4darkgray | #92adc4darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 5.03:1 | AA |
| Accent | 9.62:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 6.40:1 | AA |
| Accent | 9.62:1 | AAA |
| Destructive | 3.36:1 | AA Large |
Paste this into your globals.css to use Rim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 242.219);
--foreground: oklch(0.143 0.022 237.657);
--muted: oklch(0.928 0.006 342.776);
--muted-foreground: oklch(0.495 0.015 343.356);
--popover: oklch(0.992 0.002 242.219);
--popover-foreground: oklch(0.143 0.022 237.657);
--card: oklch(0.992 0.002 242.219);
--card-foreground: oklch(0.143 0.022 237.657);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.736 0.045 243.037);
--primary-foreground: oklch(0.18 0.014 243.252);
--secondary: oklch(0.715 0.071 344.908);
--secondary-foreground: oklch(0.174 0.021 345.431);
--accent: oklch(0.79 0.073 127.678);
--accent-foreground: oklch(0.197 0.022 127.955);
--destructive: oklch(0.497 0.154 40.158);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.736 0.045 243.037);
--chart-1: oklch(0.736 0.045 243.037);
--chart-2: oklch(0.715 0.071 344.908);
--chart-3: oklch(0.79 0.073 127.678);
--chart-4: oklch(0.741 0.064 344.618);
--chart-5: oklch(0.735 0.049 243.129);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.201 0.009 343.663);
--muted-foreground: oklch(0.685 0.014 343.113);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.736 0.045 243.037);
--primary-foreground: oklch(0.18 0.014 243.252);
--secondary: oklch(0.715 0.071 344.908);
--secondary-foreground: oklch(0.174 0.021 345.431);
--accent: oklch(0.79 0.073 127.678);
--accent-foreground: oklch(0.197 0.022 127.955);
--destructive: oklch(0.663 0.211 39.148);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.736 0.045 243.037);
--chart-1: oklch(0.736 0.045 243.037);
--chart-2: oklch(0.715 0.071 344.908);
--chart-3: oklch(0.79 0.073 127.678);
--chart-4: oklch(0.741 0.064 344.618);
--chart-5: oklch(0.735 0.049 243.129);
}