Abnormality for shadcn/ui

Abnormality is a shadcn/ui theme built around a light violet primary color (#f2effb) with light green accents (#effbf2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#f2effb) on a violet-tinted background (#07050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#07050ablack
Foreground
#020104black
#ffffffwhite
Card
#fcfcfcsnow
#09060eblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#07050ablack
Popover foreground
#020104black
#ffffffwhite
Primary
#f2effbwhitesmoke
#f2effbwhitesmoke
Primary foreground
#472791darkslateblue
#472791darkslateblue
Secondary
#fbf2efseashell
#fbf2efseashell
Secondary foreground
#914727sienna
#914727sienna
Muted
#eae0dcgainsboro
#231915black
Muted foreground
#584841darkolivegreen
#beaea7darkgray
Accent
#effbf2honeydew
#effbf2honeydew
Accent foreground
#11401fdarkgreen
#11401fdarkgreen
Destructive
#750a00maroon
#fa1500red
Destructive foreground
#ffb0a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2effbwhitesmoke
#f2effbwhitesmoke

Contrast

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

Light mode
Text on background20.81:1AAA
Text on card20.54:1AAA
Primary button9.41:1AAA
Secondary button6.08:1AA
Muted text6.70:1AA
Accent11.09:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.31:1AAA
Text on card20.08:1AAA
Primary button9.41:1AAA
Secondary button6.08:1AA
Muted text8.00:1AAA
Accent11.09:1AAA
Destructive4.06:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.075 0.022 300.344);
  --muted: oklch(0.914 0.012 44.853);
  --muted-foreground: oklch(0.416 0.025 44.479);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.075 0.022 300.344);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.958 0.016 299.754);
  --primary-foreground: oklch(0.381 0.163 290.149);
  --secondary: oklch(0.968 0.01 44.876);
  --secondary-foreground: oklch(0.484 0.11 42.648);
  --accent: oklch(0.976 0.017 155.543);
  --accent-foreground: oklch(0.332 0.077 149.892);
  --destructive: oklch(0.359 0.14 30.912);
  --destructive-foreground: oklch(0.83 0.094 25.054);
  --ring: oklch(0.958 0.016 299.754);
  --chart-1: oklch(0.958 0.016 299.754);
  --chart-2: oklch(0.968 0.01 44.876);
  --chart-3: oklch(0.976 0.017 155.543);
  --chart-4: oklch(0.992 0.003 44.956);
  --chart-5: oklch(0.957 0.017 299.739);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 300.158);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.017 44.372);
  --muted-foreground: oklch(0.762 0.021 44.72);
  --popover: oklch(0.121 0.016 300.158);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.133 0.018 299.299);
  --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.958 0.016 299.754);
  --primary-foreground: oklch(0.381 0.163 290.149);
  --secondary: oklch(0.968 0.01 44.876);
  --secondary-foreground: oklch(0.484 0.11 42.648);
  --accent: oklch(0.976 0.017 155.543);
  --accent-foreground: oklch(0.332 0.077 149.892);
  --destructive: oklch(0.623 0.25 30.014);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.958 0.016 299.754);
  --chart-1: oklch(0.958 0.016 299.754);
  --chart-2: oklch(0.968 0.01 44.876);
  --chart-3: oklch(0.976 0.017 155.543);
  --chart-4: oklch(0.992 0.003 44.956);
  --chart-5: oklch(0.957 0.017 299.739);
}