Themes
Once you have selected the layout you wish to use in the previous article. You should decide to whether to use CSS or SCSS. Pages support both options. Next Pages comes with 9 color themes to select. See below how to change or use them.
Using CSS
We have included 9 pre-made themes found inside pages/css/themes/
To switch theme locate the link tag with class="main-stylesheet" in your head tag. Replace href or entire link stylesheet tag with the below ones.
Default
Corporate
Light
Retro
Simple
Mordern
Vibes
Unlax
Abstract
Using SCSS
SCSS works much easier where you can switch the theme by simply changing the import path to the variable file.
The import is located at pages/scss/pages.scss
Default
Change to
you can change it to any the in the pages/scss/themes folder
Creating your own theme
The themes will be found under pages/scss/theme/
folder
Step One
Create a new folder under the scss/theme/my_theme
Step Two
Create a new file name called theme.scss
under the scss/theme/my_theme
and add the following code
Step Three
Create a new file name called var.scss
under the scss/theme/my_theme
and import the code ofscss/theme/abstract/var.scss
to it and change the following variables
Main Base color
Primary Color
Step Four
Change the variable $theme-name
to your theme name in scss/pages.scss
Last updated