Visit for shadcn/ui

Visit is a shadcn/ui theme built around a muted light red primary color (#e7dcda) with muted light indigo accents (#dcdae7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the muted light red primary (#e7dcda) on a neutral background (#080302).

Color palette

TokenLightDark
Background
#fefbfbsnow
#080302black
Foreground
#100504black
#f9f6f6whitesmoke
Card
#fdf7f7snow
#0c0403black
Card foreground
#0c0403black
#fbf9f9snow
Popover
#fefbfbsnow
#080302black
Popover foreground
#100504black
#f9f6f6whitesmoke
Primary
#e7dcdagainsboro
#e7dcdagainsboro
Primary foreground
#563c39darkolivegreen
#563c39darkolivegreen
Secondary
#dae7dcgainsboro
#dae7dcgainsboro
Secondary foreground
#39563cdarkslategray
#39563cdarkslategray
Muted
#ddeedfgainsboro
#112213black
Muted foreground
#475749darkslategray
#a8b8aadarkgray
Accent
#dcdae7gainsboro
#dcdae7gainsboro
Accent foreground
#3c3956darkslategray
#3c3956darkslategray
Destructive
#ac2b11firebrick
#ea4a2achocolate
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7dcdagainsboro
#e7dcdagainsboro

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.20:1AAA
Primary button7.41:1AAA
Secondary button6.37:1AA
Muted text6.37:1AA
Accent7.96:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.34:1AAA
Primary button7.41:1AAA
Secondary button6.37:1AA
Muted text7.99:1AAA
Accent7.96:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 25.015);
  --foreground: oklch(0.136 0.022 29.746);
  --muted: oklch(0.932 0.028 148.257);
  --muted-foreground: oklch(0.439 0.03 147.79);
  --popover: oklch(0.991 0.003 25.015);
  --popover-foreground: oklch(0.136 0.022 29.746);
  --card: oklch(0.981 0.006 25.042);
  --card-foreground: oklch(0.123 0.019 30.236);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.901 0.012 25.105);
  --primary-foreground: oklch(0.384 0.037 26.06);
  --secondary: oklch(0.914 0.02 148.351);
  --secondary-foreground: oklch(0.421 0.054 147.025);
  --accent: oklch(0.894 0.017 290.661);
  --accent-foreground: oklch(0.361 0.049 288.266);
  --destructive: oklch(0.491 0.169 32.872);
  --destructive-foreground: oklch(0.972 0.012 31.067);
  --ring: oklch(0.901 0.012 25.105);
  --chart-1: oklch(0.901 0.012 25.105);
  --chart-2: oklch(0.914 0.02 148.351);
  --chart-3: oklch(0.894 0.017 290.661);
  --chart-4: oklch(0.936 0.015 148.417);
  --chart-5: oklch(0.9 0.014 25.123);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.016 30.47);
  --foreground: oklch(0.976 0.003 25.013);
  --muted: oklch(0.232 0.038 146.556);
  --muted-foreground: oklch(0.766 0.027 148.2);
  --popover: oklch(0.107 0.016 30.47);
  --popover-foreground: oklch(0.976 0.003 25.013);
  --card: oklch(0.122 0.019 30.37);
  --card-foreground: oklch(0.984 0.002 25.005);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.901 0.012 25.105);
  --primary-foreground: oklch(0.384 0.037 26.06);
  --secondary: oklch(0.914 0.02 148.351);
  --secondary-foreground: oklch(0.421 0.054 147.025);
  --accent: oklch(0.894 0.017 290.661);
  --accent-foreground: oklch(0.361 0.049 288.266);
  --destructive: oklch(0.631 0.202 33.155);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.901 0.012 25.105);
  --chart-1: oklch(0.901 0.012 25.105);
  --chart-2: oklch(0.914 0.02 148.351);
  --chart-3: oklch(0.894 0.017 290.661);
  --chart-4: oklch(0.936 0.015 148.417);
  --chart-5: oklch(0.9 0.014 25.123);
}