Temp for shadcn/ui

Temp is a shadcn/ui theme built around a near-black primary color (#020203) with muted violet accents (#b0a6c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020203) on a violet-tinted background (#09070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#09070eblack
Foreground
#040208black
#f9f9fbghostwhite
Card
#fcfcfcsnow
#0b0811black
Card foreground
#020104black
#fcfcfdwhite
Popover
#fcfcfcsnow
#0b0811black
Popover foreground
#020104black
#fcfcfdwhite
Primary
#020203black
#020203black
Primary foreground
#c8c0ddthistle
#c8c0ddthistle
Secondary
#c8c3d5thistle
#2a282edarkslategray
Secondary foreground
#2f2a3cdarkslategray
#c3c0c8silver
Muted
#e8e6eflavender
#121019black
Muted foreground
#595463dimgray
#a09cabdarkgray
Accent
#b0a6c9silver
#393546darkslategray
Accent foreground
#1b1726black
#d4d0dclightgrey
Destructive
#841d06maroon
#f4360borangered
Destructive foreground
#fccbc0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020203black
#020203black

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.37:1AAA
Primary button11.89:1AAA
Secondary button8.07:1AAA
Muted text5.91:1AA
Accent7.66:1AAA
Destructive6.70:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.36:1AAA
Primary button11.89:1AAA
Secondary button8.08:1AAA
Muted text7.05:1AAA
Accent7.83:1AAA
Destructive3.91:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.025 299.358);
  --muted: oklch(0.929 0.013 299.056);
  --muted-foreground: oklch(0.457 0.024 298.393);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.076 0.02 299.358);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.076 0.02 299.358);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.085 0.009 299.324);
  --primary-foreground: oklch(0.824 0.041 298.442);
  --secondary: oklch(0.827 0.025 298.795);
  --secondary-foreground: oklch(0.299 0.032 297.452);
  --accent: oklch(0.746 0.05 298.149);
  --accent-foreground: oklch(0.218 0.029 296.951);
  --destructive: oklch(0.403 0.141 33.378);
  --destructive-foreground: oklch(0.881 0.058 32.832);
  --ring: oklch(0.085 0.009 299.324);
  --chart-1: oklch(0.085 0.009 299.324);
  --chart-2: oklch(0.827 0.025 298.795);
  --chart-3: oklch(0.746 0.05 298.149);
  --chart-4: oklch(0.854 0.021 298.888);
  --chart-5: oklch(0.084 0.01 299.327);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.017 298.519);
  --foreground: oklch(0.982 0.003 299.246);
  --muted: oklch(0.179 0.02 297.313);
  --muted-foreground: oklch(0.7 0.022 298.773);
  --popover: oklch(0.144 0.02 297.195);
  --popover-foreground: oklch(0.991 0.002 299.276);
  --card: oklch(0.144 0.02 297.195);
  --card-foreground: oklch(0.991 0.002 299.276);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.085 0.009 299.324);
  --primary-foreground: oklch(0.824 0.041 298.442);
  --secondary: oklch(0.282 0.011 298.62);
  --secondary-foreground: oklch(0.813 0.012 299.058);
  --accent: oklch(0.34 0.03 297.75);
  --accent-foreground: oklch(0.865 0.016 298.987);
  --destructive: oklch(0.629 0.229 32.742);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.085 0.009 299.324);
  --chart-1: oklch(0.085 0.009 299.324);
  --chart-2: oklch(0.282 0.011 298.62);
  --chart-3: oklch(0.34 0.03 297.75);
  --chart-4: oklch(0.312 0.013 298.592);
  --chart-5: oklch(0.084 0.01 299.327);
}