We're using a block theme in WordPress. The styling can be customized through Appearance > Theme > Customize
in WP Admin dashboard. You can then access the "Styles" menu item to check further on theme styling.
Read more about block themes in WordPress.
- Install Dart Sass - https://sass-lang.com/install
- Verify sass installation
sass --version
NOTE: Sass comes on multiple platforms and language. Ensure to install Dart Sass.
Custom styling is handled within the goonj-crm
theme directory. The CSS is structured as per the following:
- goonj-crm/
- style.scss
- style.css
- assets/
- styles/
- variables.scss
- main.scss
- md.scss
- lg.scss
- xl.scss
Run the following command to compile the changes and generate the stylesheet:
cd path/to/theme
sass style.scss style.css --style compressed --no-source-map
To watch the changes and have live compilation, run:
cd path/to/theme
sass style.scss style.css --style compressed --no-source-map --watch
If there are some changes from WordPress dashboard within the theme (like form styling updates from form builder, adding fonts from dashboard, etc) and the changes are not reflected in the version control, we have to export the theme to check in the code.
- Go to the
Appearance > theme > Goonj Theme > Customize
. - Select
Style
from left panel. - Click on 3 dots at top right corner
- Under
Tool
, click onexport
. - A folder with theme name
goonj-crm should be downloaded. Replace this with your project theme under
wp-content > themes > goonj-crm`. - Commit the changes and push to Github.