Definite for shadcn/ui

Definite is a shadcn/ui theme built around a near-black primary color (#020908) with muted light teal accents (#d9e2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020908) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040c0bblack
#fcfdfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#020807black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#020807black
#ffffffwhite
Primary
#020908black
#020908black
Primary foreground
#21b5ablightseagreen
#21b5ablightseagreen
Secondary
#d9e2e2gainsboro
#192424black
Secondary foreground
#3b4e4ddarkslategray
#aac5c3silver
Muted
#e2e4e4gainsboro
#1b1d1dblack
Muted foreground
#4b6361dimgray
#9cb4b3darkgray
Accent
#d9e2e2gainsboro
#192424black
Accent foreground
#3b4e4ddarkslategray
#aac5c3silver
Destructive
#99220fbrown
#ec5841tomato
Destructive foreground
#fce2dfmistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#020908black
#020908black

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.75:1AAA
Primary button7.92:1AAA
Secondary button6.70:1AA
Muted text5.05:1AA
Accent6.70:1AA
Destructive6.60:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button7.92:1AAA
Secondary button8.67:1AAA
Muted text7.71:1AAA
Accent8.67:1AAA
Destructive6.03:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.015 191.174);
  --muted: oklch(0.918 0.003 192.358);
  --muted-foreground: oklch(0.479 0.029 191.143);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.125 0.013 191.467);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.125 0.013 191.467);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.127 0.017 191.242);
  --primary-foreground: oklch(0.699 0.116 187.724);
  --secondary: oklch(0.907 0.01 192.197);
  --secondary-foreground: oklch(0.409 0.024 191.183);
  --accent: oklch(0.907 0.01 192.197);
  --accent-foreground: oklch(0.409 0.024 191.183);
  --destructive: oklch(0.448 0.158 31.623);
  --destructive-foreground: oklch(0.934 0.029 28.116);
  --ring: oklch(0.127 0.017 191.242);
  --chart-1: oklch(0.127 0.017 191.242);
  --chart-2: oklch(0.907 0.01 192.197);
  --chart-3: oklch(0.907 0.01 192.197);
  --chart-4: oklch(0.929 0.008 192.255);
  --chart-5: oklch(0.128 0.017 191.206);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 192.395);
  --muted: oklch(0.23 0.004 192.042);
  --muted-foreground: oklch(0.752 0.027 191.682);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.127 0.017 191.242);
  --primary-foreground: oklch(0.699 0.116 187.724);
  --secondary: oklch(0.251 0.016 191.051);
  --secondary-foreground: oklch(0.803 0.029 191.66);
  --accent: oklch(0.251 0.016 191.051);
  --accent-foreground: oklch(0.803 0.029 191.66);
  --destructive: oklch(0.653 0.188 31.301);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.127 0.017 191.242);
  --chart-1: oklch(0.127 0.017 191.242);
  --chart-2: oklch(0.251 0.016 191.051);
  --chart-3: oklch(0.251 0.016 191.051);
  --chart-4: oklch(0.286 0.02 190.97);
  --chart-5: oklch(0.128 0.017 191.206);
}