For Kuasar for shadcn/ui

For Kuasar is a shadcn/ui theme built around a purple primary color (#7d317d) with teal accents (#317d7d). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#7d317d) on a purple-tinted background (#100410).

Color palette

TokenLightDark
Background
#ffffffwhite
#100410black
Foreground
#080208black
#fcf8fcsnow
Card
#ffffffwhite
#100410black
Card foreground
#080208black
#fcf8fcsnow
Popover
#ffffffwhite
#100410black
Popover foreground
#080208black
#fcf8fcsnow
Primary
#7d317drebeccapurple
#7d317drebeccapurple
Primary foreground
#f6e9f6lavenderblush
#f6e9f6lavenderblush
Secondary
#7d7d31olivedrab
#7d7d31olivedrab
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6e6e0gainsboro
#1f1f19black
Muted foreground
#434342darkslategray
#bdbdbcsilver
Accent
#317d7dseagreen
#317d7dseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b9410efirebrick
#e85211orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d317drebeccapurple
#7d317drebeccapurple

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.53:1AAA
Primary button6.89:1AA
Secondary button4.33:1AA Large
Muted text7.92:1AAA
Accent4.82:1AA
Destructive5.48:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.04:1AAA
Primary button6.89:1AA
Secondary button4.33:1AA Large
Muted text8.76:1AAA
Accent4.82:1AA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.108 0.028 327.276);
  --muted: oklch(0.924 0.009 106.574);
  --muted-foreground: oklch(0.382 0.002 106.504);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.108 0.028 327.276);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.108 0.028 327.276);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.449 0.144 327.644);
  --primary-foreground: oklch(0.948 0.023 325.756);
  --secondary: oklch(0.573 0.099 109.144);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.074 195.191);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.539 0.164 39.347);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.144 327.644);
  --chart-1: oklch(0.449 0.144 327.644);
  --chart-2: oklch(0.573 0.099 109.144);
  --chart-3: oklch(0.543 0.074 195.191);
  --chart-4: oklch(0.609 0.105 109.158);
  --chart-5: oklch(0.451 0.152 327.731);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.035 327.253);
  --foreground: oklch(0.983 0.006 325.62);
  --muted: oklch(0.239 0.012 107.304);
  --muted-foreground: oklch(0.799 0.002 106.441);
  --popover: oklch(0.139 0.035 327.253);
  --popover-foreground: oklch(0.983 0.006 325.62);
  --card: oklch(0.139 0.035 327.253);
  --card-foreground: oklch(0.983 0.006 325.62);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.449 0.144 327.644);
  --primary-foreground: oklch(0.948 0.023 325.756);
  --secondary: oklch(0.573 0.099 109.144);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.543 0.074 195.191);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.637 0.197 39.016);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.449 0.144 327.644);
  --chart-1: oklch(0.449 0.144 327.644);
  --chart-2: oklch(0.573 0.099 109.144);
  --chart-3: oklch(0.543 0.074 195.191);
  --chart-4: oklch(0.609 0.105 109.158);
  --chart-5: oklch(0.451 0.152 327.731);
}