Bit for shadcn/ui

Bit is a shadcn/ui theme built around a vivid red primary color (#c00225) with vivid teal accents (#02c09d). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the vivid red primary (#c00225) on a red-tinted background (#0b0406).

Color palette

TokenLightDark
Background
#fdf7f8snow
#0b0406black
Foreground
#140608black
#ffffffwhite
Card
#fcf2f4lavenderblush
#0f0607black
Card foreground
#100407black
#ffffffwhite
Popover
#fdf7f8snow
#0b0406black
Popover foreground
#140608black
#ffffffwhite
Primary
#c00225firebrick
#c00225firebrick
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#02c09dlightseagreen
#02c09dlightseagreen
Secondary foreground
#000000black
#000000black
Muted
#d9e8e5gainsboro
#172623black
Muted foreground
#404040darkslategray
#bfbfbfsilver
Accent
#02c09dlightseagreen
#02c09dlightseagreen
Accent foreground
#000000black
#000000black
Destructive
#630e03maroon
#f93d24orangered
Destructive foreground
#fca79clightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c00225firebrick
#c00225firebrick

Contrast

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

Light mode
Text on background18.68:1AAA
Text on card18.42:1AAA
Primary button6.41:1AA
Secondary button9.01:1AAA
Muted text8.19:1AAA
Accent9.01:1AAA
Destructive6.97:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.03:1AAA
Primary button6.41:1AA
Secondary button9.01:1AAA
Muted text8.53:1AAA
Accent9.01:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 4.508);
  --foreground: oklch(0.146 0.028 7.317);
  --muted: oklch(0.918 0.016 183.84);
  --muted-foreground: oklch(0.371 0 168.69);
  --popover: oklch(0.98 0.007 4.508);
  --popover-foreground: oklch(0.146 0.028 7.317);
  --card: oklch(0.971 0.011 4.61);
  --card-foreground: oklch(0.133 0.024 5.951);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.51 0.205 23.466);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.72 0.137 173.421);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.137 173.421);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.325 0.12 31.654);
  --destructive-foreground: oklch(0.809 0.103 27.798);
  --ring: oklch(0.51 0.205 23.466);
  --chart-1: oklch(0.51 0.205 23.466);
  --chart-2: oklch(0.72 0.137 173.421);
  --chart-3: oklch(0.72 0.137 173.421);
  --chart-4: oklch(0.762 0.146 173.331);
  --chart-5: oklch(0.515 0.208 23.934);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.015 4.649);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.254 0.021 181.913);
  --muted-foreground: oklch(0.805 0 169.695);
  --popover: oklch(0.123 0.015 4.649);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.018 5.528);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.51 0.205 23.466);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.72 0.137 173.421);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.72 0.137 173.421);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.645 0.227 31.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.51 0.205 23.466);
  --chart-1: oklch(0.51 0.205 23.466);
  --chart-2: oklch(0.72 0.137 173.421);
  --chart-3: oklch(0.72 0.137 173.421);
  --chart-4: oklch(0.762 0.146 173.331);
  --chart-5: oklch(0.515 0.208 23.934);
}