Achiever for shadcn/ui

Achiever is a shadcn/ui theme built around a near-white primary color (#f6fefd) with near-white accents (#f6fafe). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the near-white primary (#f6fefd) on a neutral background (#030707).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#030707black
Foreground
#000000black
#fcfdfdwhite
Card
#f8fcfcmintcream
#050a0ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfdfdwhite
#030707black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#f6fefdmintcream
#f6fefdmintcream
Primary foreground
#0c4f4cdarkslategray
#0c4f4cdarkslategray
Secondary
#f6fefamintcream
#f6fefamintcream
Secondary foreground
#0c4f2bdarkgreen
#0c4f2bdarkgreen
Muted
#d9e7e0gainsboro
#18261eblack
Muted foreground
#5b5d5cdimgray
#a2a4a3darkgray
Accent
#f6fafeghostwhite
#f6fafeghostwhite
Accent foreground
#0c314fmidnightblue
#0c314fmidnightblue
Destructive
#6b1001maroon
#fe3816orangered
Destructive foreground
#ffad9flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6fefdmintcream
#f6fefdmintcream

Contrast

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

Light mode
Text on background20.64:1AAA
Text on card20.28:1AAA
Primary button9.14:1AAA
Secondary button9.41:1AAA
Muted text5.21:1AA
Accent12.79:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.87:1AAA
Text on card19.89:1AAA
Primary button9.14:1AAA
Secondary button9.41:1AAA
Muted text6.30:1AA
Accent12.79:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 193.568);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.917 0.018 162.119);
  --muted-foreground: oklch(0.475 0.003 162.472);
  --popover: oklch(0.994 0.002 193.568);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.004 193.529);
  --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.99 0.008 193.45);
  --primary-foreground: oklch(0.389 0.063 189.713);
  --secondary: oklch(0.989 0.009 162.38);
  --secondary-foreground: oklch(0.379 0.09 153.482);
  --accent: oklch(0.984 0.006 242.277);
  --accent-foreground: oklch(0.305 0.068 247.385);
  --destructive: oklch(0.341 0.126 32.8);
  --destructive-foreground: oklch(0.823 0.099 30.363);
  --ring: oklch(0.99 0.008 193.45);
  --chart-1: oklch(0.99 0.008 193.45);
  --chart-2: oklch(0.989 0.009 162.38);
  --chart-3: oklch(0.984 0.006 242.277);
  --chart-4: oklch(1.005 0.005 342.734);
  --chart-5: oklch(0.99 0.008 193.444);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.009 192.812);
  --foreground: oklch(0.993 0.001 193.58);
  --muted: oklch(0.251 0.024 159.942);
  --muted-foreground: oklch(0.717 0.003 162.531);
  --popover: oklch(0.122 0.009 192.812);
  --popover-foreground: oklch(0.993 0.001 193.58);
  --card: oklch(0.139 0.01 192.809);
  --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.99 0.008 193.45);
  --primary-foreground: oklch(0.389 0.063 189.713);
  --secondary: oklch(0.989 0.009 162.38);
  --secondary-foreground: oklch(0.379 0.09 153.482);
  --accent: oklch(0.984 0.006 242.277);
  --accent-foreground: oklch(0.305 0.068 247.385);
  --destructive: oklch(0.649 0.235 31.988);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.008 193.45);
  --chart-1: oklch(0.99 0.008 193.45);
  --chart-2: oklch(0.989 0.009 162.38);
  --chart-3: oklch(0.984 0.006 242.277);
  --chart-4: oklch(1.005 0.005 342.734);
  --chart-5: oklch(0.99 0.008 193.444);
}