Close for shadcn/ui

Close is a shadcn/ui theme built around a muted light green primary color (#ccd3c0) with muted light green accents (#c3d3c0). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted light green primary (#ccd3c0) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#030401black
Foreground
#060802black
#fdfdfcwhite
Card
#fbfcf8snow
#060802black
Card foreground
#030401black
#ffffffwhite
Popover
#fbfcf8snow
#060802black
Popover foreground
#030401black
#ffffffwhite
Primary
#ccd3c0lightgrey
#ccd3c0lightgrey
Primary foreground
#333928darkslategray
#333928darkslategray
Secondary
#d3d0c0lightgrey
#d3d0c0lightgrey
Secondary foreground
#393728darkslategray
#393728darkslategray
Muted
#f2f2edwhitesmoke
#12110dblack
Muted foreground
#585750dimgray
#afaea7darkgray
Accent
#c3d3c0silver
#c3d3c0silver
Accent foreground
#2a3928darkslategray
#2a3928darkslategray
Destructive
#a40a04darkred
#fa3f38tomato
Destructive foreground
#fedddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ccd3c0lightgrey
#ccd3c0lightgrey

Contrast

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

Light mode
Text on background19.81:1AAA
Text on card19.92:1AAA
Primary button7.77:1AAA
Secondary button7.75:1AAA
Muted text6.45:1AA
Accent7.81:1AAA
Destructive6.32:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.11:1AAA
Primary button7.77:1AAA
Secondary button7.75:1AAA
Muted text8.47:1AAA
Accent7.81:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 122.257);
  --foreground: oklch(0.128 0.019 121.77);
  --muted: oklch(0.959 0.006 98.41);
  --muted-foreground: oklch(0.456 0.011 98.659);
  --popover: oklch(0.989 0.006 122.302);
  --popover-foreground: oklch(0.102 0.015 121.77);
  --card: oklch(0.989 0.006 122.302);
  --card-foreground: oklch(0.102 0.015 121.77);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.857 0.027 122.714);
  --primary-foreground: oklch(0.334 0.031 123.702);
  --secondary: oklch(0.856 0.022 98.672);
  --secondary-foreground: oklch(0.333 0.025 99.209);
  --accent: oklch(0.849 0.032 140.984);
  --accent-foreground: oklch(0.326 0.036 140.835);
  --destructive: oklch(0.455 0.182 29.396);
  --destructive-foreground: oklch(0.925 0.036 20.187);
  --ring: oklch(0.857 0.027 122.714);
  --chart-1: oklch(0.857 0.027 122.714);
  --chart-2: oklch(0.856 0.022 98.672);
  --chart-3: oklch(0.849 0.032 140.984);
  --chart-4: oklch(0.877 0.019 98.616);
  --chart-5: oklch(0.86 0.032 122.795);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.016 121.757);
  --foreground: oklch(0.993 0.002 122.237);
  --muted: oklch(0.178 0.009 98.986);
  --muted-foreground: oklch(0.749 0.01 98.506);
  --popover: oklch(0.129 0.02 121.757);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.129 0.02 121.757);
  --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.857 0.027 122.714);
  --primary-foreground: oklch(0.334 0.031 123.702);
  --secondary: oklch(0.856 0.022 98.672);
  --secondary-foreground: oklch(0.333 0.025 99.209);
  --accent: oklch(0.849 0.032 140.984);
  --accent-foreground: oklch(0.326 0.036 140.835);
  --destructive: oklch(0.649 0.224 27.542);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.857 0.027 122.714);
  --chart-1: oklch(0.857 0.027 122.714);
  --chart-2: oklch(0.856 0.022 98.672);
  --chart-3: oklch(0.849 0.032 140.984);
  --chart-4: oklch(0.877 0.019 98.616);
  --chart-5: oklch(0.86 0.032 122.795);
}