Install
Works with Drupal: ^8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is a new alpha release of the 8.x-6.x development branch. This is still an alpha release, meaning the theme continues to make major/breaking changes. However, if you are already using the 8.x-6.0-alpha5 release, there are lots of changes here that you may find helpful.
To check on further discussion about development and a beta release refer to #2655142: 8.x-6.x Roadmap. Thank you to everyone who contributed changes and continues to use this theme and provide feedback!
Changes since 8.x-6.0-alpha5 release:
- #3037052: Local task markup uses <li> inside a <div>
- #3001627: Top Bar "mobile only" setting adds wrong class
- #3080669: Fix Drupal code style issues in STARTER theme
- #2896247: What is region meta_header for? Region order differs in STARTER
- #3095726: Move status messages (callouts) close-button to top so the CSS for the :last-child works as expected
- #2655760: Remove hard-coded copyright and make it a block
- #3054917: Drupal 8.7.0 introduces "Messages" template changes that are not handled by the "Highlighted" region
- #2651666: Remove duplicate hard coded logo and site name in theme
- #3029876: Upgrade to foundations-site 6.5+ and motion-ui 2.0+
- #2869463: Query string parameters break default section classes
- #3090194: Set starting configuration for block placement
- #3103634: Need a default .sass-lint.yml
- #3068878: A meta element with an http-equiv attribute whose value is X-UA-Compatible must have a content attribute with the value IE=edge
- #2989534: Consensus On Layouts
- #3125749: Form descriptions don't use the help-text class
- #3110836: Visual indicator for required form fields is gone
- #3096839: Remove deprecated theme functions
- #3134561: Required Form Field Indicator has wrong asset path
- #2966672: View mode select box show full width and also overlap with site logo on preview page
- #3093297: Pagers aren't consistently using Zurb's pagination styles
- #3134562: Drupal 9 compatibility
Upgrade notes since alpha5 release:
Some of these changes require manual steps to bring existing sub-themes up to date. Since there have been changes to the package.json, it is important to make sure existing sub-themes bring in these changes, reinstall node modules, and then re-run gulp build. While the updated version of Foundation is backwards compatible, this does not mean there won't be visual changes to your custom theme after this upgrade. It is strongly recommended that you thoroughly test this update before pushing to production.
This build does not include all the necessary code changes for Drupal 9, but it should at least install cleanly. Remaining changes needed captured here: #3149507: Automated Drupal 9 compatibility fixes.
Updating dependencies:
- Update the ZURB Foundation contrib theme.
- Update your subtheme's package.json to require these versions:
"foundation-sites": "~6.5.3", "motion-ui": "~2.0.3", "what-input": "^4.3.1", - Delete the node modules directory from your subtheme.
- run "npm install"
- run "gulp" to re-build your css files with the new dependencies.
Removing layouts:
If you have been using the drupal layouts provided in this theme, this update will break your subtheme. We recommend using the Foundation Layouts contrib module, or the xy_grid_layous module to add in this functionality.
SCSS linting:
With #3103634: Need a default .sass-lint.yml , there is an updated sass-lint file that can be used to ensure that sub-theme .scss conforms to BEM formatting, specifically Drupal's CSS code style guidelines. All new sub-themes will have this by default. If you'd like to bring it into your existing sub-theme:
- Delete the
scss-lint.ymlfile from your sub-theme. - Copy the
sass-lint.ymlfile from the STARTER directory in the zurb_foundation contrib theme, and paste it into the root of your sub-theme (where thescss-lint.ymlused to be). - This will run when you next compile your css with gulp.
Styling updates to port to existing sub-themes:
- With #3110836: Visual indicator for required form fields is gone, required forms now will have accessible styling. New sub-themes will have this by default. To port it to an existing sub theme, copy the
STARTER/images/foundation/misc/required.svgandSTARTER/scss/base/_drupal.scssfiles to your sub-theme. - The
.help-textclass has been added to the description text in forms. Note that this will not take effect if you have already overwritten Drupal'sform-element.twig.htmlfile in your sub-theme. - With #3096839: Remove deprecated theme functions, the theme hook
zurb_foundation_menu_local_tasks()that added markup to the menu_local_tasks elements has been removed in favor of a new twig template. If you are overwriting this markup in a subtheme, you may need to create your own twig template for this element or otherwise refactor. - Copying over the updated
STARTER/scss/base/_drupal.scssfile to your sub-theme will pull over additional theming changes and fixes, like those from #2966672: View mode select box show full width and also overlap with site logo on preview page - Some changes have been made to the pagination templates, including the addition of a new mini-pager template. If your existing sub-theme has overrides to those templates or styling, these changes may impact the styling. If you want to turn the arrows "on" in the theme _settings.scss, you will need to remove the arrows from the views pagination settings.