Artifact for shadcn/ui

Artifact is a shadcn/ui theme built around a muted blue primary color (#9ab4c1) with muted blue accents (#b3bdc2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#9ab4c1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fcfdfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#9ab4c1darkgray
#9ab4c1darkgray
Primary foreground
#101619black
#101619black
Secondary
#d0d2d2lightgrey
#121517black
Secondary foreground
#36393adarkslategray
#a4b1b7darkgray
Muted
#d7dddfgainsboro
#202528darkslategray
Muted foreground
#3e4042darkslategray
#bdc0c1silver
Accent
#b3bdc2silver
#212b31darkslategray
Accent foreground
#1e2225black
#b6c6cdsilver
Destructive
#6f0f06maroon
#ed1f0cred
Destructive foreground
#fbb3adlightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ab4c1darkgray
#9ab4c1darkgray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.39:1AAA
Secondary button7.64:1AAA
Muted text7.57:1AAA
Accent8.34:1AAA
Destructive6.94:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button8.39:1AAA
Secondary button8.32:1AAA
Muted text8.46:1AAA
Accent8.18:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.007 228.849);
  --muted-foreground: oklch(0.371 0.004 228.896);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.754 0.034 229.438);
  --primary-foreground: oklch(0.195 0.012 229.739);
  --secondary: oklch(0.861 0.002 228.787);
  --secondary-foreground: oklch(0.341 0.004 228.892);
  --accent: oklch(0.791 0.013 228.978);
  --accent-foreground: oklch(0.25 0.008 229.24);
  --destructive: oklch(0.35 0.131 30.216);
  --destructive-foreground: oklch(0.833 0.085 24.863);
  --ring: oklch(0.754 0.034 229.438);
  --chart-1: oklch(0.754 0.034 229.438);
  --chart-2: oklch(0.861 0.002 228.787);
  --chart-3: oklch(0.791 0.013 228.978);
  --chart-4: oklch(0.885 0.002 228.78);
  --chart-5: oklch(0.755 0.038 229.539);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 228.772);
  --muted: oklch(0.26 0.009 229.252);
  --muted-foreground: oklch(0.806 0.003 228.805);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.754 0.034 229.438);
  --primary-foreground: oklch(0.195 0.012 229.739);
  --secondary: oklch(0.194 0.006 229.197);
  --secondary-foreground: oklch(0.751 0.017 229.07);
  --accent: oklch(0.283 0.017 229.732);
  --accent-foreground: oklch(0.816 0.02 229.094);
  --destructive: oklch(0.604 0.235 30.069);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.034 229.438);
  --chart-1: oklch(0.754 0.034 229.438);
  --chart-2: oklch(0.194 0.006 229.197);
  --chart-3: oklch(0.283 0.017 229.732);
  --chart-4: oklch(0.228 0.008 229.259);
  --chart-5: oklch(0.755 0.038 229.539);
}