-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update colour palette #1288
Update colour palette #1288
Conversation
a00a1f1
to
e5bafb4
Compare
e5bafb4
to
61765c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed this with @aliuk2012 and we think the changes are very good, but we need a changelog entry that shows how to migrate to the new colours.
We think there is a user need to help people pick a new colour for those that have no direct replacement.
This will allow us to maintain the existing colour palette for users of GOV.UK Frontend who are migrating, and using it alongside GOV.UK Elements, Template or Frontend Toolkit.
We are removing this because the red in the palette has been updated, and there is now very little difference between 'red' and 'bright red'.
The hover style for this component will eventually change, but to keep changes contained we're just updating it with the closest colour right now.
This addresses an issue with low colour contrast between the text (white) and the background (turquoise) whilst simplifying the palette
61765c4
to
272d903
Compare
Rebased against master and changelog entry added. @NickColley @aliuk2012 thanks for the review – let me know if you're happy with it 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very very good CHANGELOG entry, nice would read again A+ seller, thanks Ollie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect 👍 🚀 🍾
This updates GOV.UK Frontend to use the new palette, as designed by the GOV.UK graphic design community.
This is part of a broader series of work which will be released as part of v3.0, which also includes changes to the hover and focus states of many components.
Changes to the palette
#2e358b
#4c2c92
#6f72af
#6f72af
#912b88
#912b88
#d53880
#d53880
#f499be
#f499be
#b10e1e
#d4351c
#df3034
#f47738
#f47738
#b58840
#b58840
#ffbf47
#ffdd00
#85994b
#85994b
#006435
#00703c
#28a197
#28a197
#2b8cc4
#5694ca
#005ea5
#1d70b8
#003078
#0b0c0c
#0b0c0c
#6f777b
#6f777b
#bfc1c3
#b1b4b6
#dee0e2
#f8f8f8
#f3f2f1
#ffffff
#ffffff
Changes to components and styles
It also makes changes to the way that some of these colours are used, including:
Maintaining compatibility with GOV.UK Template, Frontend Toolkit and Elements
When GOV.UK Frontend is run in 'compatibility mode', the legacy palette will be used and components will continue to use the existing colours (for example, the panel will continue to be turquoise).
This is so that services can continue to adopt GOV.UK Frontend gradually, without having a mix of the two different palettes appearing within a service or a single page.
To support this:
$govuk-use-legacy-palette
has been added, which by default will betrue
if any of$govuk-compatibility-govukfrontendtoolkit
,$govuk-compatibility-govuktemplate
or$govuk-compatibility-govukelements
aretrue
.govuk-colour
function has been updated to add a$legacy
argument, which specifies the colour (either a literal, or a name of a colour from the legacy palette) to use when$govuk-use-legacy-palette
istrue
.$govuk-use-legacy-palette
Any new components that are implemented whilst this arrangement is in place will need to be designed for both contexts.
You can see how 'legacy mode' looks in the review app by appending
?legacy=1
to the URL:https://govuk-frontend-review-pr-1288.herokuapp.com/?legacy=1