HUGO-GEN-CHROMASTYLES(1)
๐ hugo-gen-chromastyles โ the Hugo Manual, bestie edition
okay so this is hugo-gen-chromastyles(1) from the Hugo Manual, and honestly? she's a little CSS factory and she ate. let's get into it ๐
โจ NAME โจ
hugo-gen-chromastyles โ generate a CSS stylesheet for the Chroma code highlighter ๐จโจ
โจ SYNOPSIS โจ
hugo gen chromastyles [flags] [args]
โจ DESCRIPTION โจ
So basically: this command generates a CSS stylesheet for the Chroma code highlighter, for whatever style you ask for. Slay. ๐
And like โ you need this stylesheet if markup.highlight.noClasses is disabled in config. Not "should probably", not "if you feel like it". Needed. no cap ๐ซถ
Wanna preview the available styles before you commit? Go look at https://gohugo.io/quick-reference/syntax-highlighting-styles/ โ it's giving lookbook, it's giving runway ๐
โจ OPTIONS โจ
--classDark="dark"โ the class name that--modeSelectoruses for dark styles ๐--classLight="light"โ the class name that--modeSelectoruses for light styles โ๏ธ-h,--help[=false]โ help for chromastyles, aka the "wait what does this do again" button ๐--highlightStyle=""โ foreground and background colors for highlighted lines, e.g.--highlightStyle "#fff000 bg:#000fff"โจ--lineNumbersInlineStyle=""โ foreground and background colors for inline line numbers, e.g.--lineNumbersInlineStyle "#fff000 bg:#000fff"๐ข--lineNumbersTableStyle=""โ foreground and background colors for table line numbers, e.g.--lineNumbersTableStyle "#fff000 bg:#000fff"๐งฎ--mode=""โ style mode, and the valid vibes are"light"and"dark"๐--modeSelector[=false]โ scope selectors under a top level mode class, e.g..dark .chroma๐ฏ--omitClassComments[=false]โ omit CSS class comment prefixes in the generated CSS ๐--omitEmpty[=false]โ omit empty CSS rules. heads up bestie: this one is deprecated, no longer needed ๐--style="friendly"โ the highlighter style. default is literally"friendly"because she's nice like that ๐
ngl, --omitEmpty is deprecated and no longer needed โ don't come for me, that's just what the page says ๐ญ
โจ OPTIONS INHERITED FROM PARENT COMMANDS โจ
these are the ones she got from her parent hugo-gen, main character inheritance energy ๐
--clock=""โ set the clock used by Hugo, e.g.--clock 2021-11-06T22:30:00.00+09:00โฐ--config=""โ config file (default ishugo.yaml|json|toml) ๐--configDir="config"โ config dir ๐-d,--destination=""โ filesystem path to write files to ๐๏ธ-e,--environment=""โ build environment ๐ฑ--ignoreVendorPaths=""โ ignores any_vendorfor module paths matching the given Glob pattern ๐ซ--logLevel=""โ log level, and your choices aredebug|info|warn|error๐ข--noBuildLock[=false]โ don't create.hugo_build.lockfile ๐--quiet[=false]โ build in quiet mode ๐คซ-M,--renderToMemory[=false]โ render to memory (mostly useful when running the server) ๐ง-s,--source=""โ filesystem path to read files relative from ๐--themesDir=""โ filesystem path to themes directory ๐
โจ SEE ALSO โจ
hugo-gen(1)โ go say hi to the parent ๐ซถ
and that's the whole page, bestie, we got there ๐ fr fr this was Hugo 0.169.0, dated Oct 2026 โ iconic, no notes, periodt โจ๐
๐ฆ where this page comes from
- arch rolling: hugo 0.169.0-1 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms