Frame for shadcn/ui

Frame is a shadcn/ui theme built around a muted light green primary color (#dbe6db) with muted light red accents (#e6dbdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#dbe6db) on a green-tinted background (#040c04).

Color palette

TokenLightDark
Background
#ffffffwhite
#040c04black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfcfcsnow
#051005black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040c04black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#dbe6dbgainsboro
#dbe6dbgainsboro
Primary foreground
#3a553adarkslategray
#3a553adarkslategray
Secondary
#dbdbe6gainsboro
#dbdbe6gainsboro
Secondary foreground
#3a3a55darkslategray
#3a3a55darkslategray
Muted
#e1e1e5gainsboro
#1a1a1eblack
Muted foreground
#51515cdimgray
#a3a3aedarkgray
Accent
#e6dbdbgainsboro
#e6dbdbgainsboro
Accent foreground
#553a3adarkslategray
#553a3adarkslategray
Destructive
#7f0806maroon
#f5312ecrimson
Destructive foreground
#fcbcbblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dbe6dbgainsboro
#dbe6dbgainsboro

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.44:1AA
Secondary button7.94:1AAA
Muted text6.00:1AA
Accent7.54:1AAA
Destructive6.74:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.44:1AAA
Primary button6.44:1AA
Secondary button7.94:1AAA
Muted text6.94:1AA
Accent7.54:1AAA
Destructive3.91:1AA Large

CSS variables

Paste this into your globals.css to use Frame in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.911 0.005 286.294);
  --muted-foreground: oklch(0.441 0.017 285.685);
  --popover: oklch(1 0 180);
  --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.914 0.02 145.41);
  --primary-foreground: oklch(0.419 0.055 144.514);
  --secondary: oklch(0.894 0.016 286.076);
  --secondary-foreground: oklch(0.36 0.047 283.81);
  --accent: oklch(0.899 0.013 17.394);
  --accent-foreground: oklch(0.379 0.039 19.025);
  --destructive: oklch(0.378 0.149 28.856);
  --destructive-foreground: oklch(0.853 0.074 19.834);
  --ring: oklch(0.914 0.02 145.41);
  --chart-1: oklch(0.914 0.02 145.41);
  --chart-2: oklch(0.894 0.016 286.076);
  --chart-3: oklch(0.899 0.013 17.394);
  --chart-4: oklch(0.92 0.012 286.167);
  --chart-5: oklch(0.915 0.023 145.384);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.026 144.014);
  --foreground: oklch(0.993 0.001 145.566);
  --muted: oklch(0.22 0.008 285.758);
  --muted-foreground: oklch(0.719 0.015 286.018);
  --popover: oklch(0.139 0.026 144.014);
  --popover-foreground: oklch(0.993 0.001 145.566);
  --card: oklch(0.156 0.03 143.958);
  --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.914 0.02 145.41);
  --primary-foreground: oklch(0.419 0.055 144.514);
  --secondary: oklch(0.894 0.016 286.076);
  --secondary-foreground: oklch(0.36 0.047 283.81);
  --accent: oklch(0.899 0.013 17.394);
  --accent-foreground: oklch(0.379 0.039 19.025);
  --destructive: oklch(0.63 0.23 27.613);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.02 145.41);
  --chart-1: oklch(0.914 0.02 145.41);
  --chart-2: oklch(0.894 0.016 286.076);
  --chart-3: oklch(0.899 0.013 17.394);
  --chart-4: oklch(0.92 0.012 286.167);
  --chart-5: oklch(0.915 0.023 145.384);
}