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 --classDark string class name used by --modeSelector for dark styles (default "dark")
24 --classLight string class name used by --modeSelector for light styles (default "light")
25 -h, --help help for chromastyles
26 --highlightStyle string foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"
27 --lineNumbersInlineStyle string foreground and background colors for inline line numbers, e.g. --lineNumbersInlineStyle "#fff000 bg:#000fff"
28 --lineNumbersTableStyle string foreground and background colors for table line numbers, e.g. --lineNumbersTableStyle "#fff000 bg:#000fff"
29 --mode string style mode ("light", "dark")
30 --modeSelector scope selectors under a top level mode class, e.g. ".dark .chroma"
31 --omitClassComments omit CSS class comment prefixes in the generated CSS
32 --omitEmpty omit empty CSS rules (deprecated, no longer needed)
33 --style string highlighter style (default "friendly")
34 ```
35
36 ### Options inherited from parent commands
37
38 ```
39 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
40 --config string config file (default is hugo.yaml|json|toml)
41 --configDir string config dir (default "config")
42 -d, --destination string filesystem path to write files to
43 -e, --environment string build environment
44 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
45 --logLevel string log level (debug|info|warn|error)
46 --noBuildLock don't create .hugo_build.lock file
47 --quiet build in quiet mode
48 -M, --renderToMemory render to memory (mostly useful when running the server)
49 -s, --source string filesystem path to read files relative from
50 --themesDir string filesystem path to themes directory
51 ```
52
53 ### SEE ALSO
54
55 * [hugo gen](/commands/hugo_gen/) - Generate documentation and syntax highlighting styles