Determined for shadcn/ui

Determined is a shadcn/ui theme built around a blue primary color (#3671b5) with indigo accents (#3a36b5). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3671b5) on a blue-tinted background (#060a0f).

Color palette

TokenLightDark
Background
#ffffffwhite
#060a0fblack
Foreground
#020509black
#f5f7fawhitesmoke
Card
#fcfcfcsnow
#070c12black
Card foreground
#010204black
#f8fafcghostwhite
Popover
#ffffffwhite
#060a0fblack
Popover foreground
#020509black
#f5f7fawhitesmoke
Primary
#3671b5steelblue
#3671b5steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#36b0b5lightseagreen
#36b0b5lightseagreen
Secondary foreground
#071718black
#071718black
Muted
#dde3e3gainsboro
#1c2122black
Muted foreground
#435151darkslategray
#aebcbcsilver
Accent
#3a36b5darkslateblue
#3a36b5darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#810e0emaroon
#e82626crimson
Destructive foreground
#f9c8c8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3671b5steelblue
#3671b5steelblue

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card20.30:1AAA
Primary button5.01:1AA
Secondary button7.04:1AAA
Muted text6.39:1AA
Accent8.85:1AAA
Destructive7.04:1AAA
Dark mode
Text on background18.51:1AAA
Text on card18.71:1AAA
Primary button5.01:1AA
Secondary button7.04:1AAA
Muted text8.28:1AAA
Accent8.85:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.11 0.015 241.691);
  --muted: oklch(0.912 0.006 199.51);
  --muted-foreground: oklch(0.422 0.018 199.063);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.11 0.015 241.691);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.087 0.012 241.691);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.543 0.123 253.569);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.695 0.104 198.421);
  --secondary-foreground: oklch(0.191 0.022 198.367);
  --accent: oklch(0.427 0.192 275.959);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.387 0.148 27.822);
  --destructive-foreground: oklch(0.875 0.057 18.29);
  --ring: oklch(0.543 0.123 253.569);
  --chart-1: oklch(0.543 0.123 253.569);
  --chart-2: oklch(0.695 0.104 198.421);
  --chart-3: oklch(0.427 0.192 275.959);
  --chart-4: oklch(0.728 0.11 198.424);
  --chart-5: oklch(0.543 0.129 253.776);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.014 248.082);
  --foreground: oklch(0.976 0.005 251.491);
  --muted: oklch(0.244 0.009 199.149);
  --muted-foreground: oklch(0.784 0.016 199.337);
  --popover: oklch(0.141 0.014 248.082);
  --popover-foreground: oklch(0.976 0.005 251.491);
  --card: oklch(0.153 0.016 250.812);
  --card-foreground: oklch(0.984 0.003 251.477);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.543 0.123 253.569);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.695 0.104 198.421);
  --secondary-foreground: oklch(0.191 0.022 198.367);
  --accent: oklch(0.427 0.192 275.959);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.599 0.226 27.511);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.543 0.123 253.569);
  --chart-1: oklch(0.543 0.123 253.569);
  --chart-2: oklch(0.695 0.104 198.421);
  --chart-3: oklch(0.427 0.192 275.959);
  --chart-4: oklch(0.728 0.11 198.424);
  --chart-5: oklch(0.543 0.129 253.776);
}