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

Go to generator

10000+Themes for shadcn/ui

Skylight for shadcn/ui

Skylight is a shadcn/ui theme built around a green primary color (#bec757) with purple accents (#c757be). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the green primary (#bec757) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0a0a05black
Foreground
#0f1004black
#fdfdfcwhite
Card
#fdfdfbsnow
#0a0a05black
Card foreground
#0f1004black
#fdfdfcwhite
Popover
#fdfdfbsnow
#0a0a05black
Popover foreground
#0f1004black
#fdfdfcwhite
Primary
#bec757darkkhaki
#bec757darkkhaki
Primary foreground
#3a3d14darkolivegreen
#3a3d14darkolivegreen
Secondary
#57bec7mediumturquoise
#57bec7mediumturquoise
Secondary foreground
#000000black
#000000black
Muted
#d7dadbgainsboro
#242828darkslategray
Muted foreground
#5b6f71dimgray
#8ea2a4darkgray
Accent
#c757bemediumorchid
#c757bemediumorchid
Accent foreground
#000000black
#000000black
Destructive
#a0370esaddlebrown
#e64f14orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bec757darkkhaki
#bec757darkkhaki

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button6.17:1AA
Secondary button9.55:1AAA
Muted text3.78:1AA Large
Accent5.51:1AA
Destructive6.90:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.17:1AA
Secondary button9.55:1AAA
Muted text5.57:1AA
Accent5.51:1AA
Destructive3.81:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 110.298);
  --foreground: oklch(0.167 0.024 112.458);
  --muted: oklch(0.887 0.004 203.541);
  --muted-foreground: oklch(0.527 0.025 203.229);
  --popover: oklch(0.995 0.003 110.298);
  --popover-foreground: oklch(0.167 0.024 112.458);
  --card: oklch(0.995 0.003 110.298);
  --card-foreground: oklch(0.167 0.024 112.458);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.8 0.137 113.448);
  --primary-foreground: oklch(0.348 0.061 113.533);
  --secondary: oklch(0.743 0.096 203.398);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.633 0.188 330.85);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.483 0.147 38.777);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.137 113.448);
  --chart-1: oklch(0.8 0.137 113.448);
  --chart-2: oklch(0.743 0.096 203.398);
  --chart-3: oklch(0.633 0.188 330.85);
  --chart-4: oklch(0.759 0.091 203.285);
  --chart-5: oklch(0.809 0.143 113.574);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.012 111.19);
  --foreground: oklch(0.993 0.001 110.263);
  --muted: oklch(0.273 0.005 203.418);
  --muted-foreground: oklch(0.698 0.023 203.31);
  --popover: oklch(0.143 0.012 111.19);
  --popover-foreground: oklch(0.993 0.001 110.263);
  --card: oklch(0.143 0.012 111.19);
  --card-foreground: oklch(0.993 0.001 110.263);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.8 0.137 113.448);
  --primary-foreground: oklch(0.348 0.061 113.533);
  --secondary: oklch(0.743 0.096 203.398);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.633 0.188 330.85);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.63 0.196 38.288);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.8 0.137 113.448);
  --chart-1: oklch(0.8 0.137 113.448);
  --chart-2: oklch(0.743 0.096 203.398);
  --chart-3: oklch(0.633 0.188 330.85);
  --chart-4: oklch(0.759 0.091 203.285);
  --chart-5: oklch(0.809 0.143 113.574);
}