Idealistic for shadcn/ui

Idealistic is a shadcn/ui theme built around a light violet primary color (#e7def7) with light purple accents (#f4def7). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the light violet primary (#e7def7) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020203black
Foreground
#000000black
#ffffffwhite
Card
#fcfbfewhite
#020203black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfbfewhite
#020203black
Popover foreground
#000000black
#ffffffwhite
Primary
#e7def7lavender
#e7def7lavender
Primary foreground
#452183darkslateblue
#452183darkslateblue
Secondary
#dee2f7lavender
#dee2f7lavender
Secondary foreground
#212e83midnightblue
#212e83midnightblue
Muted
#cdd1eagainsboro
#151932black
Muted foreground
#575860dimgray
#9fa0a8darkgray
Accent
#f4def7lavender
#f4def7lavender
Accent foreground
#762183rebeccapurple
#762183rebeccapurple
Destructive
#c94803chocolate
#fb610eorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7def7lavender
#e7def7lavender

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button9.02:1AAA
Secondary button9.13:1AAA
Muted text4.67:1AA
Accent7.19:1AAA
Destructive4.75:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button9.02:1AAA
Secondary button9.13:1AAA
Muted text6.61:1AA
Accent7.19:1AAA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 302.861);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.865 0.034 278.711);
  --muted-foreground: oklch(0.464 0.013 278.908);
  --popover: oklch(0.989 0.004 302.861);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.004 302.861);
  --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.916 0.034 302.359);
  --primary-foreground: oklch(0.358 0.153 293.992);
  --secondary: oklch(0.916 0.029 278.844);
  --secondary-foreground: oklch(0.349 0.142 270.322);
  --accent: oklch(0.926 0.04 321.71);
  --accent-foreground: oklch(0.424 0.167 321.981);
  --destructive: oklch(0.573 0.176 40.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.916 0.034 302.359);
  --chart-1: oklch(0.916 0.034 302.359);
  --chart-2: oklch(0.916 0.029 278.844);
  --chart-3: oklch(0.926 0.04 321.71);
  --chart-4: oklch(0.947 0.018 279.05);
  --chart-5: oklch(0.915 0.036 302.329);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.01 303.386);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.225 0.048 275.222);
  --muted-foreground: oklch(0.707 0.012 279.09);
  --popover: oklch(0.085 0.01 303.386);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.01 303.386);
  --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.916 0.034 302.359);
  --primary-foreground: oklch(0.358 0.153 293.992);
  --secondary: oklch(0.916 0.029 278.844);
  --secondary-foreground: oklch(0.349 0.142 270.322);
  --accent: oklch(0.926 0.04 321.71);
  --accent-foreground: oklch(0.424 0.167 321.981);
  --destructive: oklch(0.684 0.204 41.664);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.916 0.034 302.359);
  --chart-1: oklch(0.916 0.034 302.359);
  --chart-2: oklch(0.916 0.029 278.844);
  --chart-3: oklch(0.926 0.04 321.71);
  --chart-4: oklch(0.947 0.018 279.05);
  --chart-5: oklch(0.915 0.036 302.329);
}