Rim is a shadcn/ui theme built around a light green primary color (#d9f098) with light violet accents (#b098f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d9f098) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060802black |
| Foreground | #030401black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a0c04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #0a0c04black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d9f098khaki | #d9f098khaki |
| Primary foreground | #3b4c0bdarkolivegreen | #3b4c0bdarkolivegreen |
| Secondary | #b098f0lightsteelblue | #b098f0lightsteelblue |
| Secondary foreground | #1c0b4cmidnightblue | #1c0b4cmidnightblue |
| Muted | #dbd4edgainsboro | #19122bblack |
| Muted foreground | #4e495adarkslategray | #aaa5b6darkgray |
| Accent | #b098f0lightsteelblue | #b098f0lightsteelblue |
| Accent foreground | #1c0b4cmidnightblue | #1c0b4cmidnightblue |
| Destructive | #65280bsaddlebrown | #e65a1achocolate |
| Destructive foreground | #f6c4aclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9f098khaki | #d9f098khaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.12:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.52:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 3.60:1 | AA Large |
Paste this into your globals.css to use Rim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.016 118.656);
--muted: oklch(0.883 0.034 297.892);
--muted-foreground: oklch(0.417 0.027 297.411);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.919 0.115 120.86);
--primary-foreground: oklch(0.388 0.089 124.037);
--secondary: oklch(0.736 0.127 295.378);
--secondary-foreground: oklch(0.228 0.11 286.09);
--accent: oklch(0.736 0.127 295.378);
--accent-foreground: oklch(0.228 0.11 286.09);
--destructive: oklch(0.36 0.097 42.328);
--destructive-foreground: oklch(0.858 0.066 46.135);
--ring: oklch(0.919 0.115 120.86);
--chart-1: oklch(0.919 0.115 120.86);
--chart-2: oklch(0.736 0.127 295.378);
--chart-3: oklch(0.736 0.127 295.378);
--chart-4: oklch(0.77 0.109 295.98);
--chart-5: oklch(0.923 0.119 120.942);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.018 118.647);
--foreground: oklch(1 0 180);
--muted: oklch(0.206 0.048 294.092);
--muted-foreground: oklch(0.731 0.024 297.998);
--popover: oklch(0.147 0.021 118.942);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.147 0.021 118.942);
--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.919 0.115 120.86);
--primary-foreground: oklch(0.388 0.089 124.037);
--secondary: oklch(0.736 0.127 295.378);
--secondary-foreground: oklch(0.228 0.11 286.09);
--accent: oklch(0.736 0.127 295.378);
--accent-foreground: oklch(0.228 0.11 286.09);
--destructive: oklch(0.642 0.187 41.024);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.115 120.86);
--chart-1: oklch(0.919 0.115 120.86);
--chart-2: oklch(0.736 0.127 295.378);
--chart-3: oklch(0.736 0.127 295.378);
--chart-4: oklch(0.77 0.109 295.98);
--chart-5: oklch(0.923 0.119 120.942);
}