Skip to content
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

Add more government approved colours? #14

Open
JT-39 opened this issue Oct 9, 2024 · 1 comment
Open

Add more government approved colours? #14

JT-39 opened this issue Oct 9, 2024 · 1 comment

Comments

@JT-39
Copy link

JT-39 commented Oct 9, 2024

I think this could be a relatively easy addition to the package, and super useful!

There are lots more colours that are in the GOV.UK colour palette. I think being able to access these through {afcolours} would be very helpful and continue to promote best practice use of colours.

For example, if you are designing an app which has a good or bad flag on an indicator you may want to colour this red or green. These red or green colours should be consistent with the GOV.UK colour palette.

Rather than copying and pasting the hex code in from the website shared earlier, you could access it through a function such as afcolours::colour_palette("green").

P.S.
Not sure if its possible but could even somehow sync it up the Sass variables so that the colours are always kept up to date.

@Olivia-Box-Power
Copy link

@JT-39 If you're producing a dashboard, the shinyGovstyle package might be of interest. It uses the GOVUK design system.

I'm not sure that the GOVUK design system colour palette has been tested for accessibility when producing charts.

For producing charts, there is also the afcharts package, which follows analysis function guidance and colour palettes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants