Online for shadcn/ui

Online is a shadcn/ui theme built around a vivid teal primary color (#8ef0e7) with vivid yellow accents (#f0e78e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#8ef0e7) on a neutral background (#030807).

Color palette

TokenLightDark
Background
#ffffffwhite
#030807black
Foreground
#030807black
#f6f9f9whitesmoke
Card
#fcfcfcsnow
#040b0bblack
Card foreground
#010404black
#f9fbfbghostwhite
Popover
#fcfcfcsnow
#040b0bblack
Popover foreground
#010404black
#f9fbfbghostwhite
Primary
#8ef0e7aquamarine
#8ef0e7aquamarine
Primary foreground
#09443edarkslategray
#09443edarkslategray
Secondary
#e78ef0violet
#e78ef0violet
Secondary foreground
#3e0944midnightblue
#3e0944midnightblue
Muted
#eee0f0lavender
#1d0f1fblack
Muted foreground
#665568dimgray
#a897aadarkgray
Accent
#f0e78ekhaki
#f0e78ekhaki
Accent foreground
#443e09darkolivegreen
#443e09darkolivegreen
Destructive
#cd4213chocolate
#eb5d2dchocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ef0e7aquamarine
#8ef0e7aquamarine

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.13:1AAA
Primary button8.28:1AAA
Secondary button7.17:1AAA
Muted text5.40:1AA
Accent8.50:1AAA
Destructive4.78:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.09:1AAA
Primary button8.28:1AAA
Secondary button7.17:1AAA
Muted text6.72:1AA
Accent8.50:1AAA
Destructive6.13:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.012 189.384);
  --muted: oklch(0.923 0.026 322.741);
  --muted-foreground: oklch(0.473 0.037 322.927);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.098 0.01 189.384);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.01 189.384);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.893 0.094 187.415);
  --primary-foreground: oklch(0.349 0.057 184.638);
  --secondary: oklch(0.772 0.164 323.362);
  --secondary-foreground: oklch(0.268 0.111 323.493);
  --accent: oklch(0.915 0.11 102.812);
  --accent-foreground: oklch(0.358 0.069 102.689);
  --destructive: oklch(0.573 0.184 36.622);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.893 0.094 187.415);
  --chart-1: oklch(0.893 0.094 187.415);
  --chart-2: oklch(0.772 0.164 323.362);
  --chart-3: oklch(0.915 0.11 102.812);
  --chart-4: oklch(0.797 0.144 323.275);
  --chart-5: oklch(0.897 0.097 187.326);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.012 189.406);
  --foreground: oklch(0.98 0.004 189.99);
  --muted: oklch(0.196 0.038 323.311);
  --muted-foreground: oklch(0.698 0.033 322.815);
  --popover: oklch(0.142 0.014 189.099);
  --popover-foreground: oklch(0.986 0.003 190.019);
  --card: oklch(0.142 0.014 189.099);
  --card-foreground: oklch(0.986 0.003 190.019);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.893 0.094 187.415);
  --primary-foreground: oklch(0.349 0.057 184.638);
  --secondary: oklch(0.772 0.164 323.362);
  --secondary-foreground: oklch(0.268 0.111 323.493);
  --accent: oklch(0.915 0.11 102.812);
  --accent-foreground: oklch(0.358 0.069 102.689);
  --destructive: oklch(0.656 0.187 37.921);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.893 0.094 187.415);
  --chart-1: oklch(0.893 0.094 187.415);
  --chart-2: oklch(0.772 0.164 323.362);
  --chart-3: oklch(0.915 0.11 102.812);
  --chart-4: oklch(0.797 0.144 323.275);
  --chart-5: oklch(0.897 0.097 187.326);
}