Hugo Profile ships with full color customization and a built-in light/dark/auto theme toggle in the navbar. You can define distinct palettes for both light and dark mode through theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gurusabarish/hugo-profile/llms.txt
Use this file to discover all available pages before exploring further.
params.color block in hugo.yaml — no CSS editing required. All color values are written directly into CSS custom properties at build time, which means every component in the theme automatically inherits your choices.
Theme Toggle
The theme toggle button (sun/moon icon) is displayed in the navbar by default. Two params control it:Set to
true to completely remove the light/dark toggle button from the navbar. Users will be locked to whichever mode is selected via defaultTheme.The color mode applied on first visit (before the user makes a choice). Accepted values:
"light"— always start in light mode"dark"— always start in dark mode- (omit the key) — auto mode: reads the visitor’s OS-level
prefers-color-schemepreference and applies it automatically
localStorage under the key pref-theme and respected on subsequent visits.Color Variables
All color values live underparams.color. Light mode colors are set directly on params.color; dark mode overrides go under params.color.darkmode. Both sets use identical field names.
Light Mode
Primary body text color.
Muted / secondary text color used for subtitles, section headings, card metadata, and similar de-emphasized copy.
Color of hyperlinks in body content. Defaults to
primaryColor when not explicitly set.Main page background color applied to
<html> and most page-level surfaces.Accent background used for cards, experience containers, and other elevated surfaces. The default is a semi-transparent teal tint.
Brand accent color — used for buttons, borders, active tab indicators, list markers, and hero headings.
Secondary surface color for cards, hero image borders, and other contained elements.
Dark Mode
All fields underparams.color.darkmode mirror the light mode fields exactly. They are applied whenever the dark class is present on <html> or <body> (the theme toggle and the default-theme scripts add the class to both elements simultaneously).
Primary text color in dark mode.
Secondary / muted text color in dark mode.
Hyperlink color in dark mode. Defaults to
darkmode.primaryColor when not explicitly set.Main background color in dark mode.
Secondary surface / card background color in dark mode.
Brand accent color in dark mode.
Secondary surface color in dark mode.
Full params.color Example
CSS Variable System
At build time Hugo Profile injects all color values as CSS custom properties on:root. The full set of variables is:
<style> block via params.customScripts or by placing a custom CSS file in static/css/.