hugo_gen_chromastyles.md (1968B)
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://xyproto.github.io/splash/docs/all.html for a preview of the available styles
15
16 ```
17 hugo gen chromastyles [flags]
18 ```
19
20 ### Options
21
22 ```
23 -h, --help help for chromastyles
24 --highlightStyle string style used for highlighting lines (see https://github.com/alecthomas/chroma) (default "bg:#ffffcc")
25 --linesStyle string style used for line numbers (see https://github.com/alecthomas/chroma)
26 --style string highlighter style (see https://xyproto.github.io/splash/docs/) (default "friendly")
27 ```
28
29 ### Options inherited from parent commands
30
31 ```
32 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
33 --config string config file (default is path/config.yaml|json|toml)
34 --configDir string config dir (default "config")
35 --debug debug output
36 -e, --environment string build environment
37 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
38 --log enable Logging
39 --logFile string log File path (if set, logging enabled automatically)
40 --quiet build in quiet mode
41 -s, --source string filesystem path to read files relative from
42 --themesDir string filesystem path to themes directory
43 -v, --verbose verbose output
44 --verboseLog verbose logging
45 ```
46
47 ### SEE ALSO
48
49 * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
50