Superficial for shadcn/ui

Superficial is a shadcn/ui theme built around a violet primary color (#975cd6) with green accents (#5cd697). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the violet primary (#975cd6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#07020dblack
#ffffffwhite
Card
#fcfcfdwhite
#000000black
Card foreground
#07020dblack
#ffffffwhite
Popover
#fcfcfdwhite
#000000black
Popover foreground
#07020dblack
#ffffffwhite
Primary
#975cd6mediumpurple
#975cd6mediumpurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d6975csandybrown
#d6975csandybrown
Secondary foreground
#000000black
#000000black
Muted
#eeedeclinen
#131211black
Muted foreground
#58514bdarkolivegreen
#b4ada7darkgray
Accent
#5cd697mediumaquamarine
#5cd697mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#772203maroon
#e04006orangered
Destructive foreground
#fdc4aflightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#975cd6mediumpurple
#975cd6mediumpurple

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button4.36:1AA Large
Secondary button8.44:1AAA
Muted text6.67:1AA
Accent11.53:1AAA
Destructive6.77:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.36:1AA Large
Secondary button8.44:1AAA
Muted text8.45:1AAA
Accent11.53:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 307.762);
  --foreground: oklch(0.111 0.034 309.335);
  --muted: oklch(0.947 0.002 65.94);
  --muted-foreground: oklch(0.441 0.014 65.586);
  --popover: oklch(0.991 0.002 307.762);
  --popover-foreground: oklch(0.111 0.034 309.335);
  --card: oklch(0.991 0.002 307.762);
  --card-foreground: oklch(0.111 0.034 309.335);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.183 303.613);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.726 0.107 62.881);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.791 0.143 157.977);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.385 0.124 37.444);
  --destructive-foreground: oklch(0.866 0.071 40.896);
  --ring: oklch(0.596 0.183 303.613);
  --chart-1: oklch(0.596 0.183 303.613);
  --chart-2: oklch(0.726 0.107 62.881);
  --chart-3: oklch(0.791 0.143 157.977);
  --chart-4: oklch(0.746 0.1 63.421);
  --chart-5: oklch(0.593 0.191 303.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.003 65.753);
  --muted-foreground: oklch(0.752 0.012 65.777);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.596 0.183 303.613);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.726 0.107 62.881);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.791 0.143 157.977);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.603 0.204 35.972);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.183 303.613);
  --chart-1: oklch(0.596 0.183 303.613);
  --chart-2: oklch(0.726 0.107 62.881);
  --chart-3: oklch(0.791 0.143 157.977);
  --chart-4: oklch(0.746 0.1 63.421);
  --chart-5: oklch(0.593 0.191 303.332);
}