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.
 
 
 
 
 
 
rdrew 82d0989652 . 9 years ago
STARTERKIT 1st commit 9 years ago
bower_components 1st commit 9 years ago
components 1st commit 9 years ago
dist . 9 years ago
src 1st commit 9 years ago
templates 1st commit 9 years ago
.babelrc 1st commit 9 years ago
.bowerrc 1st commit 9 years ago
.gitignore 1st commit 9 years ago
CHANGELOG.md 1st commit 9 years ago
bower.json 1st commit 9 years ago
composer.json 1st commit 9 years ago
composer.lock 1st commit 9 years ago
config.yml 1st commit 9 years ago
d8vre.theme 1st commit 9 years ago
gulpfile.babel.js 1st commit 9 years ago
herbarium.info.yml 1st commit 9 years ago
herbarium.libraries.yml 1st commit 9 years ago
logo.svg 1st commit 9 years ago
package-lock.json 1st commit 9 years ago
package.json . 9 years ago
readme.md 1st commit 9 years ago
rosie.css 1st commit 9 years ago
screenshot.gif 1st commit 9 years ago
theme-setup 1st commit 9 years ago
vim-markdown-preview.html 1st commit 9 years ago

readme.md

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>
    ...