Artistic for shadcn/ui

Artistic is a shadcn/ui theme built around a deep yellow primary color (#544721) with deep green accents (#485421). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#544721) on a neutral background (#040302).

Color palette

TokenLightDark
Background
#ffffffwhite
#040302black
Foreground
#080602black
#ffffffwhite
Card
#ffffffwhite
#040302black
Card foreground
#080602black
#ffffffwhite
Popover
#ffffffwhite
#040302black
Popover foreground
#080602black
#ffffffwhite
Primary
#544721darkolivegreen
#544721darkolivegreen
Primary foreground
#e7ddc1wheat
#e7ddc1wheat
Secondary
#542d21saddlebrown
#542d21saddlebrown
Secondary foreground
#e7c9c1pink
#e7c9c1pink
Muted
#e5dad7gainsboro
#281d1ablack
Muted foreground
#675a56dimgray
#a99c98darkgray
Accent
#485421darkolivegreen
#485421darkolivegreen
Accent foreground
#dee7c1palegoldenrod
#dee7c1palegoldenrod
Destructive
#621809maroon
#ea411forangered
Destructive foreground
#f7b4a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#544721darkolivegreen
#544721darkolivegreen

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.75:1AA
Secondary button7.61:1AAA
Muted text4.83:1AA
Accent6.31:1AA
Destructive7.27:1AAA
Dark mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button6.75:1AA
Secondary button7.61:1AAA
Muted text6.14:1AA
Accent6.31:1AA
Destructive3.97:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.015 95.314);
  --muted: oklch(0.896 0.013 37.676);
  --muted-foreground: oklch(0.478 0.018 37.614);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.015 95.314);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.015 95.314);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.402 0.058 89.687);
  --primary-foreground: oklch(0.897 0.039 90.379);
  --secondary: oklch(0.345 0.062 37.715);
  --secondary-foreground: oklch(0.86 0.035 37.609);
  --accent: oklch(0.425 0.076 120.717);
  --accent-foreground: oklch(0.911 0.051 118.097);
  --destructive: oklch(0.332 0.109 33.104);
  --destructive-foreground: oklch(0.828 0.081 31.558);
  --ring: oklch(0.402 0.058 89.687);
  --chart-1: oklch(0.402 0.058 89.687);
  --chart-2: oklch(0.345 0.062 37.715);
  --chart-3: oklch(0.425 0.076 120.717);
  --chart-4: oklch(0.374 0.069 37.714);
  --chart-5: oklch(0.406 0.061 89.508);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 93.928);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.019 37.595);
  --muted-foreground: oklch(0.703 0.016 37.648);
  --popover: oklch(0.097 0.008 93.928);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.008 93.928);
  --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.402 0.058 89.687);
  --primary-foreground: oklch(0.897 0.039 90.379);
  --secondary: oklch(0.345 0.062 37.715);
  --secondary-foreground: oklch(0.86 0.035 37.609);
  --accent: oklch(0.425 0.076 120.717);
  --accent-foreground: oklch(0.911 0.051 118.097);
  --destructive: oklch(0.622 0.211 32.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.402 0.058 89.687);
  --chart-1: oklch(0.402 0.058 89.687);
  --chart-2: oklch(0.345 0.062 37.715);
  --chart-3: oklch(0.425 0.076 120.717);
  --chart-4: oklch(0.374 0.069 37.714);
  --chart-5: oklch(0.406 0.061 89.508);
}