To change website colors, fonts, and plugins. Please open the
Change Website Colors
params.variables section, you will have all the parameters to change the website color preferences. For example, if you change the value of
color_primary, the primary color of the whole website.
[params.variables] color_primary = "green" color_secondary = "#001111" body_color = "#fff" text_color = "#666666" text_dark = "#222222" text_light = "#959595" border_color = "#ACB9C4" black = "#000" white = "#fff" light = "#fdfdfd"
Change Website fonts
Below the color variables, you will get the font variables, and you can change the value of those variables as per your requirements.
Visit Google Fonts to see the fonts that are available to you. Then select the font you want to use. Then copy the bold part of the URL and paste it in the
font_primary field. It will change the font of the website’s primary text.
If you want to change the value of the primary font type, you can change it to either
serif as per your requirement.
font_primary = "Roboto:ital,wght@0,300;0,400;1,400" font_primary_type = "sans-serif" # [serif/sans-serif] font_secondary = "Work+Sans" font_secondary_type = "serif" # [serif/sans-serif] icon_font = "Font Awesome 5 Free" # chose icon: https://fontawesome.com/icons
You can add or remove third-party plugins from here. We create a loop for plugins. You can see two plugins loops here, the first one is for
css, and the last one is for
Sometimes you need to close the Hugo server and run again for rendered correctly.
[[params.plugins.css]] link = "https://cdn.examplesite.com/your-plugin.css" attributes = "your-attributes" # optional field
[[params.plugins.js]] link = "https://cdn.examplesite.com/your-plugin.js" attributes = "your-attributes" # optional field