Boilerplate project for sites using UNDP Design System
- Grid system
- UNDP official web typefaces: ProximaNova and Söhne
- basic HTML elements styling:
- H1-6 headings
- Paragraph text & links
- Inline elements (abbr, blockuote, cite, code, mark, quotation)
- Image and Video default styling, including captions and credit
- Table
Inspired by ZURB Template
- Sass compilaton. Using DartSass library with source maps support.
- Javascript compilation. Transpiled with Babel, bundling is handled via Webpack
- Assets copying for distribution. Image compressed and optimized using imagemin
- Page compilation. Based on flat file compiler Panini using Handlebars template language
- Development mode with BrowserSync server, file watching and on the fly compilation
- Content decoupled from layout for easy translation via data files
- jQuery
- GSAP with ScrollTrigger and EasePack plugins - animations and transitions
- Swiper - carousels and sliders
Clone project repo locally To manually set up the template, first download it with Git:
git clone https://github.com/undp/design-system-starter-template projectname
cd projectname
Add Github repo authentication information.
Add .npmrc
file to the project directory with following content, where {PERSONAL_TOKEN}
is yor [Personal Authentication token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-personal-access-token-classic\) with at least read:packages permissions
//npm.pkg.github.com/:_authToken={PERSONAL_TOKEN}
@undp:registry=https://npm.pkg.github.com
In case you are using Yarn2 you have to add file named .yarnrc.yml
or update existing with the following snippet:
npmScopes:
undp:
npmRegistryServer: https://npm.pkg.github.com
npmAuthToken: {PERSONAL_TOKEN}
Install dependencies
yarn
Run development server (at http://localhost:8000)
yarn start
When ready for publication build production ready assets (published to /docs directory)
yarn build
Don't forget to relink Git to your own repository:
git remote set-url origin <remote_url>