Name Last Update
..
build Loading commit data...
config Loading commit data...
includes Loading commit data...
src Loading commit data...
templates Loading commit data...
.browserslistrc Loading commit data...
.gitignore Loading commit data...
.npmrc Loading commit data...
.nvmrc Loading commit data...
.stylelintignore Loading commit data...
.stylelintrc.json Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
droopler_subtheme.breakpoints.yml Loading commit data...
droopler_subtheme.info.yml Loading commit data...
droopler_subtheme.libraries.yml Loading commit data...
droopler_subtheme.theme Loading commit data...
logo.svg Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
screenshot.png Loading commit data...
webpack.mix.js Loading commit data...

SCSS Starterkit for Droopler

This is a starter child theme of droopler_theme, you may use it as a derivative with your own overrides.

Assume your new theme will be called foobar.

  1. Copy and rename STARTERKIT_CSS to your custom theme location, like web/themes/custom/foobar.
  2. Change all STARTERKIT references to foobar (including content and file names).
  3. Change STARTERKIT.rename.yml to foobar.info.yml.

And that's it! Your theme is visible on Appearance admin page.

Working with SCSS

Droopler SCSS Subtheme uses Webpack to compile and bundle SASS and JS.

Step 1

Make sure you have Node and npm installed. You can read a guide on how to install node here: https://docs.npmjs.com/getting-started/installing-node

If you prefer to use Yarn instead of npm, install Yarn by following the guide here.

Step 2

Go to the root of the subtheme and run the following commands: nvm use

This command triggers the node version switch specified in the .nvmrc file Read more about NVM

then: npm install or yarn install

Step 3

Update proxy in config/proxy.js.

Step 4

Run the following command to compile Sass and watch for changes: npm run watch or yarn watch.

There are also other commands for theme developers, here's the full reference:

  • npm run watch - watches for changes in SCSS and JS and processes them on the fly
  • npm run dev - cleans derivative files and compiles all SCSS/JS in the subtheme for DEV environment
  • npm run production - cleans derivative files and compiles all SCSS/JS in the subtheme for PROD environment
  • npm run stylint - run stylint
  • npm run stylint-fix - run stylint and fix errors automatically

Documentation