Basic for shadcn/ui

Basic is a shadcn/ui theme built around a vivid light teal primary color (#8df6cb) with vivid light orange accents (#f6cb8d). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light teal primary (#8df6cb) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#ffffffwhite
#010403black
Foreground
#04150eblack
#ffffffwhite
Card
#ffffffwhite
#010403black
Card foreground
#04150eblack
#ffffffwhite
Popover
#ffffffwhite
#010403black
Popover foreground
#04150eblack
#ffffffwhite
Primary
#8df6cbaquamarine
#8df6cbaquamarine
Primary foreground
#064c2fdarkslategray
#064c2fdarkslategray
Secondary
#cb8df6plum
#cb8df6plum
Secondary foreground
#2f064cmidnightblue
#2f064cmidnightblue
Muted
#e1dde4gainsboro
#1f1b22black
Muted foreground
#4c3f55darkslategray
#b7aac0silver
Accent
#f6cb8dkhaki
#f6cb8dkhaki
Accent foreground
#4c2f06saddlebrown
#4c2f06saddlebrown
Destructive
#c32209firebrick
#f43b1forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8df6cbaquamarine
#8df6cbaquamarine

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button7.79:1AAA
Secondary button6.93:1AA
Muted text7.28:1AAA
Accent8.05:1AAA
Destructive5.91:1AA
Dark mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button7.79:1AAA
Secondary button6.93:1AA
Muted text7.67:1AAA
Accent8.05:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.178 0.028 165.359);
  --muted: oklch(0.903 0.01 311.635);
  --muted-foreground: oklch(0.389 0.04 310.887);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.178 0.028 165.359);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.178 0.028 165.359);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.899 0.117 165.141);
  --primary-foreground: oklch(0.368 0.082 158.717);
  --secondary: oklch(0.744 0.159 309.894);
  --secondary-foreground: oklch(0.247 0.117 305.226);
  --accent: oklch(0.865 0.093 75.376);
  --accent-foreground: oklch(0.332 0.067 69.386);
  --destructive: oklch(0.526 0.198 31.299);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.117 165.141);
  --chart-1: oklch(0.899 0.117 165.141);
  --chart-2: oklch(0.744 0.159 309.894);
  --chart-3: oklch(0.865 0.093 75.376);
  --chart-4: oklch(0.775 0.139 310.225);
  --chart-5: oklch(0.902 0.12 164.985);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.013 169.943);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.014 311.236);
  --muted-foreground: oklch(0.756 0.034 311.359);
  --popover: oklch(0.099 0.013 169.943);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.099 0.013 169.943);
  --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.899 0.117 165.141);
  --primary-foreground: oklch(0.368 0.082 158.717);
  --secondary: oklch(0.744 0.159 309.894);
  --secondary-foreground: oklch(0.247 0.117 305.226);
  --accent: oklch(0.865 0.093 75.376);
  --accent-foreground: oklch(0.332 0.067 69.386);
  --destructive: oklch(0.635 0.224 31.622);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.899 0.117 165.141);
  --chart-1: oklch(0.899 0.117 165.141);
  --chart-2: oklch(0.744 0.159 309.894);
  --chart-3: oklch(0.865 0.093 75.376);
  --chart-4: oklch(0.775 0.139 310.225);
  --chart-5: oklch(0.902 0.12 164.985);
}