Entity for shadcn/ui

Entity is a shadcn/ui theme built around a light blue primary color (#bedae9) with light orange accents (#e9cdbe). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#bedae9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#04090cblack
#f5f8fawhitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#020608black
#f8fafbghostwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#04090cblack
#f5f8fawhitesmoke
Primary
#bedae9powderblue
#bedae9powderblue
Primary foreground
#1d4358darkslategray
#1d4358darkslategray
Secondary
#e9cdbewheat
#e9cdbewheat
Secondary foreground
#58321dsaddlebrown
#58321dsaddlebrown
Muted
#e6d8d0gainsboro
#2f2019black
Muted foreground
#4c3f38darkslategray
#c7bab3silver
Accent
#e9cdbewheat
#e9cdbewheat
Accent foreground
#58321dsaddlebrown
#58321dsaddlebrown
Destructive
#c11e10firebrick
#ed3726orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bedae9powderblue
#bedae9powderblue

Contrast

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

Light mode
Text on background20.00:1AAA
Text on card19.90:1AAA
Primary button7.22:1AAA
Secondary button7.39:1AAA
Muted text7.28:1AAA
Accent7.39:1AAA
Destructive6.04:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.75:1AAA
Primary button7.22:1AAA
Secondary button7.39:1AAA
Muted text8.25:1AAA
Accent7.39:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.013 225.315);
  --muted: oklch(0.892 0.019 50.389);
  --muted-foreground: oklch(0.38 0.021 49.987);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.013 225.315);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.116 0.011 224.734);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.873 0.037 231.302);
  --primary-foreground: oklch(0.367 0.056 234.688);
  --secondary: oklch(0.868 0.038 50.131);
  --secondary-foreground: oklch(0.36 0.064 48.14);
  --accent: oklch(0.868 0.038 50.131);
  --accent-foreground: oklch(0.36 0.064 48.14);
  --destructive: oklch(0.522 0.198 30.084);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.037 231.302);
  --chart-1: oklch(0.873 0.037 231.302);
  --chart-2: oklch(0.868 0.038 50.131);
  --chart-3: oklch(0.868 0.038 50.131);
  --chart-4: oklch(0.892 0.031 50.233);
  --chart-5: oklch(0.873 0.039 231.346);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.977 0.004 230.713);
  --muted: oklch(0.26 0.026 49.461);
  --muted-foreground: oklch(0.797 0.018 50.38);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.977 0.004 230.713);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.985 0.003 230.695);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.873 0.037 231.302);
  --primary-foreground: oklch(0.367 0.056 234.688);
  --secondary: oklch(0.868 0.038 50.131);
  --secondary-foreground: oklch(0.36 0.064 48.14);
  --accent: oklch(0.868 0.038 50.131);
  --accent-foreground: oklch(0.36 0.064 48.14);
  --destructive: oklch(0.62 0.22 29.838);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.873 0.037 231.302);
  --chart-1: oklch(0.873 0.037 231.302);
  --chart-2: oklch(0.868 0.038 50.131);
  --chart-3: oklch(0.868 0.038 50.131);
  --chart-4: oklch(0.892 0.031 50.233);
  --chart-5: oklch(0.873 0.039 231.346);
}