You can install all available Hugo themes by cloning the entire Hugo Theme repository on GitHub from within your working directory. Depending on your internet connection the download of all themes might take a while.
Alternatively, you can download the theme as a .zip file, unzip the theme contents, and then move the unzipped source into your themes directory.
Please make certain you have installed the themes you want to use in the
/themes directory. This is the default directory used by Hugo. Hugo comes with the ability to change the themes directory via the themesDir variable in your site configuration, but this is not recommended.
Hugo applies the decided theme first and then applies anything that is in the local directory. This allows for easier customization while retaining compatibility with the upstream version of the theme. To learn more, go to customizing themes.
There are two different approaches to using a theme with your Hugo website: via the Hugo CLI or as part of your
To change a theme via the Hugo CLI, you can pass the -tflag when building your site:
hugo -t themename
Likely, you will want to add the theme when running the Hugo local server, especially if you are going to customize the theme:
hugo server -t themename
If you’ve already decided on the theme for your site and do not want to fiddle with the command line, you can add the theme directly to your site configuration file: