-
Open
composer.jsonin your project root, add following repository inrepositoriesarray"repositories": [ ... { "type": "vcs", "url": "https://github.com/catalyst/cca_base.git" }, ... ]
- Go to
themes/contrib/cca_base/subtheme - Make script executable
chmod +x scripts/create_subtheme.sh
- Run script. You will be asked to enter the subtheme name. The subtheme will be created under
themes/custom/{subtheme_name}../scripts/create_subtheme.sh
Once you have finished creating your subtheme, enable it in /admin/appearance.
To update, run composer require islandora/cca_base. This will update if there is a new tag.
Note that composer update somehow doesn't get the new version. Use composer require.
This will install the tooling for compiling scss.
- Go to
themes/custom/your_theme - Run
npm install - Install gulp if not already:
npm install --global gulp-cli
- Replace
favicon.icoandlogo.svg - Define colours and other bootstrap variables that you want to override in
scss/_variables.scss - Define typography in
scss/_typography.scss - Additional stylings go to
scss/style.scss(or split files if necessary) - Compile scss to css (see below)
- Add custom templates in
templatesfolder - Don't forget to
drush cr
Compiles scss to css.
Compiles scss to css, then watchs for scss changes and recompiles automatically.