Setting for shadcn/ui

Setting is a shadcn/ui theme built around a vivid green primary color (#52fc03) with vivid pink accents (#fc0352). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#52fc03) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040802black
#f9fbf9mintcream
Card
#ffffffwhite
#000000black
Card foreground
#040802black
#f9fbf9mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#040802black
#f9fbf9mintcream
Primary
#52fc03lawngreen
#52fc03lawngreen
Primary foreground
#103201black
#103201black
Secondary
#0352fcdodgerblue
#0352fcdodgerblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d0d7e6gainsboro
#19202fdarkslategray
Muted foreground
#3c4049darkslategray
#b6bac3silver
Accent
#fc0352crimson
#fc0352crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#5c1b0amaroon
#e95d3atomato
Destructive foreground
#f5b4a3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#52fc03lawngreen
#52fc03lawngreen

Contrast

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

Light mode
Text on background20.17:1AAA
Text on card20.17:1AAA
Primary button10.37:1AAA
Secondary button5.81:1AA
Muted text7.21:1AAA
Accent3.97:1AA Large
Destructive7.41:1AAA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button10.37:1AAA
Secondary button5.81:1AA
Muted text8.41:1AAA
Accent3.97:1AA Large
Destructive6.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.022 133.763);
  --muted: oklch(0.879 0.022 265.876);
  --muted-foreground: oklch(0.371 0.017 265.747);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.022 133.763);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.022 133.763);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.87 0.279 139.96);
  --primary-foreground: oklch(0.282 0.086 137.682);
  --secondary: oklch(0.525 0.26 262.947);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.631 0.252 16.194);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.323 0.099 34.881);
  --destructive-foreground: oklch(0.825 0.08 34.51);
  --ring: oklch(0.87 0.279 139.96);
  --chart-1: oklch(0.87 0.279 139.96);
  --chart-2: oklch(0.525 0.26 262.947);
  --chart-3: oklch(0.631 0.252 16.194);
  --chart-4: oklch(0.545 0.248 262.759);
  --chart-5: oklch(0.879 0.284 140.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.004 135.443);
  --muted: oklch(0.243 0.031 265.018);
  --muted-foreground: oklch(0.789 0.014 265.922);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.004 135.443);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.004 135.443);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.87 0.279 139.96);
  --primary-foreground: oklch(0.282 0.086 137.682);
  --secondary: oklch(0.525 0.26 262.947);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.631 0.252 16.194);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.653 0.181 35.146);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.87 0.279 139.96);
  --chart-1: oklch(0.87 0.279 139.96);
  --chart-2: oklch(0.525 0.26 262.947);
  --chart-3: oklch(0.631 0.252 16.194);
  --chart-4: oklch(0.545 0.248 262.759);
  --chart-5: oklch(0.879 0.284 140.095);
}