Artistic for shadcn/ui

Artistic is a shadcn/ui theme built around a muted light violet primary color (#d2d0d7) with muted violet accents (#bab3cc). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d2d0d7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#08050fblack
#fcfcfdwhite
Card
#fcfbfewhite
#000000black
Card foreground
#08050fblack
#fcfcfdwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#08050fblack
#fcfcfdwhite
Primary
#d2d0d7lightgrey
#d2d0d7lightgrey
Primary foreground
#39363fdarkslategray
#39363fdarkslategray
Secondary
#d6d3degainsboro
#2e2e2edarkslategray
Secondary foreground
#3c3749darkslategray
#c7c7c7silver
Muted
#e1dde9gainsboro
#221616black
Muted foreground
#3f3d42darkslategray
#c2bdbdsilver
Accent
#bab3ccsilver
#443b3bdarkslategray
Accent foreground
#231f2edarkslategray
#dbd6d6gainsboro
Destructive
#c31404firebrick
#fb3e2dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d2d0d7lightgrey
#d2d0d7lightgrey

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.76:1AAA
Secondary button7.78:1AAA
Muted text8.03:1AAA
Accent7.92:1AAA
Destructive6.14:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button7.76:1AAA
Secondary button8.04:1AAA
Muted text9.44:1AAA
Accent7.51:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 299.234);
  --foreground: oklch(0.127 0.026 298.154);
  --muted: oklch(0.904 0.016 299.01);
  --muted-foreground: oklch(0.364 0.009 298.887);
  --popover: oklch(0.989 0.004 299.234);
  --popover-foreground: oklch(0.127 0.026 298.154);
  --card: oklch(0.989 0.004 299.234);
  --card-foreground: oklch(0.127 0.026 298.154);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.862 0.01 299.111);
  --primary-foreground: oklch(0.339 0.017 298.46);
  --secondary: oklch(0.874 0.015 299.011);
  --secondary-foreground: oklch(0.349 0.031 297.737);
  --accent: oklch(0.779 0.037 298.494);
  --accent-foreground: oklch(0.25 0.029 297.247);
  --destructive: oklch(0.519 0.205 30.117);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.01 299.111);
  --chart-1: oklch(0.862 0.01 299.111);
  --chart-2: oklch(0.874 0.015 299.011);
  --chart-3: oklch(0.779 0.037 298.494);
  --chart-4: oklch(0.899 0.012 299.078);
  --chart-5: oklch(0.859 0.013 299.038);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 299.261);
  --muted: oklch(0.217 0.018 18.672);
  --muted-foreground: oklch(0.802 0.006 17.276);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.002 299.261);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.991 0.002 299.261);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.01 299.111);
  --primary-foreground: oklch(0.339 0.017 298.46);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.363 0.012 17.742);
  --accent-foreground: oklch(0.881 0.006 17.269);
  --destructive: oklch(0.649 0.226 29.726);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.862 0.01 299.111);
  --chart-1: oklch(0.862 0.01 299.111);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.363 0.012 17.742);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.859 0.013 299.038);
}