Advanced for shadcn/ui

Advanced is a shadcn/ui theme built around a vivid blue primary color (#52a0fe) with vivid green accents (#a0fe52). The light mode uses a neutral background (#f7fafc). Dark mode keeps the vivid blue primary (#52a0fe) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#f7fafcghostwhite
#030507black
Foreground
#000000black
#fcfcfdwhite
Card
#f7fafcghostwhite
#030507black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f7fafcghostwhite
#030507black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#52a0fecornflowerblue
#52a0fecornflowerblue
Primary foreground
#000e1eblack
#000e1eblack
Secondary
#fe52a0hotpink
#fe52a0hotpink
Secondary foreground
#1e000eblack
#1e000eblack
Muted
#e9cddagainsboro
#321622black
Muted foreground
#5a4951dimgray
#b6a5addarkgray
Accent
#a0fe52greenyellow
#a0fe52greenyellow
Accent foreground
#0e1e00black
#0e1e00black
Destructive
#bd2d05firebrick
#e03506orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#52a0fecornflowerblue
#52a0fecornflowerblue

Contrast

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

Light mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.21:1AAA
Secondary button6.54:1AA
Muted text5.68:1AA
Accent13.95:1AAA
Destructive5.93:1AA
Dark mode
Text on background19.92:1AAA
Text on card19.92:1AAA
Primary button7.21:1AAA
Secondary button6.54:1AA
Muted text7.06:1AAA
Accent13.95:1AAA
Destructive4.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 253.25);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.876 0.035 348.88);
  --muted-foreground: oklch(0.426 0.025 349.34);
  --popover: oklch(0.983 0.004 253.25);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.004 253.25);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.699 0.159 254.786);
  --primary-foreground: oklch(0.159 0.043 248.735);
  --secondary: oklch(0.696 0.217 356.71);
  --secondary-foreground: oklch(0.155 0.063 354.548);
  --accent: oklch(0.906 0.221 133.886);
  --accent-foreground: oklch(0.214 0.059 132.511);
  --destructive: oklch(0.524 0.186 33.982);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.159 254.786);
  --chart-1: oklch(0.699 0.159 254.786);
  --chart-2: oklch(0.696 0.217 356.71);
  --chart-3: oklch(0.906 0.221 133.886);
  --chart-4: oklch(0.715 0.201 355.494);
  --chart-5: oklch(0.699 0.163 254.873);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.011 246.454);
  --foreground: oklch(0.992 0.001 253.224);
  --muted: oklch(0.244 0.048 352.911);
  --muted-foreground: oklch(0.739 0.021 348.591);
  --popover: oklch(0.111 0.011 246.454);
  --popover-foreground: oklch(0.992 0.001 253.224);
  --card: oklch(0.111 0.011 246.454);
  --card-foreground: oklch(0.992 0.001 253.224);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.699 0.159 254.786);
  --primary-foreground: oklch(0.159 0.043 248.735);
  --secondary: oklch(0.696 0.217 356.71);
  --secondary-foreground: oklch(0.155 0.063 354.548);
  --accent: oklch(0.906 0.221 133.886);
  --accent-foreground: oklch(0.214 0.059 132.511);
  --destructive: oklch(0.593 0.212 33.74);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.699 0.159 254.786);
  --chart-1: oklch(0.699 0.159 254.786);
  --chart-2: oklch(0.696 0.217 356.71);
  --chart-3: oklch(0.906 0.221 133.886);
  --chart-4: oklch(0.715 0.201 355.494);
  --chart-5: oklch(0.699 0.163 254.873);
}