Clear for shadcn/ui

Clear is a shadcn/ui theme built around a vivid indigo primary color (#1717fd) with vivid yellow accents (#fdfd17). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#1717fd) on an indigo-tinted background (#05050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05050ablack
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#07070eblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#07070eblack
Popover foreground
#000000black
#ffffffwhite
Primary
#1717fdblue
#1717fdblue
Primary foreground
#e1e1fflavender
#e1e1fflavender
Secondary
#fdfd17yellow
#fdfd17yellow
Secondary foreground
#474701darkolivegreen
#474701darkolivegreen
Muted
#e6e6dbgainsboro
#242419black
Muted foreground
#58584bdarkolivegreen
#b4b4a7darkgray
Accent
#fdfd17yellow
#fdfd17yellow
Accent foreground
#474701darkolivegreen
#474701darkolivegreen
Destructive
#9d2707firebrick
#eb3b0aorangered
Destructive foreground
#fde0d8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1717fdblue
#1717fdblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.38:1AA
Secondary button8.84:1AAA
Muted text5.73:1AA
Accent8.84:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.82:1AAA
Text on card20.10:1AAA
Primary button6.38:1AA
Secondary button8.84:1AAA
Muted text7.46:1AAA
Accent8.84:1AAA
Destructive4.07:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.922 0.015 106.685);
  --muted-foreground: oklch(0.457 0.021 107.186);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --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.461 0.302 265.914);
  --primary-foreground: oklch(0.918 0.041 285.572);
  --secondary: oklch(0.962 0.207 109.731);
  --secondary-foreground: oklch(0.384 0.083 109.754);
  --accent: oklch(0.962 0.207 109.731);
  --accent-foreground: oklch(0.384 0.083 109.754);
  --destructive: oklch(0.459 0.158 34.472);
  --destructive-foreground: oklch(0.929 0.034 35.944);
  --ring: oklch(0.461 0.302 265.914);
  --chart-1: oklch(0.461 0.302 265.914);
  --chart-2: oklch(0.962 0.207 109.731);
  --chart-3: oklch(0.962 0.207 109.731);
  --chart-4: oklch(0.962 0.203 109.682);
  --chart-5: oklch(0.463 0.307 265.499);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.014 284.144);
  --foreground: oklch(0.991 0.001 286.379);
  --muted: oklch(0.257 0.02 107.706);
  --muted-foreground: oklch(0.766 0.018 106.822);
  --popover: oklch(0.132 0.016 284.038);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.016 284.038);
  --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.461 0.302 265.914);
  --primary-foreground: oklch(0.918 0.041 285.572);
  --secondary: oklch(0.962 0.207 109.731);
  --secondary-foreground: oklch(0.384 0.083 109.754);
  --accent: oklch(0.962 0.207 109.731);
  --accent-foreground: oklch(0.384 0.083 109.754);
  --destructive: oklch(0.617 0.218 33.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.461 0.302 265.914);
  --chart-1: oklch(0.461 0.302 265.914);
  --chart-2: oklch(0.962 0.207 109.731);
  --chart-3: oklch(0.962 0.207 109.731);
  --chart-4: oklch(0.962 0.203 109.682);
  --chart-5: oklch(0.463 0.307 265.499);
}