Get started
A living guide
This is a living guide, running off your project Sass and JavaScript. It starts as the default, clean starter kit. It is not meant to be styled nicely.
As you write your project's Sass and JavaScript, this guide will pick up those changes.
You can delete this directory (/amplify) if you don't need to refer to these docs or don't want to include it in your finished project.
- Grab the latest release of Amplify from GitHub and add the ZIP file contents into your project (probably into a theme directory, but it will depend on your project setup).
N.B: the ZIP file contains some files that may not automatically be visible within a file explorer window (.nvmrc and .stylelintignore). If you manually copy and paste files via an explorer window, you may accidentally miss out on these files. - Check that the config
fromandtopaths inpackage.jsonare correct for your project setup - Check the
contextandoutputpaths inwebpack.config.jsare correct for your project setup - Optional: copy the
/amplifydirectory into the webroot - Follow the command line instructions to install project dependencies and check there are no errors when building the front-end assets
- Make sure the
htmlelement in your web page template has an appropriatelangattribute and theno-jsclass - Make sure your web page template includes the following (which can be copied from any of the example pages in the
/amplifydirectory):- link to the core stylesheet
- link to the advanced stylesheet, including the media query to determine which browsers it will be served to
- link to the print stylesheet
scriptfor the Font Face Observer library in thehead- another
scriptin thehead, which checks when the desired web font is loaded, adds thefonts-loadedclass tohtml, adds the main JavaScript file to theheadand switches theno-jsclass tojs