Syntax Highlight

  1. Make a file at root/data/skin.toml. We can set the code block color theme by theme

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    
    # https://xyproto.github.io/splash/docs/longer/all.html
    # restart hugo after change this value
    theme_light_chroma = "default"
    theme_dark_chroma = "default"
    theme_hacker_chroma = "default"
    theme_solarized_chroma = "default"
    theme_kimbie_chroma = "default"
    
    # possible value: default, dark, light, hacker, solarized, kimbie
    # restart hugo after change this value
    theme_light_chroma_background = "default"
    theme_dark_chroma_background = "default"
    theme_hacker_chroma_background = "default"
    theme_solarized_chroma_background = "default"
    theme_kimbie_chroma_background = "default"
    

    skin.toml

  2. Set the theme_dark_chroma, theme_light_chroma, … params value as you want. Refer this link. If theme_[xxxx]_chroma value include - or _ like special character, just delete it.
    For example, if you want use solarized-dark256 style, set the param like this.

    theme_dark_chroma = "solarizeddark256"
    

    root/data/skin.toml

  3. Set the theme_dark_chroma_background, theme_light_chroma_background, … params value to one of the following values.

    default dark light hacker solarized kimbie