Framework for shadcn/ui

Framework is a shadcn/ui theme built around a light blue primary color (#a2bceb) with light orange accents (#ebd2a2). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the light blue primary (#a2bceb) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#030507black
Foreground
#03060cblack
#f9fafbghostwhite
Card
#f8f9fcghostwhite
#05070ablack
Card foreground
#020408black
#fcfcfdwhite
Popover
#f8f9fcghostwhite
#05070ablack
Popover foreground
#020408black
#fcfcfdwhite
Primary
#a2bceblightsteelblue
#a2bceblightsteelblue
Primary foreground
#10254cmidnightblue
#10254cmidnightblue
Secondary
#ebd2a2wheat
#ebd2a2wheat
Secondary foreground
#4c3710darkolivegreen
#4c3710darkolivegreen
Muted
#f0eeealinen
#15130fblack
Muted foreground
#4b4a48darkslategray
#b7b5b4silver
Accent
#ebd2a2wheat
#ebd2a2wheat
Accent foreground
#4c3710darkolivegreen
#4c3710darkolivegreen
Destructive
#94340asaddlebrown
#e04e10chocolate
Destructive foreground
#fce0d4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a2bceblightsteelblue
#a2bceblightsteelblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.54:1AAA
Primary button7.86:1AAA
Secondary button7.66:1AAA
Muted text7.63:1AAA
Accent7.66:1AAA
Destructive6.10:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.68:1AAA
Primary button7.86:1AAA
Secondary button7.66:1AAA
Muted text9.10:1AAA
Accent7.66:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 263.051);
  --foreground: oklch(0.123 0.016 255.501);
  --muted: oklch(0.949 0.005 83.06);
  --muted-foreground: oklch(0.411 0.003 83.062);
  --popover: oklch(0.983 0.003 263.048);
  --popover-foreground: oklch(0.108 0.013 255.172);
  --card: oklch(0.983 0.003 263.048);
  --card-foreground: oklch(0.108 0.013 255.172);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.793 0.073 262.656);
  --primary-foreground: oklch(0.271 0.077 261.501);
  --secondary: oklch(0.873 0.068 82.795);
  --secondary-foreground: oklch(0.352 0.061 79.586);
  --accent: oklch(0.873 0.068 82.795);
  --accent-foreground: oklch(0.352 0.061 79.586);
  --destructive: oklch(0.458 0.138 39.593);
  --destructive-foreground: oklch(0.927 0.035 44.638);
  --ring: oklch(0.793 0.073 262.656);
  --chart-1: oklch(0.793 0.073 262.656);
  --chart-2: oklch(0.873 0.068 82.795);
  --chart-3: oklch(0.873 0.068 82.795);
  --chart-4: oklch(0.89 0.059 82.897);
  --chart-5: oklch(0.791 0.077 262.627);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.009 258.169);
  --foreground: oklch(0.983 0.002 263.05);
  --muted: oklch(0.186 0.008 83.029);
  --muted-foreground: oklch(0.775 0.003 83.058);
  --popover: oklch(0.126 0.01 258.179);
  --popover-foreground: oklch(0.992 0.001 263.052);
  --card: oklch(0.126 0.01 258.179);
  --card-foreground: oklch(0.992 0.001 263.052);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.793 0.073 262.656);
  --primary-foreground: oklch(0.271 0.077 261.501);
  --secondary: oklch(0.873 0.068 82.795);
  --secondary-foreground: oklch(0.352 0.061 79.586);
  --accent: oklch(0.873 0.068 82.795);
  --accent-foreground: oklch(0.352 0.061 79.586);
  --destructive: oklch(0.619 0.192 38.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.793 0.073 262.656);
  --chart-1: oklch(0.793 0.073 262.656);
  --chart-2: oklch(0.873 0.068 82.795);
  --chart-3: oklch(0.873 0.068 82.795);
  --chart-4: oklch(0.89 0.059 82.897);
  --chart-5: oklch(0.791 0.077 262.627);
}