Tricky for shadcn/ui

Tricky is a shadcn/ui theme built around a deep teal primary color (#114129) with deep pink accents (#411129). The light mode uses a neutral background (#fbfefc). Dark mode keeps the deep teal primary (#114129) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030705black
Foreground
#030d08black
#f9fbfamintcream
Card
#fbfefcwhite
#030705black
Card foreground
#030d08black
#f9fbfamintcream
Popover
#fbfefcwhite
#030705black
Popover foreground
#030d08black
#f9fbfamintcream
Primary
#114129darkslategray
#114129darkslategray
Primary foreground
#9ee6c2powderblue
#9ee6c2powderblue
Secondary
#411129darkslategray
#411129darkslategray
Secondary foreground
#e69ec2plum
#e69ec2plum
Muted
#eae1e6gainsboro
#1e1519black
Muted foreground
#53464ddarkslategray
#b9acb3darkgray
Accent
#411129darkslategray
#411129darkslategray
Accent foreground
#e69ec2plum
#e69ec2plum
Destructive
#6f260csaddlebrown
#e7531dchocolate
Destructive foreground
#f7c7b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#114129darkslategray
#114129darkslategray

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.04:1AAA
Secondary button7.52:1AAA
Muted text6.98:1AA
Accent7.52:1AAA
Destructive7.05:1AAA
Dark mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button8.04:1AAA
Secondary button7.52:1AAA
Muted text8.16:1AAA
Accent7.52:1AAA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 165.039);
  --foreground: oklch(0.143 0.021 164.805);
  --muted: oklch(0.918 0.011 345.455);
  --muted-foreground: oklch(0.409 0.022 346.471);
  --popover: oklch(0.994 0.004 165.039);
  --popover-foreground: oklch(0.143 0.021 164.805);
  --card: oklch(0.994 0.004 165.039);
  --card-foreground: oklch(0.143 0.021 164.805);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.335 0.067 157.565);
  --primary-foreground: oklch(0.867 0.088 162.099);
  --secondary: oklch(0.266 0.08 352.984);
  --secondary-foreground: oklch(0.779 0.097 348.177);
  --accent: oklch(0.266 0.08 352.984);
  --accent-foreground: oklch(0.779 0.097 348.177);
  --destructive: oklch(0.375 0.109 38.568);
  --destructive-foreground: oklch(0.867 0.061 40.934);
  --ring: oklch(0.335 0.067 157.565);
  --chart-1: oklch(0.335 0.067 157.565);
  --chart-2: oklch(0.266 0.08 352.984);
  --chart-3: oklch(0.266 0.08 352.984);
  --chart-4: oklch(0.296 0.092 353.338);
  --chart-5: oklch(0.339 0.07 157.201);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 165.253);
  --foreground: oklch(0.986 0.002 165.09);
  --muted: oklch(0.209 0.016 347.058);
  --muted-foreground: oklch(0.757 0.018 345.769);
  --popover: oklch(0.122 0.012 165.253);
  --popover-foreground: oklch(0.986 0.002 165.09);
  --card: oklch(0.122 0.012 165.253);
  --card-foreground: oklch(0.986 0.002 165.09);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.335 0.067 157.565);
  --primary-foreground: oklch(0.867 0.088 162.099);
  --secondary: oklch(0.266 0.08 352.984);
  --secondary-foreground: oklch(0.779 0.097 348.177);
  --accent: oklch(0.266 0.08 352.984);
  --accent-foreground: oklch(0.779 0.097 348.177);
  --destructive: oklch(0.636 0.194 38.034);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.335 0.067 157.565);
  --chart-1: oklch(0.335 0.067 157.565);
  --chart-2: oklch(0.266 0.08 352.984);
  --chart-3: oklch(0.266 0.08 352.984);
  --chart-4: oklch(0.296 0.092 353.338);
  --chart-5: oklch(0.339 0.07 157.201);
}