Definite for shadcn/ui

Definite is a shadcn/ui theme built around a purple primary color (#cc61bc) with cyan accents (#61bccc). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#cc61bc) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#ffffffwhite
#070306black
Foreground
#160313black
#fcf8fbsnow
Card
#ffffffwhite
#070306black
Card foreground
#160313black
#fcf8fbsnow
Popover
#ffffffwhite
#070306black
Popover foreground
#160313black
#fcf8fbsnow
Primary
#cc61bcmediumorchid
#cc61bcmediumorchid
Primary foreground
#000000black
#000000black
Secondary
#bccc61darkkhaki
#bccc61darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#f1f3e8linen
#16170cblack
Muted foreground
#636558dimgray
#a5a79adarkgray
Accent
#61bcccmediumturquoise
#61bcccmediumturquoise
Accent foreground
#000000black
#000000black
Destructive
#a30505darkred
#f92f2fcrimson
Destructive foreground
#fedcdcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cc61bcmediumorchid
#cc61bcmediumorchid

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.87:1AAA
Primary button5.99:1AA
Secondary button11.92:1AAA
Muted text5.28:1AA
Accent9.55:1AAA
Destructive6.37:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button5.99:1AA
Secondary button11.92:1AAA
Muted text7.37:1AAA
Accent9.55:1AAA
Destructive3.84:1AA Large

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.149 0.047 333.343);
  --muted: oklch(0.959 0.015 113.593);
  --muted-foreground: oklch(0.501 0.021 114.068);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.047 333.343);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.047 333.343);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.173 333.387);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.81 0.133 116.541);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.745 0.089 210.406);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.452 0.183 28.899);
  --destructive-foreground: oklch(0.923 0.037 17.847);
  --ring: oklch(0.652 0.173 333.387);
  --chart-1: oklch(0.652 0.173 333.387);
  --chart-2: oklch(0.81 0.133 116.541);
  --chart-3: oklch(0.745 0.089 210.406);
  --chart-4: oklch(0.824 0.125 116.25);
  --chart-5: oklch(0.653 0.182 333.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.015 330.962);
  --foreground: oklch(0.983 0.006 330.329);
  --muted: oklch(0.201 0.021 115.259);
  --muted-foreground: oklch(0.724 0.019 113.79);
  --popover: oklch(0.111 0.015 330.962);
  --popover-foreground: oklch(0.983 0.006 330.329);
  --card: oklch(0.111 0.015 330.962);
  --card-foreground: oklch(0.983 0.006 330.329);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.173 333.387);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.81 0.133 116.541);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.745 0.089 210.406);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.635 0.234 27.129);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.173 333.387);
  --chart-1: oklch(0.652 0.173 333.387);
  --chart-2: oklch(0.81 0.133 116.541);
  --chart-3: oklch(0.745 0.089 210.406);
  --chart-4: oklch(0.824 0.125 116.25);
  --chart-5: oklch(0.653 0.182 333.545);
}