Git Product home page Git Product logo

drupal_theme_gent-base's Introduction

Drupal 9/10 base theme using the styleguide of Stad Gent.

This Drupal 9/10 theme is based on the style guide of Stad Gent. https://stijlgids.stad.gent/

Maintainability

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.

drupal_theme_gent-base's People

Contributors

attheweb avatar bartdelrue avatar bertvk avatar calijens avatar daften avatar delrueba avatar dependabot[bot] avatar filipheymans avatar fraukevdz avatar geertvd avatar hstandaert avatar interx avatar jelle-s avatar jeroen005 avatar jeroendegloire avatar jonasanne avatar krispijn-joseph avatar lennartvava avatar matthijs-va avatar mattiasberlamont avatar meirege avatar michaelvdwalle avatar mpparsley avatar pj-claeys avatar sebastienvanrintel avatar svenvdv avatar thomasfava avatar wesleydv avatar wim-vantomme avatar zero2one avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.