There are two ways to change your style (CSS) for your template.
First of all, you can change your style from dist/asseta/css/style.css then upload the changed file to your live server.
The second way, If you want to change your style through SCSS. In that case, you need to follow the below steps to prepare your local environment and run it on your local. You can also minify the CSS. After your changes, you need to upload your changes assets (CSS) to your live server.
Install SASS
to your local through Node.js
Prerequisite: Node.js:
It is used to run the build processes. Download from the NodeJs from the official site and install it on your device according to your Operating System (
nodejs.org
)
Check Node.js Version:
node -v or node --version
- $ node --version
- $ v20.10.0
** Supported node.js version v20.x.x
Check npm Version:
npm -v or npm --version
- $ npm --version
- $ 10.2.3
npm install -g sass
sass --version
https://sass-lang.com/install
- $ sass --version
- $ 1.69.5 compiled with dart2js 3.1.5
writebot. Check that you have
src
and
dist
folders. To check that run on terminal: ls . sass --watch src/assets/scss/style.scss dist/assets/css/style.css or, you can generate the CSS file only: sass src/assets/scss/style.scss dist/assets/css/style.css. Official document:
https://sass-lang.com/documentation/cli/dart-sass
src/assets/scss/ folder. SCSS official documentation:
https://sass-lang.com/guide
On this page