Download the PHP package gent-drupal/gent_base without Composer
On this page you can find all versions of the php package gent-drupal/gent_base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gent-drupal/gent_base
More information about gent-drupal/gent_base
Files in gent-drupal/gent_base
Package gent_base
Short Description Drupal theming layer for styleguide Gent.
License GPL-2.0-or-later
Homepage https://bitbucket.org/digipolisgent/drupal_theme_gent-base
Informations about the package gent_base
Drupal 10 base theme using the styleguide of Stad Gent.
This Drupal 10 theme is based on the style guide of Stad Gent. https://stijlgids.stad.gent/
It is included in the root of this theme inside the styleguide
directory.
This is also the place where the style guide code gets maintained to be
published as an NPM package.
Dependencies
-
Twig Typography module: This module is used to apply smart hyphenation to large sized titles. See
paragraph--call-to-action.html.twig
as example.Copy the typography_defaults.yml from the gent_base theme root to your custom theme root and adjust if needed.
See typography settings for all possible 'set' options.
Installation
To install and use this base theme and a subtheme of it follow these steps:
-
Add the
gent_base
php package from District09 Repman packagist to your Drupal composer.json file: By adding the post install and post update commands we ensure that the gent_base theme is installed correctly and everything is ready to use. - Install the base theme by running
composer install
in the root of your Drupal project. - Navigate into gent_base:
cd web/themes/contrib/gent_base
- Setup the gent_base basetheme with composer:
composer install
- Copy the starterkit folder to /themes/custom of your Drupal installation and
just follow the installation instructions in the
INSTALL.md
file.
Done!
CKEditor in-editor styling support
In combination with the ckeditor5.scss in your subtheme source/sass dir, also add the following hook to a custom module in order to make the in-editor styling work correctly:
Don't forget to add the following to your subtheme info yml file:
Theming considerations
The $styleguide-dir variable
This theme as well as its starter kit contains a 00-settings/_vars.scss
file
which contains a $styleguide-dir
variable pointing to the directory of the
style guide within the gent_base theme for your Drupal installation.
This style guide variable is necessary for the successful compilation of the sub theme sass code.