Releases: ffwagency/ffw_theme
v3.0.0
Starter Drupal theme with components structure using NPM as build tool.
Two types of components - Drupal and static.
Drupal components are in the templates
folder. Static components are in a separate components
folder.
All files related to a certain component are in the same folder. Each component has its own library entry in ffw_theme.libraries.yml
. The library is attached to the component either in the twig file with {{ attach_library('ffw_theme/NAME') }}
or in the ffw_theme.theme
file in a preprocess function with $variables['#attached']['library'][] = 'ffw_theme/NAME';
.
Theme uses latest SASS version with its modules system allowing better optimization of CSS files per component.
Includes scripts for:
- converting SCSS to CSS, ES6 to JS
- linting and watching files
- generating SVG icon sprite
- clean generated files
v3.0.0-beta
Component-based Drupal 8 theme using NPM as build tool.
Includes scripts for:
- converting SCSS to CSS, ES6 to JS
- linting and watching files
- generating icon sprite
- building a KSS styleguide
- clean generated files
Has a separate components
folder and ffw_theme_components
namespace (requires https://www.drupal.org/project/components) to be included by the default components in the templates
folder. Could be used with Patternlab.
Final release will be made when the following issues are resolved:
- node-sass watches .css files too. The issue will be fixed with [email protected] (sass/node-sass@c5edd85)
- imagemin can't keep the directory structure
imagemin/imagemin#191
imagemin/imagemin#87