Use this kit to quickly create HTML prototypes of Hackney services.
It's been built to work with the new Hackney Design System and to need minimal knowledge of coding to get started.
If you're looking for an even simpler way to get started, you could experiment with this CodePen instead.
If you need help using this kit, post in the #hackit-design-system channel on Slack.
There are two ways to use the prototyping kit, depending on whether you want to download and install it on your computer.
Recommended for beginners.
You can play with the prototyping kit through your web browser with CodeSandbox. It will take a few minutes to start up for the first time. If you have issues, try refreshing your browser tab.
CodeSandbox will ask you to "fork" the project to make changes. You can create a free account if you want to save your prototypes.
Recommended for developers and technical people.
You'll need Node.js installed to use the kit locally.
- Download this repository to your machine by Clicking the green "Code" button at the top right of the screen and choose "Download ZIP".
- Extract the zip file.
- In your terminal, navigate to the folder you've extracted the kit to and run
npm install
. - Once installation has finished, run
npm start
.
You'll be able to access your prototypes in your browser at http://localhost:8080.
If you need help installing Node.js and using the terminal, you can follow this guide for the GOV.UK prototype kit.
- Open
pages/index.html
in a text editor of your choice. We recommend VS Code. - Replace
title: My first page
with the title of your page. - Find each component you want to include in the design system docs.
- Copy the component HTML and paste into
index.html
, making any changes necessary. - Add any headings and body text that your page needs, using the design system's typography reference.
- To create other pages, copy and paste
index.html
as a new file in thepages
folder and save it under a new name.
It will automatically refresh as you make changes.
If you want to change the page layout, look in _includes/layout.html
, where you will find placeholder comments for different components such as: header and breadcrumbs.
You might want to publish a prototype to the web to share it with colleagues or user research participants.
The easiest way to publish your prototype is with Netlify.
If you've used CodeSandbox to make your prototype, you can deploy it to Netlify or Vercel straight from there.
If you've made your prototype locally, drag your folder onto Netlify here.
This kit is made on the static site generator Eleventy, so it will work anywhere you can deploy static websites, including Vercel, Github Pages and Amazon S3. Eleventy has examples here.
Under the hood, this is an Eleventy site that uses Parcel to compile JavaScript. If this doesn't mean anything to you, you don't need to worry about it.