.nh .TH "HUGO-GEN-CHROMASTYLES" "1" "Aug 2026" "Hugo 0.165.0" "Hugo Manual" .SH NAME hugo-gen-chromastyles - Generate CSS stylesheet for the Chroma code highlighter .SH SYNOPSIS \fBhugo gen chromastyles [flags] [args]\fP .SH DESCRIPTION Generate CSS stylesheet for the Chroma code highlighter for a given style. This stylesheet is needed if markup.highlight.noClasses is disabled in config. .PP See https://gohugo.io/quick-reference/syntax-highlighting-styles/ for a preview of the available styles. .SH OPTIONS \fB--classDark\fP="dark" class name used by --modeSelector for dark styles .PP \fB--classLight\fP="light" class name used by --modeSelector for light styles .PP \fB-h\fP, \fB--help\fP[=false] help for chromastyles .PP \fB--highlightStyle\fP="" foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff" .PP \fB--lineNumbersInlineStyle\fP="" foreground and background colors for inline line numbers, e.g. --lineNumbersInlineStyle "#fff000 bg:#000fff" .PP \fB--lineNumbersTableStyle\fP="" foreground and background colors for table line numbers, e.g. --lineNumbersTableStyle "#fff000 bg:#000fff" .PP \fB--mode\fP="" style mode ("light", "dark") .PP \fB--modeSelector\fP[=false] scope selectors under a top level mode class, e.g. ".dark .chroma" .PP \fB--omitClassComments\fP[=false] omit CSS class comment prefixes in the generated CSS .PP \fB--omitEmpty\fP[=false] omit empty CSS rules (deprecated, no longer needed) .PP \fB--style\fP="friendly" highlighter style .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--clock\fP="" set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 .PP \fB--config\fP="" config file (default is hugo.yaml|json|toml) .PP \fB--configDir\fP="config" config dir .PP \fB-d\fP, \fB--destination\fP="" filesystem path to write files to .PP \fB-e\fP, \fB--environment\fP="" build environment .PP \fB--ignoreVendorPaths\fP="" ignores any _vendor for module paths matching the given Glob pattern .PP \fB--logLevel\fP="" log level (debug|info|warn|error) .PP \fB--noBuildLock\fP[=false] don't create .hugo_build.lock file .PP \fB--quiet\fP[=false] build in quiet mode .PP \fB-M\fP, \fB--renderToMemory\fP[=false] render to memory (mostly useful when running the server) .PP \fB-s\fP, \fB--source\fP="" filesystem path to read files relative from .PP \fB--themesDir\fP="" filesystem path to themes directory .SH SEE ALSO \fBhugo-gen(1)\fP