Cup for shadcn/ui

Cup is a shadcn/ui theme built around a muted light cyan primary color (#bdd8db) with neutral gray accents (#c9cecf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light cyan primary (#bdd8db) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#ffffffwhite
#030707black
Foreground
#010404black
#fcfdfdwhite
Card
#ffffffwhite
#030707black
Card foreground
#010404black
#fcfdfdwhite
Popover
#ffffffwhite
#030707black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#bdd8dbpowderblue
#bdd8dbpowderblue
Primary foreground
#243f42darkslategray
#243f42darkslategray
Secondary
#c9cecflightgrey
#1f2223black
Secondary foreground
#303536darkslategray
#b7bdbesilver
Muted
#d4dcddgainsboro
#222a2bdarkslategray
Muted foreground
#495d5fdarkslategray
#a0b4b6darkgray
Accent
#c9cecflightgrey
#1f2223black
Accent foreground
#303536darkslategray
#b7bdbesilver
Destructive
#8a1000darkred
#ff2205red
Destructive foreground
#ffc4bdlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdd8dbpowderblue
#bdd8dbpowderblue

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button7.50:1AAA
Secondary button7.85:1AAA
Muted text5.02:1AA
Accent7.85:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button7.50:1AAA
Secondary button8.37:1AAA
Muted text6.77:1AA
Accent8.37:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.011 202.102);
  --muted: oklch(0.89 0.009 204.914);
  --muted-foreground: oklch(0.463 0.024 204.706);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.011 202.102);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.098 0.011 202.102);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.863 0.029 204.777);
  --primary-foreground: oklch(0.347 0.033 204.753);
  --secondary: oklch(0.849 0.006 204.935);
  --secondary-foreground: oklch(0.326 0.008 204.828);
  --accent: oklch(0.849 0.006 204.935);
  --accent-foreground: oklch(0.326 0.008 204.828);
  --destructive: oklch(0.404 0.156 31.322);
  --destructive-foreground: oklch(0.872 0.068 27.161);
  --ring: oklch(0.863 0.029 204.777);
  --chart-1: oklch(0.863 0.029 204.777);
  --chart-2: oklch(0.849 0.006 204.935);
  --chart-3: oklch(0.849 0.006 204.935);
  --chart-4: oklch(0.872 0.005 204.945);
  --chart-5: oklch(0.865 0.032 204.762);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.011 202.701);
  --foreground: oklch(0.993 0.001 204.981);
  --muted: oklch(0.277 0.012 204.738);
  --muted-foreground: oklch(0.754 0.022 204.797);
  --popover: oklch(0.122 0.011 202.701);
  --popover-foreground: oklch(0.993 0.001 204.981);
  --card: oklch(0.122 0.011 202.701);
  --card-foreground: oklch(0.993 0.001 204.981);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.863 0.029 204.777);
  --primary-foreground: oklch(0.347 0.033 204.753);
  --secondary: oklch(0.251 0.004 204.863);
  --secondary-foreground: oklch(0.793 0.007 204.924);
  --accent: oklch(0.251 0.004 204.863);
  --accent-foreground: oklch(0.793 0.007 204.924);
  --destructive: oklch(0.637 0.249 30.591);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.029 204.777);
  --chart-1: oklch(0.863 0.029 204.777);
  --chart-2: oklch(0.251 0.004 204.863);
  --chart-3: oklch(0.251 0.004 204.863);
  --chart-4: oklch(0.283 0.005 204.857);
  --chart-5: oklch(0.865 0.032 204.762);
}