Bit for shadcn/ui

Bit is a shadcn/ui theme built around a muted yellow primary color (#63624b) with muted indigo accents (#4b4b63). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the muted yellow primary (#63624b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcf8snow
#000000black
Foreground
#050401black
#fdfdfbsnow
Card
#fcfcf8snow
#000000black
Card foreground
#050401black
#fdfdfbsnow
Popover
#fcfcf8snow
#000000black
Popover foreground
#050401black
#fdfdfbsnow
Primary
#63624bdimgray
#63624bdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4b4b63darkslategray
#4b4b63darkslategray
Secondary foreground
#eeeef2whitesmoke
#eeeef2whitesmoke
Muted
#e3e3edlavender
#12121cblack
Muted foreground
#53535fdimgray
#a0a0acdarkgray
Accent
#4b4b63darkslategray
#4b4b63darkslategray
Accent foreground
#eeeef2whitesmoke
#eeeef2whitesmoke
Destructive
#83380csaddlebrown
#e56115chocolate
Destructive foreground
#fadac7bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#63624bdimgray
#63624bdimgray

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button6.19:1AA
Secondary button7.31:1AAA
Muted text5.95:1AA
Accent7.31:1AAA
Destructive6.30:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button6.19:1AA
Secondary button7.31:1AAA
Muted text7.18:1AAA
Accent7.31:1AAA
Destructive6.05:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 105.695);
  --foreground: oklch(0.108 0.019 108.673);
  --muted: oklch(0.919 0.013 285.354);
  --muted-foreground: oklch(0.447 0.02 284.792);
  --popover: oklch(0.989 0.004 105.695);
  --popover-foreground: oklch(0.108 0.019 108.673);
  --card: oklch(0.989 0.004 105.695);
  --card-foreground: oklch(0.108 0.019 108.673);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.491 0.036 106.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.039 283.814);
  --secondary-foreground: oklch(0.949 0.006 285.511);
  --accent: oklch(0.422 0.039 283.814);
  --accent-foreground: oklch(0.949 0.006 285.511);
  --destructive: oklch(0.435 0.116 45.351);
  --destructive-foreground: oklch(0.909 0.044 51.962);
  --ring: oklch(0.491 0.036 106.855);
  --chart-1: oklch(0.491 0.036 106.855);
  --chart-2: oklch(0.422 0.039 283.814);
  --chart-3: oklch(0.422 0.039 283.814);
  --chart-4: oklch(0.447 0.042 283.79);
  --chart-5: oklch(0.499 0.043 107.06);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.995 0.003 105.663);
  --muted: oklch(0.187 0.02 283.524);
  --muted-foreground: oklch(0.709 0.018 285.161);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.995 0.003 105.663);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.995 0.003 105.663);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.491 0.036 106.855);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.039 283.814);
  --secondary-foreground: oklch(0.949 0.006 285.511);
  --accent: oklch(0.422 0.039 283.814);
  --accent-foreground: oklch(0.949 0.006 285.511);
  --destructive: oklch(0.65 0.181 44.269);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.491 0.036 106.855);
  --chart-1: oklch(0.491 0.036 106.855);
  --chart-2: oklch(0.422 0.039 283.814);
  --chart-3: oklch(0.422 0.039 283.814);
  --chart-4: oklch(0.447 0.042 283.79);
  --chart-5: oklch(0.499 0.043 107.06);
}