Creation for shadcn/ui

Creation is a shadcn/ui theme built around a near-black primary color (#040201) with near-white accents (#eceaea). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the near-black primary (#040201) on an orange-tinted background (#0e0906).

Color palette

TokenLightDark
Background
#fdf9f7snow
#0e0906black
Foreground
#160a03black
#faf6f5whitesmoke
Card
#fcf6f2seashell
#110b08black
Card foreground
#120803black
#fcf9f8snow
Popover
#fcf6f2seashell
#110b08black
Popover foreground
#120803black
#fcf9f8snow
Primary
#040201black
#040201black
Primary foreground
#e58352coral
#e58352coral
Secondary
#eceaealinen
#181311black
Secondary foreground
#56504edarkslategray
#bda89edarkgray
Muted
#ece7e4linen
#1b1613black
Muted foreground
#686564dimgray
#9b9897darkgray
Accent
#eceaealinen
#181311black
Accent foreground
#56504edarkslategray
#bda89edarkgray
Destructive
#c94f0dchocolate
#f16b22chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040201black
#040201black

Contrast

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

Light mode
Text on background18.58:1AAA
Text on card18.44:1AAA
Primary button7.59:1AAA
Secondary button6.60:1AA
Muted text4.70:1AA
Accent6.60:1AA
Destructive4.55:1AA
Dark mode
Text on background18.45:1AAA
Text on card18.61:1AAA
Primary button7.59:1AAA
Secondary button8.11:1AAA
Muted text6.27:1AA
Accent8.11:1AAA
Destructive6.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 48.682);
  --foreground: oklch(0.159 0.027 53.237);
  --muted: oklch(0.931 0.006 48.668);
  --muted-foreground: oklch(0.51 0.004 48.653);
  --popover: oklch(0.976 0.008 48.647);
  --popover-foreground: oklch(0.146 0.023 56.369);
  --card: oklch(0.976 0.008 48.647);
  --card-foreground: oklch(0.146 0.023 56.369);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.09 0.014 60.321);
  --primary-foreground: oklch(0.707 0.137 46.246);
  --secondary: oklch(0.939 0.002 48.728);
  --secondary-foreground: oklch(0.436 0.008 48.521);
  --accent: oklch(0.939 0.002 48.728);
  --accent-foreground: oklch(0.436 0.008 48.521);
  --destructive: oklch(0.583 0.17 42.325);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.09 0.014 60.321);
  --chart-1: oklch(0.09 0.014 60.321);
  --chart-2: oklch(0.939 0.002 48.728);
  --chart-3: oklch(0.939 0.002 48.728);
  --chart-4: oklch(0.962 0.001 48.737);
  --chart-5: oklch(0.09 0.015 60.928);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.011 51.769);
  --foreground: oklch(0.977 0.004 48.695);
  --muted: oklch(0.204 0.009 48.243);
  --muted-foreground: oklch(0.683 0.004 48.683);
  --popover: oklch(0.158 0.013 48.836);
  --popover-foreground: oklch(0.985 0.003 48.714);
  --card: oklch(0.158 0.013 48.836);
  --card-foreground: oklch(0.985 0.003 48.714);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.09 0.014 60.321);
  --primary-foreground: oklch(0.707 0.137 46.246);
  --secondary: oklch(0.193 0.01 48.181);
  --secondary-foreground: oklch(0.747 0.028 48.322);
  --accent: oklch(0.193 0.01 48.181);
  --accent-foreground: oklch(0.747 0.028 48.322);
  --destructive: oklch(0.682 0.183 44.251);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.09 0.014 60.321);
  --chart-1: oklch(0.09 0.014 60.321);
  --chart-2: oklch(0.193 0.01 48.181);
  --chart-3: oklch(0.193 0.01 48.181);
  --chart-4: oklch(0.226 0.013 48.116);
  --chart-5: oklch(0.09 0.015 60.928);
}