docs: clarification for syntax highlightning theme switch

This commit is contained in:
Sören Weber 2022-02-14 22:32:53 +01:00
parent 9eb44953d9
commit 08ef8b70c7
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -170,3 +170,7 @@ You can also set multiple variants. In this case, the first variant is the defau
# Change default color scheme with a variant one. # Change default color scheme with a variant one.
themeVariant = [ "relearn-light", "relearn-dark" ] themeVariant = [ "relearn-light", "relearn-dark" ]
``` ```
{{% notice tip %}}
If you want to switch the syntax highlightning theme together with your color variant, generate a syntax highlighting stylesheet and configure your installation [according to Hugo's documentation](https://gohugo.io/content-management/syntax-highlighting/), and `@import` this stylesheet in your color variant stylesheet. For an example, take a look into `theme-relearn-light.css` and `config.toml` of the exampleSite.
{{% /notice %}}