Colors, Fonts and Plugins

When someone buys a theme, they usually change the theme default colors, someone also changes the fonts. So here is the guide for how to do it.

Change Website Colors

  • colors change is very easy with the power of scss variables. Open assets/scss/variables.scss file in a text editor. Then you can see the global variables we used in this theme. primary-color defines the theme default color. If you change it the whole theme default colors will be changed when you compile the theme again. Sometimes it compiles but the browser shows the previous colors. Then you need to clear your browser cache and reload again. You can also change the other variable colors like this.
// Color Variables
$primary-color: #fb5c42;
$secondary-color: #f2f3f5;
$extra-color: #f9f9f9;
$success: #1bbb1b;
$black: #000;
$alert:#c7254e;
$border-color:#dedede;

Change Website fonts

  • font-family name is also defined in the assets/scss/variables.scss files. If you want to change the font then change the font-family form here. And give your font link to the assets/scss/typography.scss files. In typography.scss files, you can customize the font-size, font-weight, and lineheight of your texts. You can get more font-face form here. google-fonts
// Font Variables from variables.scss file
$primary-font:'Catamaran', sans-serif;

// font links from typography.scss file @import url('https://fonts.googleapis.com/css?family=Poppins:400,700,800|Source+Sans+Pro:400|Catamaran:400,600,700');

Third-Party Plugins

You can add or remove third-party plugins from my-project/config.toml file. 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 js.

Sometimes you need to close the Hugo server and run again for rendered correctly.

CSS plugins

[[params.plugins.css]]
link = "https://cdn.examplesite.com/your-plugin.css"
attributes = "your-attributes" # optional field

js plugins

[[params.plugins.js]]
link = "https://cdn.examplesite.com/your-plugin.js"
attributes = "your-attributes" # optional field
Improve this page on Github  — Last updated:  Thu, Sep 16, 2021