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 --modeSelector uses for dark styles ๐ŸŒ™
  • --classLight="light" โ€” the class name that --modeSelector uses 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 is hugo.yaml|json|toml) ๐Ÿ“„
  • --configDir="config" โ€” config dir ๐Ÿ“
  • -d, --destination="" โ€” filesystem path to write files to ๐Ÿ—‚๏ธ
  • -e, --environment="" โ€” build environment ๐ŸŒฑ
  • --ignoreVendorPaths="" โ€” ignores any _vendor for module paths matching the given Glob pattern ๐Ÿšซ
  • --logLevel="" โ€” log level, and your choices are debug|info|warn|error ๐Ÿ“ข
  • --noBuildLock[=false] โ€” don't create .hugo_build.lock file ๐Ÿ”“
  • --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