Note for shadcn/ui

Note is a shadcn/ui theme built around a muted green primary color (#566c41) with muted violet accents (#57416c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#566c41) on a neutral background (#050803).

Color palette

TokenLightDark
Background
#ffffffwhite
#050803black
Foreground
#0a1104black
#fcfdfcwhite
Card
#fcfcfcsnow
#080b04black
Card foreground
#070d03black
#ffffffwhite
Popover
#ffffffwhite
#050803black
Popover foreground
#0a1104black
#fcfdfcwhite
Primary
#566c41darkolivegreen
#566c41darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#57416cdarkslateblue
#57416cdarkslateblue
Secondary foreground
#f0ecf4whitesmoke
#f0ecf4whitesmoke
Muted
#d9cce6gainsboro
#271933darkslategray
Muted foreground
#57515ddimgray
#a9a2aedarkgray
Accent
#57416cdarkslateblue
#57416cdarkslateblue
Accent foreground
#f0ecf4whitesmoke
#f0ecf4whitesmoke
Destructive
#973402saddlebrown
#ed5102orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#566c41darkolivegreen
#566c41darkolivegreen

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.24:1AAA
Primary button5.78:1AA
Secondary button7.55:1AAA
Muted text5.00:1AA
Accent7.55:1AAA
Destructive7.47:1AAA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button5.78:1AA
Secondary button7.55:1AAA
Muted text6.64:1AA
Accent7.55:1AAA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.031 129.35);
  --muted: oklch(0.863 0.038 308.661);
  --muted-foreground: oklch(0.444 0.021 308.628);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.031 129.35);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.026 128.091);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.503 0.07 130.796);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.418 0.075 307.174);
  --secondary-foreground: oklch(0.948 0.011 309.004);
  --accent: oklch(0.418 0.075 307.174);
  --accent-foreground: oklch(0.948 0.011 309.004);
  --destructive: oklch(0.464 0.143 40.47);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.07 130.796);
  --chart-1: oklch(0.503 0.07 130.796);
  --chart-2: oklch(0.418 0.075 307.174);
  --chart-3: oklch(0.418 0.075 307.174);
  --chart-4: oklch(0.443 0.08 307.149);
  --chart-5: oklch(0.509 0.078 130.996);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.018 128.047);
  --foreground: oklch(0.993 0.001 129.14);
  --muted: oklch(0.245 0.051 306.812);
  --muted-foreground: oklch(0.722 0.019 308.854);
  --popover: oklch(0.125 0.018 128.047);
  --popover-foreground: oklch(0.993 0.001 129.14);
  --card: oklch(0.144 0.02 128.18);
  --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.503 0.07 130.796);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.418 0.075 307.174);
  --secondary-foreground: oklch(0.948 0.011 309.004);
  --accent: oklch(0.418 0.075 307.174);
  --accent-foreground: oklch(0.948 0.011 309.004);
  --destructive: oklch(0.643 0.204 39.236);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.503 0.07 130.796);
  --chart-1: oklch(0.503 0.07 130.796);
  --chart-2: oklch(0.418 0.075 307.174);
  --chart-3: oklch(0.418 0.075 307.174);
  --chart-4: oklch(0.443 0.08 307.149);
  --chart-5: oklch(0.509 0.078 130.996);
}