Mentor LMS Docs
Customization

Color System

Customize the color scheme of Mentor LMS using CSS variables from the admin dashboard.

This guide explains how to customize the color scheme of Mentor LMS directly from the Admin Dashboard without requiring any code changes.

Changing Colors via Admin Dashboard

  1. Navigate to Dashboard → Settings → System
  2. Open the Style tab
  3. In the Custom Global Style section, modify the CSS variables

App Maintenance

Changes take effect immediately across your entire application.


Available CSS Variables

Key Variables

VariablePurpose
--primaryMain brand color (buttons, links, highlights)
--secondarySecondary accent color
--backgroundMain background color
--foregroundMain text color
--cardCard and panel backgrounds
--borderBorder colors
--mutedMuted/gray colors for less important elements
--destructiveError/danger colors (delete buttons, alerts)

Light Mode (:root)

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --primary: oklch(0.265 0.0216 248.65);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.643 0.144 160.62 / 10.2%);
  --secondary-foreground: oklch(0.6468 0.144588 160.7462);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.87 0 0);
  --radius: 0.625rem;
}

Dark Mode (.dark)

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

The color system uses the OKLCH color space for better color consistency and accessibility across light and dark modes.

On this page