D8 theme for the Digital Herbarium repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.9 KiB

UPEI VRE base theme for Drupal 8

Dependencies

Details

  • using core/stable as a base theme
  • put site info in config.yml
  • checkout gulpfile.babel.js
  • need to run npm install && bower install
  • add fonts to ****.libraries.yml

Cool stuff

  • Foundation 6 is built in. Any of the components, etc from https://foundation.zurb.com/sites/docs/ will work out of the box if their markup is emulated.

  • Site setup script

    • If you want to fork this theme off as a new project, ./theme-setup will rename all the relavent bits and create an empty git repo.
  • Fancy Gulp setup

    • add site details in config.yml
    • can proxy local or remote site with Browsersync
  • SVG sprites:

    • All svg's placed in 'src/assets/img/icons/' are bundled by Gulp into a master SVG sprite
    • {% include '@components/utilities/icon.twig' with { icon: 'home' } %} puts the svg in the Twg template
  • Extended Twig templates

    • "normal" twig templates can be used in combination with Drupal twig templates.
    • example usage:
    ----------------------
    # (themename.info.yml)
    ----------------------
    ...
    component-libraries:
        components:
            paths:
                - components
    ...

    --------------------------------
    # (somedrupaltemplate.html.twig)
    --------------------------------
    ...
    {% include '@components/utilities/icon.twig' with { icon: 'home'  } %}
    ...

    -------------------------------------
    # (./components/utilities/icon.twig)
    -------------------------------------
    ...
    <svg class="icon icon--{{ icon }}"><use xlink:href="#icon-{{ icon }}"></use></svg>
    ...