https://github.com/roblib/herbarium
D8 theme for the Digital Herbarium repo
https://github.com/roblib/herbarium
Last synced: about 1 month ago
JSON representation
D8 theme for the Digital Herbarium repo
- Host: GitHub
- URL: https://github.com/roblib/herbarium
- Owner: roblib
- Created: 2018-05-15T20:06:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T20:07:27.000Z (about 7 years ago)
- Last Synced: 2025-02-14T19:35:49.365Z (3 months ago)
- Language: HTML
- Size: 8.24 MB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# UPEI VRE base theme for Drupal 8
## Dependencies
- ### Development
- NodeJs/NPM
- Gulp
- Bower- ### Production
- 'Component Libraries', https://www.drupal.org/project/components
- 'Roblib Vre Footer', https://github.com/roblib/roblib_vre_footer
- (If this theme is installed via Composer, it will download these)
## 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)
-------------------------------------
...
...```