Ashram for shadcn/ui

Ashram is a shadcn/ui theme built around a light blue primary color (#bdceef) with light green accents (#ceefbd). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the light blue primary (#bdceef) on a neutral background (#030408).

Color palette

TokenLightDark
Background
#fbfcfewhite
#030408black
Foreground
#000000black
#fcfcfdwhite
Card
#f7f9fdghostwhite
#04060bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f7f9fdghostwhite
#04060bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#bdceeflightblue
#bdceeflightblue
Primary foreground
#173163midnightblue
#173163midnightblue
Secondary
#efbdcepink
#efbdcepink
Secondary foreground
#631731maroon
#631731maroon
Muted
#e5cdd5gainsboro
#321a22black
Muted foreground
#5f4951dimgray
#b6a0a7darkgray
Accent
#ceefbdlightgrey
#ceefbdlightgrey
Accent foreground
#081104black
#081104black
Destructive
#e13405orangered
#f03805orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bdceeflightblue
#bdceeflightblue

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card19.88:1AAA
Primary button7.98:1AAA
Secondary button7.56:1AAA
Muted text5.47:1AA
Accent15.34:1AAA
Destructive4.47:1AA Large
Dark mode
Text on background19.97:1AAA
Text on card20.23:1AAA
Primary button7.98:1AAA
Secondary button7.56:1AAA
Muted text6.54:1AA
Accent15.34:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 264.541);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.87 0.028 355.512);
  --muted-foreground: oklch(0.432 0.032 356.614);
  --popover: oklch(0.981 0.006 264.531);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 264.531);
  --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.849 0.051 264.257);
  --primary-foreground: oklch(0.322 0.095 262.406);
  --secondary: oklch(0.848 0.062 356.603);
  --secondary-foreground: oklch(0.341 0.109 5.034);
  --accent: oklch(0.916 0.076 135.267);
  --accent-foreground: oklch(0.162 0.031 134.062);
  --destructive: oklch(0.594 0.213 33.654);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.849 0.051 264.257);
  --chart-1: oklch(0.849 0.051 264.257);
  --chart-2: oklch(0.848 0.062 356.603);
  --chart-3: oklch(0.916 0.076 135.267);
  --chart-4: oklch(0.876 0.05 356.165);
  --chart-5: oklch(0.848 0.053 264.237);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 257.732);
  --foreground: oklch(0.992 0.001 264.548);
  --muted: oklch(0.255 0.039 358.834);
  --muted-foreground: oklch(0.727 0.027 355.653);
  --popover: oklch(0.124 0.014 257.923);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.014 257.923);
  --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.849 0.051 264.257);
  --primary-foreground: oklch(0.322 0.095 262.406);
  --secondary: oklch(0.848 0.062 356.603);
  --secondary-foreground: oklch(0.341 0.109 5.034);
  --accent: oklch(0.916 0.076 135.267);
  --accent-foreground: oklch(0.162 0.031 134.062);
  --destructive: oklch(0.623 0.225 33.569);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.849 0.051 264.257);
  --chart-1: oklch(0.849 0.051 264.257);
  --chart-2: oklch(0.848 0.062 356.603);
  --chart-3: oklch(0.916 0.076 135.267);
  --chart-4: oklch(0.876 0.05 356.165);
  --chart-5: oklch(0.848 0.053 264.237);
}