Credit for shadcn/ui

Credit is a shadcn/ui theme built around a vivid light green primary color (#f3fdb5) with vivid light purple accents (#fdb5f3). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the vivid light green primary (#f3fdb5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdf7snow
#000000black
Foreground
#131504black
#fbfbf8snow
Card
#fafbf3floralwhite
#030303black
Card foreground
#0f1103black
#fdfdfcwhite
Popover
#fcfdf7snow
#000000black
Popover foreground
#131504black
#fbfbf8snow
Primary
#f3fdb5palegoldenrod
#f3fdb5palegoldenrod
Primary foreground
#161901black
#161901black
Secondary
#b5f3fdpaleturquoise
#b5f3fdpaleturquoise
Secondary foreground
#011619black
#011619black
Muted
#d6e8eagainsboro
#152629black
Muted foreground
#62696adimgray
#959c9ddarkgray
Accent
#fdb5f3pink
#fdb5f3pink
Accent foreground
#7c046cpurple
#7c046cpurple
Destructive
#8e250bsaddlebrown
#ec4218orangered
Destructive foreground
#fbd8d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3fdb5palegoldenrod
#f3fdb5palegoldenrod

Contrast

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

Light mode
Text on background18.01:1AAA
Text on card18.34:1AAA
Primary button16.60:1AAA
Secondary button15.22:1AAA
Muted text4.42:1AA Large
Accent6.24:1AA
Destructive6.55:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.31:1AAA
Primary button16.60:1AAA
Secondary button15.22:1AAA
Muted text5.61:1AA
Accent6.24:1AA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.007 112.676);
  --foreground: oklch(0.19 0.033 115.462);
  --muted: oklch(0.918 0.019 207.86);
  --muted-foreground: oklch(0.515 0.009 207.869);
  --popover: oklch(0.991 0.007 112.676);
  --popover-foreground: oklch(0.19 0.033 115.462);
  --card: oklch(0.986 0.011 112.743);
  --card-foreground: oklch(0.171 0.029 114.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.969 0.092 114.314);
  --primary-foreground: oklch(0.202 0.044 116.112);
  --secondary: oklch(0.926 0.064 207.905);
  --secondary-foreground: oklch(0.182 0.03 207.579);
  --accent: oklch(0.859 0.115 331.226);
  --accent-foreground: oklch(0.402 0.176 335.465);
  --destructive: oklch(0.43 0.144 34.299);
  --destructive-foreground: oklch(0.91 0.041 34.322);
  --ring: oklch(0.969 0.092 114.314);
  --chart-1: oklch(0.969 0.092 114.314);
  --chart-2: oklch(0.926 0.064 207.905);
  --chart-3: oklch(0.859 0.115 331.226);
  --chart-4: oklch(0.94 0.052 207.854);
  --chart-5: oklch(0.972 0.095 114.362);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.004 112.623);
  --muted: oklch(0.255 0.024 208.105);
  --muted-foreground: oklch(0.687 0.008 207.885);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.004 112.623);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 112.583);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.969 0.092 114.314);
  --primary-foreground: oklch(0.202 0.044 116.112);
  --secondary: oklch(0.926 0.064 207.905);
  --secondary-foreground: oklch(0.182 0.03 207.579);
  --accent: oklch(0.859 0.115 331.226);
  --accent-foreground: oklch(0.402 0.176 335.465);
  --destructive: oklch(0.627 0.212 34.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.969 0.092 114.314);
  --chart-1: oklch(0.969 0.092 114.314);
  --chart-2: oklch(0.926 0.064 207.905);
  --chart-3: oklch(0.859 0.115 331.226);
  --chart-4: oklch(0.94 0.052 207.854);
  --chart-5: oklch(0.972 0.095 114.362);
}