Rim for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.55:1AAA
Text on card20.54:1AAA
Primary button7.59:1AAA
Secondary button7.17:1AAA
Muted text6.04:1AA
Accent7.17:1AAA
Destructive7.22:1AAA
Dark mode
Text on background20.12:1AAA
Text on card19.71:1AAA
Primary button7.59:1AAA
Secondary button7.17:1AAA
Muted text7.52:1AAA
Accent7.17:1AAA
Destructive3.60:1AA Large

CSS variables

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);
}