THEME_NAME theme is an extension of BASE_THEME_NAME theme. Style follows the BEM methodology and javascript is written as ES6. The JS and SCSS files are compiled and minified with webpack.
This theme requires Drupal core >= 8.8.0.
Requirements for developing:
Command | Description |
---|---|
npm i | Install dependencies and link local packages. |
npm run dev | Compile styles for development environment. and watch file changes. |
npm run build | Build packages for production. Minify CSS/JS. |
Setup the developing environment by running
nvm use
npm i
THEME_NAME
│ README.md
└───src
│ └───scss
│ │ │ styles.scss
│ └───js
│ │ │ common.js
│ └───icons
│ | sprite.svg
│ └───subdir
│ | some-icon.svg
└───dist
└───css
└───js
└───icons