Integration for shadcn/ui

Integration is a shadcn/ui theme built around a vivid violet primary color (#974bfb) with vivid green accents (#affb4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid violet primary (#974bfb) on a violet-tinted background (#090510).

Color palette

TokenLightDark
Background
#ffffffwhite
#090510black
Foreground
#090212black
#fcfcfdwhite
Card
#ffffffwhite
#090510black
Card foreground
#090212black
#fcfcfdwhite
Popover
#ffffffwhite
#090510black
Popover foreground
#090212black
#fcfcfdwhite
Primary
#974bfbmediumslateblue
#974bfbmediumslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#affb4bgreenyellow
#affb4bgreenyellow
Secondary foreground
#0c1400black
#0c1400black
Muted
#f2f3f1whitesmoke
#0d0e0cblack
Muted foreground
#656d5adimgray
#9da592darkgray
Accent
#affb4bgreenyellow
#affb4bgreenyellow
Accent foreground
#0c1400black
#0c1400black
Destructive
#b10d02firebrick
#fd1d0dred
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#974bfbmediumslateblue
#974bfbmediumslateblue

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button4.43:1AA Large
Secondary button15.02:1AAA
Muted text4.86:1AA
Accent15.02:1AAA
Destructive6.09:1AA
Dark mode
Text on background19.69:1AAA
Text on card19.69:1AAA
Primary button4.43:1AA Large
Secondary button15.02:1AAA
Muted text7.59:1AAA
Accent15.02:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.12 0.043 305.295);
  --muted: oklch(0.963 0.002 125.774);
  --muted-foreground: oklch(0.523 0.032 126.581);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.12 0.043 305.295);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.12 0.043 305.295);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.6 0.246 298.41);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.907 0.215 130.256);
  --secondary-foreground: oklch(0.176 0.044 126.877);
  --accent: oklch(0.907 0.215 130.256);
  --accent-foreground: oklch(0.176 0.044 126.877);
  --destructive: oklch(0.481 0.192 29.972);
  --destructive-foreground: oklch(0.948 0.026 22.535);
  --ring: oklch(0.6 0.246 298.41);
  --chart-1: oklch(0.6 0.246 298.41);
  --chart-2: oklch(0.907 0.215 130.256);
  --chart-3: oklch(0.907 0.215 130.256);
  --chart-4: oklch(0.913 0.202 129.712);
  --chart-5: oklch(0.599 0.252 298.073);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.028 305.327);
  --foreground: oklch(0.991 0.002 305.707);
  --muted: oklch(0.16 0.004 126.066);
  --muted-foreground: oklch(0.711 0.03 126.309);
  --popover: oklch(0.129 0.028 305.327);
  --popover-foreground: oklch(0.991 0.002 305.707);
  --card: oklch(0.129 0.028 305.327);
  --card-foreground: oklch(0.991 0.002 305.707);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.6 0.246 298.41);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.907 0.215 130.256);
  --secondary-foreground: oklch(0.176 0.044 126.877);
  --accent: oklch(0.907 0.215 130.256);
  --accent-foreground: oklch(0.176 0.044 126.877);
  --destructive: oklch(0.631 0.249 29.756);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.6 0.246 298.41);
  --chart-1: oklch(0.6 0.246 298.41);
  --chart-2: oklch(0.907 0.215 130.256);
  --chart-3: oklch(0.907 0.215 130.256);
  --chart-4: oklch(0.913 0.202 129.712);
  --chart-5: oklch(0.599 0.252 298.073);
}