Second for shadcn/ui

Second is a shadcn/ui theme built around a vivid teal primary color (#59f3de) with vivid yellow accents (#f3de59). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the vivid teal primary (#59f3de) on a neutral background (#020303).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#020303black
Foreground
#020807black
#ffffffwhite
Card
#f8fcfbmintcream
#030706black
Card foreground
#010404black
#ffffffwhite
Popover
#fbfdfdwhite
#020303black
Popover foreground
#020807black
#ffffffwhite
Primary
#59f3deturquoise
#59f3deturquoise
Primary foreground
#021815black
#021815black
Secondary
#de59f3orchid
#de59f3orchid
Secondary foreground
#150218black
#150218black
Muted
#e7d1eagainsboro
#2a152eblack
Muted foreground
#5d545fdimgray
#aaa0abdarkgray
Accent
#f3de59khaki
#f3de59khaki
Accent foreground
#181502black
#181502black
Destructive
#bf3803firebrick
#fc672ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59f3deturquoise
#59f3deturquoise

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.89:1AAA
Primary button13.32:1AAA
Secondary button6.47:1AA
Muted text5.08:1AA
Accent13.41:1AAA
Destructive5.55:1AA
Dark mode
Text on background20.62:1AAA
Text on card20.26:1AAA
Primary button13.32:1AAA
Secondary button6.47:1AA
Muted text6.69:1AA
Accent13.41:1AAA
Destructive7.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 187.694);
  --foreground: oklch(0.125 0.014 187.23);
  --muted: oklch(0.887 0.041 321.72);
  --muted-foreground: oklch(0.458 0.021 321.717);
  --popover: oklch(0.994 0.002 187.694);
  --popover-foreground: oklch(0.125 0.014 187.23);
  --card: oklch(0.988 0.004 187.637);
  --card-foreground: oklch(0.099 0.011 187.23);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.877 0.132 182.756);
  --primary-foreground: oklch(0.188 0.03 183.741);
  --secondary: oklch(0.694 0.242 322.105);
  --secondary-foreground: oklch(0.145 0.058 322.952);
  --accent: oklch(0.893 0.152 100.542);
  --accent-foreground: oklch(0.193 0.036 101.85);
  --destructive: oklch(0.538 0.179 36.927);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.877 0.132 182.756);
  --chart-1: oklch(0.877 0.132 182.756);
  --chart-2: oklch(0.694 0.242 322.105);
  --chart-3: oklch(0.893 0.152 100.542);
  --chart-4: oklch(0.714 0.225 322.139);
  --chart-5: oklch(0.883 0.135 182.604);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.007 187.416);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.237 0.055 322.105);
  --muted-foreground: oklch(0.718 0.019 321.664);
  --popover: oklch(0.096 0.007 187.416);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.008 187.416);
  --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.877 0.132 182.756);
  --primary-foreground: oklch(0.188 0.03 183.741);
  --secondary: oklch(0.694 0.242 322.105);
  --secondary-foreground: oklch(0.145 0.058 322.952);
  --accent: oklch(0.893 0.152 100.542);
  --accent-foreground: oklch(0.193 0.036 101.85);
  --destructive: oklch(0.694 0.195 39.889);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.877 0.132 182.756);
  --chart-1: oklch(0.877 0.132 182.756);
  --chart-2: oklch(0.694 0.242 322.105);
  --chart-3: oklch(0.893 0.152 100.542);
  --chart-4: oklch(0.714 0.225 322.139);
  --chart-5: oklch(0.883 0.135 182.604);
}