Bite-sized for shadcn/ui

Bite-sized is a shadcn/ui theme built around a violet primary color (#a625d4) with muted violet accents (#c4b4ca). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a625d4) on a neutral background (#060307).

Color palette

TokenLightDark
Background
#fdfbfewhite
#060307black
Foreground
#070209black
#faf9fasnow
Card
#fdfbfewhite
#060307black
Card foreground
#070209black
#faf9fasnow
Popover
#fdfbfewhite
#060307black
Popover foreground
#070209black
#faf9fasnow
Primary
#a625d4darkorchid
#a625d4darkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d8d3d9lightgrey
#342a37darkslategray
Secondary foreground
#3f3842darkslategray
#cdc2d1thistle
Muted
#e9e6ealavender
#181519black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#c4b4casilver
#4c3654darkslategray
Accent foreground
#29202ddarkslategray
#e1d7e5gainsboro
Destructive
#933506saddlebrown
#f66923chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a625d4darkorchid
#a625d4darkorchid

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button5.46:1AA
Secondary button7.66:1AAA
Muted text4.86:1AA
Accent8.04:1AAA
Destructive7.63:1AAA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button5.46:1AA
Secondary button8.01:1AAA
Muted text6.58:1AA
Accent7.69:1AAA
Destructive6.95:1AA

CSS variables

Paste this into your globals.css to use Bite-sized in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 317.178);
  --foreground: oklch(0.102 0.03 319.664);
  --muted: oklch(0.929 0.005 317.177);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.99 0.005 317.178);
  --popover-foreground: oklch(0.102 0.03 319.664);
  --card: oklch(0.99 0.005 317.178);
  --card-foreground: oklch(0.102 0.03 319.664);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.555 0.249 314.411);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.872 0.01 317.162);
  --secondary-foreground: oklch(0.353 0.019 317.065);
  --accent: oklch(0.791 0.035 317.089);
  --accent-foreground: oklch(0.259 0.027 316.943);
  --destructive: oklch(0.458 0.136 41.219);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.249 314.411);
  --chart-1: oklch(0.555 0.249 314.411);
  --chart-2: oklch(0.872 0.01 317.162);
  --chart-3: oklch(0.791 0.035 317.089);
  --chart-4: oklch(0.897 0.008 317.168);
  --chart-5: oklch(0.558 0.256 314.181);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.015 318.387);
  --foreground: oklch(0.984 0.002 317.186);
  --muted: oklch(0.201 0.007 317.107);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.109 0.015 318.387);
  --popover-foreground: oklch(0.984 0.002 317.186);
  --card: oklch(0.109 0.015 318.387);
  --card-foreground: oklch(0.984 0.002 317.186);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.555 0.249 314.411);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.3 0.028 316.977);
  --secondary-foreground: oklch(0.827 0.024 317.124);
  --accent: oklch(0.369 0.058 316.803);
  --accent-foreground: oklch(0.891 0.023 317.131);
  --destructive: oklch(0.687 0.189 42.876);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.555 0.249 314.411);
  --chart-1: oklch(0.555 0.249 314.411);
  --chart-2: oklch(0.3 0.028 316.977);
  --chart-3: oklch(0.369 0.058 316.803);
  --chart-4: oklch(0.329 0.031 316.97);
  --chart-5: oklch(0.558 0.256 314.181);
}