Razor for shadcn/ui

Razor is a shadcn/ui theme built around a blue primary color (#6cafea) with muted light blue accents (#e1e6ea). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#6cafea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030d17black
#fcfcfdwhite
Card
#ffffffwhite
#000000black
Card foreground
#030d17black
#fcfcfdwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#030d17black
#fcfcfdwhite
Primary
#6cafeacornflowerblue
#6cafeacornflowerblue
Primary foreground
#04131fblack
#04131fblack
Secondary
#e1e6ealavender
#111518black
Secondary foreground
#3f4d5adarkslategray
#9eaebddarkgray
Muted
#e5e8eblavender
#14171ablack
Muted foreground
#55626ddimgray
#929faadarkgray
Accent
#e1e6ealavender
#111518black
Accent foreground
#3f4d5adarkslategray
#9eaebddarkgray
Destructive
#c12506firebrick
#e92d07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6cafeacornflowerblue
#6cafeacornflowerblue

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button8.01:1AAA
Secondary button6.89:1AA
Muted text5.09:1AA
Accent6.89:1AA
Destructive5.94:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button8.01:1AAA
Secondary button8.09:1AAA
Muted text6.64:1AA
Accent8.09:1AAA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.027 241.952);
  --muted: oklch(0.93 0.005 244.163);
  --muted-foreground: oklch(0.488 0.023 244.684);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.027 241.952);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.027 241.952);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.733 0.11 246.399);
  --primary-foreground: oklch(0.18 0.033 245.415);
  --secondary: oklch(0.922 0.008 244.196);
  --secondary-foreground: oklch(0.414 0.029 244.97);
  --accent: oklch(0.922 0.008 244.196);
  --accent-foreground: oklch(0.414 0.029 244.97);
  --destructive: oklch(0.525 0.194 32.194);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.11 246.399);
  --chart-1: oklch(0.733 0.11 246.399);
  --chart-2: oklch(0.922 0.008 244.196);
  --chart-3: oklch(0.922 0.008 244.196);
  --chart-4: oklch(0.945 0.005 244.161);
  --chart-5: oklch(0.733 0.114 246.526);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 244.102);
  --muted: oklch(0.203 0.008 244.58);
  --muted-foreground: oklch(0.696 0.021 244.47);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 244.102);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 244.102);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.733 0.11 246.399);
  --primary-foreground: oklch(0.18 0.033 245.415);
  --secondary: oklch(0.191 0.01 244.73);
  --secondary-foreground: oklch(0.744 0.028 244.556);
  --accent: oklch(0.191 0.01 244.73);
  --accent-foreground: oklch(0.744 0.028 244.556);
  --destructive: oklch(0.602 0.225 32.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.733 0.11 246.399);
  --chart-1: oklch(0.733 0.11 246.399);
  --chart-2: oklch(0.191 0.01 244.73);
  --chart-3: oklch(0.191 0.01 244.73);
  --chart-4: oklch(0.225 0.013 244.814);
  --chart-5: oklch(0.733 0.114 246.526);
}