Import for shadcn/ui

Import is a shadcn/ui theme built around a near-black primary color (#020105) with near-black accents (#010502). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020105) on a violet-tinted background (#07040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#07040bblack
Foreground
#090311black
#fcfcfdwhite
Card
#ffffffwhite
#07040bblack
Card foreground
#090311black
#fcfcfdwhite
Popover
#ffffffwhite
#07040bblack
Popover foreground
#090311black
#fcfcfdwhite
Primary
#020105black
#020105black
Primary foreground
#c8a8f5plum
#c8a8f5plum
Secondary
#050201black
#050201black
Secondary foreground
#eb8e4ccoral
#eb8e4ccoral
Muted
#ded8d4gainsboro
#2b2521darkslategray
Muted foreground
#63554bdimgray
#b4a69cdarkgray
Accent
#010502black
#010502black
Accent foreground
#15bc5bmediumseagreen
#15bc5bmediumseagreen
Destructive
#8e2b01saddlebrown
#fe692atomato
Destructive foreground
#ffd4c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020105black
#020105black

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button10.30:1AAA
Secondary button8.37:1AAA
Muted text5.06:1AA
Accent8.19:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button10.30:1AAA
Secondary button8.37:1AAA
Muted text6.35:1AA
Accent8.19:1AAA
Destructive7.28:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.035 304.519);
  --muted: oklch(0.885 0.009 58.228);
  --muted-foreground: oklch(0.459 0.025 57.604);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.124 0.035 304.519);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.124 0.035 304.519);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.074 0.026 306.967);
  --primary-foreground: oklch(0.787 0.113 303.017);
  --secondary: oklch(0.093 0.015 70.887);
  --secondary-foreground: oklch(0.733 0.139 54.091);
  --accent: oklch(0.1 0.019 160.92);
  --accent-foreground: oklch(0.697 0.186 150.26);
  --destructive: oklch(0.437 0.141 38.531);
  --destructive-foreground: oklch(0.902 0.054 44.478);
  --ring: oklch(0.074 0.026 306.967);
  --chart-1: oklch(0.074 0.026 306.967);
  --chart-2: oklch(0.093 0.015 70.887);
  --chart-3: oklch(0.1 0.019 160.92);
  --chart-4: oklch(0.15 0.025 66.013);
  --chart-5: oklch(0.073 0.027 307.08);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.021 305.872);
  --foreground: oklch(0.992 0.001 305.034);
  --muted: oklch(0.271 0.012 57.768);
  --muted-foreground: oklch(0.735 0.022 57.948);
  --popover: oklch(0.119 0.021 305.872);
  --popover-foreground: oklch(0.992 0.001 305.034);
  --card: oklch(0.119 0.021 305.872);
  --card-foreground: oklch(0.992 0.001 305.034);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.074 0.026 306.967);
  --primary-foreground: oklch(0.787 0.113 303.017);
  --secondary: oklch(0.093 0.015 70.887);
  --secondary-foreground: oklch(0.733 0.139 54.091);
  --accent: oklch(0.1 0.019 160.92);
  --accent-foreground: oklch(0.697 0.186 150.26);
  --destructive: oklch(0.7 0.195 40.884);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.074 0.026 306.967);
  --chart-1: oklch(0.074 0.026 306.967);
  --chart-2: oklch(0.093 0.015 70.887);
  --chart-3: oklch(0.1 0.019 160.92);
  --chart-4: oklch(0.15 0.025 66.013);
  --chart-5: oklch(0.073 0.027 307.08);
}