33333 for shadcn/ui

33333 is a shadcn/ui theme built around a deep blue primary color (#173a6e) with muted light blue accents (#dbdfe6). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#173a6e) on a blue-tinted background (#05070b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05070bblack
Foreground
#060b13black
#fcfcfdwhite
Card
#fcfcfcsnow
#06090eblack
Card foreground
#050910black
#ffffffwhite
Popover
#ffffffwhite
#05070bblack
Popover foreground
#060b13black
#fcfcfdwhite
Primary
#173a6emidnightblue
#173a6emidnightblue
Primary foreground
#c4d7f3powderblue
#c4d7f3powderblue
Secondary
#dbdfe6gainsboro
#262c36darkslategray
Secondary foreground
#3b4554darkslategray
#bdc5d0silver
Muted
#dadfe7gainsboro
#181d25black
Muted foreground
#58595adimgray
#a5a6a7darkgray
Accent
#dbdfe6gainsboro
#262c36darkslategray
Accent foreground
#3b4554darkslategray
#bdc5d0silver
Destructive
#9f3909saddlebrown
#e3510dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8eaedlavender
#21252bdarkslategray
Input
#e8eaedlavender
#21252bdarkslategray
Ring
#173a6emidnightblue
#173a6emidnightblue

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.51:1AAA
Primary button7.73:1AAA
Secondary button7.27:1AAA
Muted text5.24:1AA
Accent7.27:1AAA
Destructive6.86:1AA
Dark mode
Text on background19.67:1AAA
Text on card19.90:1AAA
Primary button7.73:1AAA
Secondary button8.03:1AAA
Muted text6.92:1AA
Accent8.03:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.15 0.02 256.196);
  --muted: oklch(0.902 0.012 258.344);
  --muted-foreground: oklch(0.464 0.002 258.324);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.15 0.02 256.196);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.138 0.017 253.53);
  --border: oklch(0.937 0.005 258.326);
  --input: oklch(0.937 0.005 258.326);
  --primary: oklch(0.352 0.1 258.577);
  --primary-foreground: oklch(0.873 0.044 258.372);
  --secondary: oklch(0.903 0.01 258.338);
  --secondary-foreground: oklch(0.387 0.028 258.363);
  --accent: oklch(0.903 0.01 258.338);
  --accent-foreground: oklch(0.387 0.028 258.363);
  --destructive: oklch(0.484 0.146 40.28);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.1 258.577);
  --chart-1: oklch(0.352 0.1 258.577);
  --chart-2: oklch(0.903 0.01 258.338);
  --chart-3: oklch(0.903 0.01 258.338);
  --chart-4: oklch(0.928 0.007 258.332);
  --chart-5: oklch(0.352 0.104 258.664);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.011 252.722);
  --foreground: oklch(0.992 0.001 258.315);
  --muted: oklch(0.23 0.018 258.36);
  --muted-foreground: oklch(0.724 0.002 258.319);
  --popover: oklch(0.127 0.011 252.722);
  --popover-foreground: oklch(0.992 0.001 258.315);
  --card: oklch(0.14 0.013 254.88);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.264 0.013 258.372);
  --input: oklch(0.264 0.013 258.372);
  --primary: oklch(0.352 0.1 258.577);
  --primary-foreground: oklch(0.873 0.044 258.372);
  --secondary: oklch(0.292 0.019 258.367);
  --secondary-foreground: oklch(0.821 0.018 258.357);
  --accent: oklch(0.292 0.019 258.367);
  --accent-foreground: oklch(0.821 0.018 258.357);
  --destructive: oklch(0.625 0.193 39.653);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.1 258.577);
  --chart-1: oklch(0.352 0.1 258.577);
  --chart-2: oklch(0.292 0.019 258.367);
  --chart-3: oklch(0.292 0.019 258.367);
  --chart-4: oklch(0.322 0.022 258.366);
  --chart-5: oklch(0.352 0.104 258.664);
}