{"id":28099148,"url":"https://github.com/stadgent/drupal_theme_gent-base","last_synced_at":"2026-04-21T14:01:12.537Z","repository":{"id":29330203,"uuid":"117522691","full_name":"StadGent/drupal_theme_gent-base","owner":"StadGent","description":"gent_base is a modern, Sass and Compass enabled Drupal 10 / 11 base theme.","archived":false,"fork":false,"pushed_at":"2026-04-20T07:36:55.000Z","size":41803,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"7.x","last_synced_at":"2026-04-20T09:33:50.059Z","etag":null,"topics":["d09check22","drupal","javascript","nodejs","web"],"latest_commit_sha":null,"homepage":"","language":"Twig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StadGent.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-15T09:10:15.000Z","updated_at":"2026-04-16T13:54:03.000Z","dependencies_parsed_at":"2023-10-11T12:08:10.267Z","dependency_job_id":"b725721e-f0b7-4ac4-9c2d-5a636eb76678","html_url":"https://github.com/StadGent/drupal_theme_gent-base","commit_stats":null,"previous_names":[],"tags_count":167,"template":false,"template_full_name":null,"purl":"pkg:github/StadGent/drupal_theme_gent-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StadGent%2Fdrupal_theme_gent-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StadGent%2Fdrupal_theme_gent-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StadGent%2Fdrupal_theme_gent-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StadGent%2Fdrupal_theme_gent-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StadGent","download_url":"https://codeload.github.com/StadGent/drupal_theme_gent-base/tar.gz/refs/heads/7.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StadGent%2Fdrupal_theme_gent-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32095160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["d09check22","drupal","javascript","nodejs","web"],"created_at":"2025-05-13T17:59:38.560Z","updated_at":"2026-04-21T14:01:12.525Z","avatar_url":"https://github.com/StadGent.png","language":"Twig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal 10/11 base theme using the styleguide of Stad Gent.\n\nThis Drupal 10/11 theme is based on the style guide of Stad Gent.\nhttps://stijlgids.stad.gent/\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/090c45ffd08a2370cd0d/maintainability)](https://codeclimate.com/repos/5a5c70e7f5f0e502a80009f1/maintainability)\n\nIt is included in the root of this theme inside the `styleguide` directory.\nThis is also the place where the style guide code gets maintained to be\npublished as an NPM package.\n\n## Dependencies\n\n* [Twig Typography module](https://www.drupal.org/project/twig_typography):\n  This module is used to apply smart hyphenation to large sized titles. See\n  `paragraph--call-to-action.html.twig` as example.\n\n  Copy the typography_defaults.yml from the gent_base theme root to your custom\n  theme root and adjust if needed.\n\n  See [typography settings](https://github.com/mundschenk-at/php-typography/blob/main/src/class-settings.php)\n  for all possible 'set' options.\n\n## Installation\n\nTo install and use this base theme and a subtheme of it follow these steps:\n\n* Add the `gent_base` php package from District09 Repman packagist to your\n  Drupal composer.json file: By adding the post install and post update commands\n  we ensure that the gent_base theme is installed correctly and everything is\n  ready to use.\n\n  ```\n  \"repositories\": {\n      \"drupal\": {\n          \"type\": \"composer\",\n          \"url\": \"https://packages.drupal.org/8\"\n      },\n      \"repman-district09\": {\n          \"type\": \"composer\",\n          \"url\": \"https://district09.repo.repman.io\"\n      },\n  },\n  \"require\": {\n      \"gent-drupal/gent_base\": \"^6.0\"\n  },\n  \"scripts\": {\n    \"drupal-scaffold\": \"DrupalComposer\\\\DrupalScaffold\\\\Plugin::scaffold\",\n    \"pre-install-cmd\": [\n      \"DrupalProject\\\\composer\\\\ScriptHandler::checkComposerVersion\"\n    ],\n    \"pre-update-cmd\": [\n      \"DrupalProject\\\\composer\\\\ScriptHandler::checkComposerVersion\"\n    ],\n    \"post-install-cmd\": [\n      \"DrupalProject\\\\composer\\\\ScriptHandler::createRequiredFiles\",\n      \"@composer --working-dir=web/themes/contrib/gent_base install -n --no-dev --no-progress\"\n    ],\n    \"post-update-cmd\": [\n      \"DrupalProject\\\\composer\\\\ScriptHandler::createRequiredFiles\",\n      \"@composer --working-dir=web/themes/contrib/gent_base install -n --no-dev --no-progress\"\n    ]\n  },\n  ```\n* Install the base theme by running `composer install` in the root of your\n  Drupal project.\n* Navigate into gent_base:\n  `cd web/themes/contrib/gent_base`\n* Setup the gent_base basetheme with composer:\n  `composer install`\n* Copy the starterkit folder to /themes/custom of your Drupal installation and\n  just follow the installation instructions in the `INSTALL.md` file.\n\nDone!\n\n### CKEditor in-editor styling support\n\nAlso add the following hook to a custom module in order to make the in-editor\nstyling work correctly:\n\n```\n/**\n * Implements hook_preprocess_HOOK() for html.\n */\nfunction MYMODULE_preprocess_html(array \u0026$variables) {\n  // Check if the current page is using the admin theme.\n  if (\\Drupal::service('router.admin_context')-\u003eisAdminRoute()) {\n    // Add a custom body class.\n    $variables['attributes']['class'][] = 'cs--blue';\n  }\n}\n```\n\nIn your subtheme info yml file, load the base CKEditor stylesheet:\n\n```\nckeditor5-stylesheets:\n  - /themes/contrib/gent_base/build/css/ckeditor5.css\n```\n\nOptional: add project-specific overrides:\n\n```\nckeditor5-stylesheets:\n  - /themes/contrib/gent_base/build/css/ckeditor5.css\n  - build/css/ckeditor5.project.css\n```\n\n### CKEditor CSS build flow\n\nThis section documents the CKEditor setup used by `gent_base` and subthemes.\n\n1. Source of base CKEditor styles:\n`/themes/contrib/gent_base/source/sass/ckeditor/_ckeditor5.scss`\nand\n`/themes/contrib/gent_base/source/sass/ckeditor/_ckeditor-content.scss`.\n2. Entry file compiled by gulp:\n`/themes/contrib/gent_base/source/sass/ckeditor5.scss`.\n3. Build task:\n`styles:ckeditor` in\n`/themes/contrib/gent_base/source/gulpfile.js`.\n4. CK-specific post-processing (selector rewrite + rem scaling):\n`normalizeCkeditorCss()` in\n`/themes/contrib/gent_base/source/gulp/ckeditor-css.js`.\n5. Output CSS used by subthemes:\n`/themes/contrib/gent_base/build/css/ckeditor5.css`.\n6. Optional subtheme overrides:\nCreate `source/sass/ckeditor5.project.scss` in your subtheme and include\n`build/css/ckeditor5.project.css` after the base file in\n`ckeditor5-stylesheets`.\n\nNotes:\n- The base file should contain the reusable default behavior.\n- Keep subtheme overrides small and project-specific.\n- If no overrides are needed, omit `ckeditor5.project.scss` entirely.\n\n## Theming considerations\n\n### The $styleguide-dir variable\n\nThis theme overrides Styleguide's `$styleguide-dir` variable pointing to the\ndirectory of the style guide within the gent_base theme for your Drupal\ninstallation. Styleguide itself has no clue of Drupal, so we make sure in a\nDrupal context, we can find the styleguide location.\nWhen needed, this variable can be used to point to styleguide resources such as\nicons, fonts, images, ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstadgent%2Fdrupal_theme_gent-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstadgent%2Fdrupal_theme_gent-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstadgent%2Fdrupal_theme_gent-base/lists"}