Guidance for using and setting up the Prototype Kit for an Internal Service #347
jonhurrell
started this conversation in
General
Replies: 2 comments 1 reply
-
Since the header is incorporated into your own page as part of the 'header' block, its actually more manageable to copy the code from the govuk-header/template.njk file, eliminate the logo as above (and make any other changes you want), then save the amended code into a new file local to your project (eg. views/partials/local_header.njk) and
|
Beta Was this translation helpful? Give feedback.
1 reply
-
There is an update version of this guidance #661 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why
The guidance on the GDS system covers when not to use GDS Transport font and this applies to most of our internal facing services (https://design-system.service.gov.uk/styles/typography/#when-not-to-use-the-gds-transport-font). We can't find any practical guidance on how to setup the prototype kit to not use it and other elements like the header component, specifically the Crown logotype.
Related
Guidance Draft
To install the prototype kit and more general guidance https://dwp-design-manual.herokuapp.com/prototype-kit-training
Replace GDS Transport font
To override the default font-family (GDS Transport), navigate or search for
application.scss
. At the top of this file paste the following$govuk-font-family: Helvetica, Arial, sans-serif;
. This SASS declaration sets a new value for the font-family variable.Add Internal Services Header
layout.html
(path'/app/views/includes/layout.html'
). Go to line 42{% block header %}
and remove everything within that block (from line 43 to 48) e.g.:This removes the default govuk header.
Install DWP Frontend (https://design-system.dwp.gov.uk/get-started/npm) via your terminal with this command
npm i @dwp/dwp-frontend
.From line 43 (between the
block header
) paste the internal service header Nunjucks code:Add Internal Services Footer
layout.html
(path'/app/views/includes/layout.html'
). Go to line 54{% if useAutoStoreData %}
and remove everything within that block (from line 54 to 72) e.g.:This removes the default govuk footer.
Install DWP Frontend (https://design-system.dwp.gov.uk/get-started/npm) via your terminal with this command
npm i @dwp/dwp-frontend
.From line 54 define a new section on the template and identify with the footer name e.g:
{% block footer %}
and{% endblock %}
) and paste the internal service footer Nunjucks code:Optional Clear Data
You can still use the clear data functionality within the prototype kit, by changing, or adding a link name and URL using the following values within the Nunjucks macro options:
Beta Was this translation helpful? Give feedback.
All reactions