Attached for shadcn/ui

Attached is a shadcn/ui theme built around a muted light blue primary color (#f3f4f7) with muted light yellow accents (#f7f6f3). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#f3f4f7) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030407black
Foreground
#03050cblack
#ffffffwhite
Card
#fbfcfewhite
#030407black
Card foreground
#03050cblack
#ffffffwhite
Popover
#fbfcfewhite
#030407black
Popover foreground
#03050cblack
#ffffffwhite
Primary
#f3f4f7whitesmoke
#f3f4f7whitesmoke
Primary foreground
#49516edarkslateblue
#49516edarkslateblue
Secondary
#f7f6f3whitesmoke
#f7f6f3whitesmoke
Secondary foreground
#312e21darkslategray
#312e21darkslategray
Muted
#f0efeblinen
#14130fblack
Muted foreground
#484847darkslategray
#b8b8b7silver
Accent
#f7f6f3whitesmoke
#f7f6f3whitesmoke
Accent foreground
#312e21darkslategray
#312e21darkslategray
Destructive
#ce3309firebrick
#f7643btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3f4f7whitesmoke
#f3f4f7whitesmoke

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button7.08:1AAA
Secondary button12.58:1AAA
Muted text7.93:1AAA
Accent12.58:1AAA
Destructive5.12:1AA
Dark mode
Text on background20.53:1AAA
Text on card20.53:1AAA
Primary button7.08:1AAA
Secondary button12.58:1AAA
Muted text9.33:1AAA
Accent12.58:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 274.997);
  --foreground: oklch(0.116 0.02 267.85);
  --muted: oklch(0.951 0.005 95.101);
  --muted-foreground: oklch(0.401 0.002 95.091);
  --popover: oklch(0.99 0.003 274.997);
  --popover-foreground: oklch(0.116 0.02 267.85);
  --card: oklch(0.99 0.003 274.997);
  --card-foreground: oklch(0.116 0.02 267.85);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.966 0.004 274.978);
  --primary-foreground: oklch(0.44 0.049 273.37);
  --secondary: oklch(0.973 0.004 95.087);
  --secondary-foreground: oklch(0.299 0.023 95.712);
  --accent: oklch(0.973 0.004 95.087);
  --accent-foreground: oklch(0.299 0.023 95.712);
  --destructive: oklch(0.559 0.196 34.1);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.966 0.004 274.978);
  --chart-1: oklch(0.966 0.004 274.978);
  --chart-2: oklch(0.973 0.004 95.087);
  --chart-3: oklch(0.973 0.004 95.087);
  --chart-4: oklch(0.993 0.001 95.047);
  --chart-5: oklch(0.966 0.005 274.97);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.013 269.635);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.008 95.479);
  --muted-foreground: oklch(0.783 0.002 95.059);
  --popover: oklch(0.105 0.013 269.635);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.105 0.013 269.635);
  --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.966 0.004 274.978);
  --primary-foreground: oklch(0.44 0.049 273.37);
  --secondary: oklch(0.973 0.004 95.087);
  --secondary-foreground: oklch(0.299 0.023 95.712);
  --accent: oklch(0.973 0.004 95.087);
  --accent-foreground: oklch(0.299 0.023 95.712);
  --destructive: oklch(0.684 0.189 36.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.966 0.004 274.978);
  --chart-1: oklch(0.966 0.004 274.978);
  --chart-2: oklch(0.973 0.004 95.087);
  --chart-3: oklch(0.973 0.004 95.087);
  --chart-4: oklch(0.993 0.001 95.047);
  --chart-5: oklch(0.966 0.005 274.97);
}