chat1 for shadcn/ui

chat1 is a shadcn/ui theme built around a light blue primary color (#c1cbf5) with muted blue accents (#42496c). The light mode uses a blue-tinted background (#25293c). Dark mode keeps the light blue primary (#c1cbf5) on a blue-tinted background (#25293c).

Color palette

TokenLightDark
Background
#25293cdarkslategray
#25293cdarkslategray
Foreground
#c1cbf5lightblue
#c1cbf5lightblue
Card
#212436darkslategray
#212436darkslategray
Card foreground
#d7ddf9lavender
#d7ddf9lavender
Popover
#1f2233darkslategray
#1f2233darkslategray
Popover foreground
#edf0fcaliceblue
#edf0fcaliceblue
Primary
#c1cbf5lightblue
#c1cbf5lightblue
Primary foreground
#122473midnightblue
#122473midnightblue
Secondary
#2d3453darkslategray
#2d3453darkslategray
Secondary foreground
#cdd1e4lightgrey
#cdd1e4lightgrey
Muted
#343642darkslategray
#343642darkslategray
Muted foreground
#b2b5c2silver
#b2b5c2silver
Accent
#42496cdarkslateblue
#42496cdarkslateblue
Accent foreground
#ecedf3lavender
#ecedf3lavender
Destructive
#f05142tomato
#f05142tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#353746darkslategray
#353746darkslategray
Input
#3b3e4edarkslategray
#3b3e4edarkslategray
Ring
#c1cbf5lightblue
#c1cbf5lightblue

Contrast

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

Light mode
Text on background9.01:1AAA
Text on card11.34:1AAA
Primary button8.59:1AAA
Secondary button8.04:1AAA
Muted text5.87:1AA
Accent7.50:1AAA
Destructive3.53:1AA Large
Dark mode
Text on background9.01:1AAA
Text on card11.34:1AAA
Primary button8.59:1AAA
Secondary button8.04:1AAA
Muted text5.87:1AA
Accent7.50:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.285 0.036 275.174);
  --foreground: oklch(0.848 0.06 275.123);
  --muted: oklch(0.335 0.021 276.317);
  --muted-foreground: oklch(0.774 0.02 276.896);
  --popover: oklch(0.258 0.031 275.28);
  --popover-foreground: oklch(0.957 0.017 275.935);
  --card: oklch(0.267 0.033 275.242);
  --card-foreground: oklch(0.903 0.038 275.577);
  --border: oklch(0.342 0.025 276.119);
  --input: oklch(0.369 0.028 276.09);
  --primary: oklch(0.848 0.06 275.123);
  --primary-foreground: oklch(0.306 0.137 267.243);
  --secondary: oklch(0.332 0.056 273.361);
  --secondary-foreground: oklch(0.865 0.026 275.751);
  --accent: oklch(0.414 0.059 274.876);
  --accent-foreground: oklch(0.948 0.008 277.138);
  --destructive: oklch(0.651 0.197 28.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.06 275.123);
  --chart-1: oklch(0.848 0.06 275.123);
  --chart-2: oklch(0.332 0.056 273.361);
  --chart-3: oklch(0.414 0.059 274.876);
  --chart-4: oklch(0.358 0.062 273.288);
  --chart-5: oklch(0.846 0.063 275.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.285 0.036 275.174);
  --foreground: oklch(0.848 0.06 275.123);
  --muted: oklch(0.335 0.021 276.317);
  --muted-foreground: oklch(0.774 0.02 276.896);
  --popover: oklch(0.258 0.031 275.28);
  --popover-foreground: oklch(0.957 0.017 275.935);
  --card: oklch(0.267 0.033 275.242);
  --card-foreground: oklch(0.903 0.038 275.577);
  --border: oklch(0.342 0.025 276.119);
  --input: oklch(0.369 0.028 276.09);
  --primary: oklch(0.848 0.06 275.123);
  --primary-foreground: oklch(0.306 0.137 267.243);
  --secondary: oklch(0.332 0.056 273.361);
  --secondary-foreground: oklch(0.865 0.026 275.751);
  --accent: oklch(0.414 0.059 274.876);
  --accent-foreground: oklch(0.948 0.008 277.138);
  --destructive: oklch(0.651 0.197 28.821);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.06 275.123);
  --chart-1: oklch(0.848 0.06 275.123);
  --chart-2: oklch(0.332 0.056 273.361);
  --chart-3: oklch(0.414 0.059 274.876);
  --chart-4: oklch(0.358 0.062 273.288);
  --chart-5: oklch(0.846 0.063 275.071);
}