Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Writhing for shadcn/ui

Writhing is a shadcn/ui theme built around a muted deep indigo primary color (#25232f) with muted light indigo accents (#bebad4). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted deep indigo primary (#25232f) on a neutral background (#030208).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#030208black
Foreground
#010104black
#f9f9fbghostwhite
Card
#f6f5fawhitesmoke
#05040cblack
Card foreground
#000000black
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#030208black
Popover foreground
#010104black
#f9f9fbghostwhite
Primary
#25232fdarkslategray
#25232fdarkslategray
Primary foreground
#bcb9cbsilver
#bcb9cbsilver
Secondary
#dddbe6gainsboro
#232324black
Secondary foreground
#3f3b54darkslategray
#bcbcbdsilver
Muted
#dcd8eegainsboro
#151127black
Muted foreground
#656468dimgray
#98979bdarkgray
Accent
#bebad4lightsteelblue
#373540darkslategray
Accent foreground
#272338darkslategray
#d1d0d8lightgrey
Destructive
#cd3b13firebrick
#e54215orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25232fdarkslategray
#25232fdarkslategray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.31:1AAA
Primary button8.07:1AAA
Secondary button7.81:1AAA
Muted text4.22:1AA Large
Accent8.07:1AAA
Destructive4.94:1AA
Dark mode
Text on background19.61:1AAA
Text on card19.94:1AAA
Primary button8.07:1AAA
Secondary button8.23:1AAA
Muted text6.32:1AA
Accent7.82:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 293.978);
  --foreground: oklch(0.075 0.019 292.236);
  --muted: oklch(0.892 0.029 293.451);
  --muted-foreground: oklch(0.505 0.006 293.828);
  --popover: oklch(0.981 0.005 293.978);
  --popover-foreground: oklch(0.075 0.019 292.236);
  --card: oklch(0.972 0.007 293.932);
  --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.262 0.023 292.394);
  --primary-foreground: oklch(0.793 0.026 293.452);
  --secondary: oklch(0.896 0.014 293.77);
  --secondary-foreground: oklch(0.368 0.042 291.864);
  --accent: oklch(0.801 0.036 293.208);
  --accent-foreground: oklch(0.272 0.039 291.226);
  --destructive: oklch(0.567 0.189 34.913);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.262 0.023 292.394);
  --chart-1: oklch(0.262 0.023 292.394);
  --chart-2: oklch(0.896 0.014 293.77);
  --chart-3: oklch(0.801 0.036 293.208);
  --chart-4: oklch(0.923 0.011 293.852);
  --chart-5: oklch(0.259 0.027 292.009);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.02 292.665);
  --foreground: oklch(0.982 0.003 294.004);
  --muted: oklch(0.196 0.042 289.591);
  --muted-foreground: oklch(0.678 0.006 293.902);
  --popover: oklch(0.098 0.02 292.665);
  --popover-foreground: oklch(0.982 0.003 294.004);
  --card: oklch(0.113 0.023 292.556);
  --card-foreground: oklch(0.991 0.002 294.035);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.262 0.023 292.394);
  --primary-foreground: oklch(0.793 0.026 293.452);
  --secondary: oklch(0.258 0.001 293.97);
  --secondary-foreground: oklch(0.796 0.002 294.022);
  --accent: oklch(0.336 0.018 293.024);
  --accent-foreground: oklch(0.86 0.011 293.832);
  --destructive: oklch(0.614 0.206 34.829);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.262 0.023 292.394);
  --chart-1: oklch(0.262 0.023 292.394);
  --chart-2: oklch(0.258 0.001 293.97);
  --chart-3: oklch(0.336 0.018 293.024);
  --chart-4: oklch(0.289 0.002 293.965);
  --chart-5: oklch(0.259 0.027 292.009);
}