Knowledgeable for shadcn/ui

Knowledgeable is a shadcn/ui theme built around a vivid deep teal primary color (#054328) with vivid deep orange accents (#432805). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#054328) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#03120bblack
#fcfdfdwhite
Card
#ffffffwhite
#030705black
Card foreground
#03120bblack
#fcfdfdwhite
Popover
#ffffffwhite
#030705black
Popover foreground
#03120bblack
#fcfdfdwhite
Primary
#054328darkgreen
#054328darkgreen
Primary foreground
#24f097mediumspringgreen
#24f097mediumspringgreen
Secondary
#280543midnightblue
#280543midnightblue
Secondary foreground
#c483f6violet
#c483f6violet
Muted
#e9e0f0lavender
#180f1fblack
Muted foreground
#554b5ddimgray
#aca2b4darkgray
Accent
#432805maroon
#432805maroon
Accent foreground
#f6c483burlywood
#f6c483burlywood
Destructive
#ba2912firebrick
#eb4b33tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#054328darkgreen
#054328darkgreen

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button7.62:1AAA
Secondary button6.65:1AA
Muted text6.41:1AA
Accent8.53:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button7.62:1AAA
Secondary button6.65:1AA
Muted text7.62:1AAA
Accent8.53:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.028 165.792);
  --muted: oklch(0.918 0.024 310.855);
  --muted-foreground: oklch(0.43 0.033 310.423);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.028 165.792);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.028 165.792);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.338 0.076 158.113);
  --primary-foreground: oklch(0.843 0.194 157.243);
  --secondary: oklch(0.226 0.107 304.509);
  --secondary-foreground: oklch(0.722 0.173 308.82);
  --accent: oklch(0.304 0.062 68.051);
  --accent-foreground: oklch(0.852 0.1 73.255);
  --destructive: oklch(0.515 0.184 31.587);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.338 0.076 158.113);
  --chart-1: oklch(0.338 0.076 158.113);
  --chart-2: oklch(0.226 0.107 304.509);
  --chart-3: oklch(0.304 0.062 68.051);
  --chart-4: oklch(0.255 0.123 303.843);
  --chart-5: oklch(0.341 0.078 157.838);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.011 168.907);
  --foreground: oklch(0.993 0.002 168.682);
  --muted: oklch(0.188 0.035 309.389);
  --muted-foreground: oklch(0.726 0.029 310.74);
  --popover: oklch(0.121 0.011 168.907);
  --popover-foreground: oklch(0.993 0.002 168.682);
  --card: oklch(0.121 0.011 168.907);
  --card-foreground: oklch(0.993 0.002 168.682);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.338 0.076 158.113);
  --primary-foreground: oklch(0.843 0.194 157.243);
  --secondary: oklch(0.226 0.107 304.509);
  --secondary-foreground: oklch(0.722 0.173 308.82);
  --accent: oklch(0.304 0.062 68.051);
  --accent-foreground: oklch(0.852 0.1 73.255);
  --destructive: oklch(0.635 0.2 31.56);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.338 0.076 158.113);
  --chart-1: oklch(0.338 0.076 158.113);
  --chart-2: oklch(0.226 0.107 304.509);
  --chart-3: oklch(0.304 0.062 68.051);
  --chart-4: oklch(0.255 0.123 303.843);
  --chart-5: oklch(0.341 0.078 157.838);
}