Ceramics for shadcn/ui

Ceramics is a shadcn/ui theme built around a vivid light yellow primary color (#f1f391) with vivid light purple accents (#f391f1). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid light yellow primary (#f1f391) on a neutral background (#080802).

Color palette

TokenLightDark
Background
#fefefbwhite
#080802black
Foreground
#040401black
#f9f9f6whitesmoke
Card
#fefefbwhite
#080802black
Card foreground
#040401black
#f9f9f6whitesmoke
Popover
#fefefbwhite
#080802black
Popover foreground
#040401black
#f9f9f6whitesmoke
Primary
#f1f391khaki
#f1f391khaki
Primary foreground
#484908darkolivegreen
#484908darkolivegreen
Secondary
#91f1f3paleturquoise
#91f1f3paleturquoise
Secondary foreground
#084849darkslategray
#084849darkslategray
Muted
#eff5f6whitesmoke
#091010black
Muted foreground
#415353darkslategray
#acbebesilver
Accent
#f391f1violet
#f391f1violet
Accent foreground
#490848indigo
#490848indigo
Destructive
#c5500dchocolate
#f06819chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1f391khaki
#f1f391khaki

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button8.03:1AAA
Secondary button7.91:1AAA
Muted text7.38:1AAA
Accent7.16:1AAA
Destructive4.65:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button8.03:1AAA
Secondary button7.91:1AAA
Muted text9.93:1AAA
Accent7.16:1AAA
Destructive6.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 107.23);
  --foreground: oklch(0.106 0.016 109.493);
  --muted: oklch(0.967 0.007 198.255);
  --muted-foreground: oklch(0.426 0.022 197.645);
  --popover: oklch(0.995 0.003 107.23);
  --popover-foreground: oklch(0.106 0.016 109.493);
  --card: oklch(0.995 0.003 107.23);
  --card-foreground: oklch(0.106 0.016 109.493);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.941 0.121 109.339);
  --primary-foreground: oklch(0.393 0.081 110.636);
  --secondary: oklch(0.9 0.091 197.053);
  --secondary-foreground: oklch(0.367 0.059 196.698);
  --accent: oklch(0.79 0.168 327.607);
  --accent-foreground: oklch(0.291 0.122 328.919);
  --destructive: oklch(0.577 0.164 43.633);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.941 0.121 109.339);
  --chart-1: oklch(0.941 0.121 109.339);
  --chart-2: oklch(0.9 0.091 197.053);
  --chart-3: oklch(0.79 0.168 327.607);
  --chart-4: oklch(0.911 0.082 197.179);
  --chart-5: oklch(0.946 0.125 109.393);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 109.131);
  --foreground: oklch(0.98 0.003 107.23);
  --muted: oklch(0.166 0.01 197.515);
  --muted-foreground: oklch(0.787 0.019 198.005);
  --popover: oklch(0.13 0.017 109.131);
  --popover-foreground: oklch(0.98 0.003 107.23);
  --card: oklch(0.13 0.017 109.131);
  --card-foreground: oklch(0.98 0.003 107.23);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.941 0.121 109.339);
  --primary-foreground: oklch(0.393 0.081 110.636);
  --secondary: oklch(0.9 0.091 197.053);
  --secondary-foreground: oklch(0.367 0.059 196.698);
  --accent: oklch(0.79 0.168 327.607);
  --accent-foreground: oklch(0.291 0.122 328.919);
  --destructive: oklch(0.677 0.186 44.514);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.941 0.121 109.339);
  --chart-1: oklch(0.941 0.121 109.339);
  --chart-2: oklch(0.9 0.091 197.053);
  --chart-3: oklch(0.79 0.168 327.607);
  --chart-4: oklch(0.911 0.082 197.179);
  --chart-5: oklch(0.946 0.125 109.393);
}