gent-drupal / gent_base
Drupal theming layer for styleguide Gent.
Installs: 609
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 9
Forks: 2
Open Issues: 1
Language:Twig
Type:drupal-theme
Requires
- php: ^7.4 || ^8.1
Requires (Dev)
- digipolisgent/qa-drupal: ^1.6
- drupal/paragraphs: ^1.12
- drupal/webform: ^6.0
- gent-drupal/dg_vesta: ^1.0
- 6.x-dev
- 6.0.0-beta2
- 6.0.0-beta1
- 5.x-dev
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.4
- 5.1.3
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.15
- 5.0.14
- 5.0.13
- 5.0.11
- 5.0.10
- 5.0.9
- 5.0.8
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.4.3
- 4.4.2
- 4.4.1
- 4.4.0
- 4.3.12
- 4.3.11
- 4.3.10
- 4.3.9
- 4.3.8
- 4.3.7
- 4.3.6
- 4.3.5
- 4.3.4
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.1
- 4.2.0
- 4.1.3
- 4.1.2
- 4.1.1
- 4.1.0
- 4.0.0
- 3.x-dev
- 3.3.0
- 3.2.0
- 3.1.1
- 1.1.0-alpha4
- 1.0.0-alpha9
- dev-feature/build-cleanup
- dev-feature/SGD8-2581
- dev-feature/SGD8-2559
- dev-feature/SGD8-2486
- dev-feature/DTGB-894-v6
- dev-8.x-1.x
- dev-8.x-2.x
This package is auto-updated.
Last update: 2024-11-20 14:07:49 UTC
README
This Drupal 9/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."repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" }, "repman-digipolis": { "type": "composer", "url": "https://digipolis.repo.repman.io" }, }, "require": { "gent-drupal/gent_base": "^6.0" }, "scripts": { "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold", "pre-install-cmd": [ "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" ], "pre-update-cmd": [ "DrupalProject\\composer\\ScriptHandler::checkComposerVersion" ], "post-install-cmd": [ "DrupalProject\\composer\\ScriptHandler::createRequiredFiles", "@composer --working-dir=web/themes/contrib/gent_base install -n --no-dev --no-progress" ], "post-update-cmd": [ "DrupalProject\\composer\\ScriptHandler::createRequiredFiles", "@composer --working-dir=web/themes/contrib/gent_base install -n --no-dev --no-progress" ] },
-
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!
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.