Debian Codegraph @

docs/content/en/commands/hugo_gen_chromastyles.md

raw
1 ---
2 title: "hugo gen chromastyles"
3 slug: hugo_gen_chromastyles
4 url: /commands/hugo_gen_chromastyles/
5 ---
6 ## hugo gen chromastyles
7
8 Generate CSS stylesheet for the Chroma code highlighter
9
10 ### Synopsis
11
12 Generate CSS stylesheet for the Chroma code highlighter for a given style. This stylesheet is needed if markup.highlight.noClasses is disabled in config.
13
14 See https://gohugo.io/quick-reference/syntax-highlighting-styles/ for a preview of the available styles.
15
16 ```
17 hugo gen chromastyles [flags] [args]
18 ```
19
20 ### Options
21
22 ```
23 -h, --help help for chromastyles
24 --highlightStyle string foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"
25 --lineNumbersInlineStyle string foreground and background colors for inline line numbers, e.g. --lineNumbersInlineStyle "#fff000 bg:#000fff"
26 --lineNumbersTableStyle string foreground and background colors for table line numbers, e.g. --lineNumbersTableStyle "#fff000 bg:#000fff"
27 --omitClassComments omit CSS class comment prefixes in the generated CSS
28 --omitEmpty omit empty CSS rules (deprecated, no longer needed)
29 --style string highlighter style (default "friendly")
30 ```
31
32 ### Options inherited from parent commands
33
34 ```
35 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
36 --config string config file (default is hugo.yaml|json|toml)
37 --configDir string config dir (default "config")
38 -d, --destination string filesystem path to write files to
39 -e, --environment string build environment
40 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
41 --logLevel string log level (debug|info|warn|error)
42 --noBuildLock don't create .hugo_build.lock file
43 --quiet build in quiet mode
44 -M, --renderToMemory render to memory (mostly useful when running the server)
45 -s, --source string filesystem path to read files relative from
46 --themesDir string filesystem path to themes directory
47 ```
48
49 ### SEE ALSO
50
51 * [hugo gen](/commands/hugo_gen/) - Generate documentation and syntax highlighting styles