-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from ScotGovAnalysis/sss-colours
Add Social Security Scotland colours
- Loading branch information
Showing
22 changed files
with
230 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
# nolint start | ||
# nolint: start | ||
#' @title Scottish Government colour names and hex codes | ||
#' | ||
#' @description A vector containing colour names and their corresponding | ||
#' hex code. | ||
#' @description | ||
#' * \code{sg_colour_values} is a vector containing colour names and their corresponding | ||
#' hex codes. | ||
#' * \code{sg_colour_palettes} is a list grouping colours into palettes. | ||
#' | ||
#' @format A character vector | ||
#' @source \href{https://designsystem.gov.scot/guidance/charts/data-visualisation-colour-palettes}{Scottish Government Design System} | ||
# nolint end | ||
#' @md | ||
# nolint: end | ||
|
||
"sg_colour_values" | ||
|
||
#' @rdname sg_colour_values | ||
"sg_colour_palettes" | ||
|
||
# nolint start | ||
#' @title Scottish Government colour palettes | ||
#' | ||
#' @description A list grouping colours into palettes. | ||
|
||
#' @title Social Security Scotland colour names and hex codes | ||
#' | ||
#' @format A character list | ||
#' @source \href{https://designsystem.gov.scot/guidance/charts/data-visualisation-colour-palettes}{Scottish Government Design System} | ||
# nolint end | ||
#' @description | ||
#' * \code{sss_colour_values} is a vector containing colour names and their corresponding | ||
#' hex codes. | ||
#' * \code{sss_colour_palettes} is a list grouping colours into palettes. | ||
#' @md | ||
|
||
"sg_colour_palettes" | ||
"sss_colour_values" | ||
|
||
#' @rdname sss_colour_values | ||
"sss_colour_palettes" | ||
|
||
|
||
# nolint start | ||
#' @title Analysis Function colour names and hex codes | ||
#' | ||
#' @description A vector containing colour names and their corresponding | ||
#' hex code. | ||
#' @description | ||
#' * \code{af_colour_values} is a vector containing colour names and their corresponding | ||
#' hex codes. | ||
#' * \code{af_colour_palettes} is a list grouping colours into palettes. | ||
#' | ||
#' @format A character vector | ||
#' @source \href{https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/}{Government Analysis Function Colours Guidance} | ||
#' @md | ||
# nolint end | ||
|
||
"af_colour_values" | ||
|
||
|
||
# nolint start | ||
#' @title Analysis Function colour palettes | ||
#' | ||
#' @description A list grouping colours into palettes. | ||
#' | ||
#' @format A character list | ||
#' @source \href{https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-colours-in-charts/}{Government Analysis Function Colours Guidance} | ||
# nolint end | ||
|
||
#' @rdname af_colour_values | ||
"af_colour_palettes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Social Security Scotland (SSS) colours and palettes ---- | ||
|
||
sss_colour_values <- c( | ||
`navy` = "#201751", | ||
`pink` = "#ff2891", | ||
`purple` = "#461643", | ||
`orange` = "#e5682a", | ||
`dark-green` = "#0b4c0b", | ||
`green` = "#5d9f3c", | ||
`brown` = "#592c20", | ||
`light-pink` = "#ca72a2", | ||
`dark-blue` = "#002d54", | ||
`mid-blue` = "#0065bd", | ||
`light-blue` = "#55a8f2", | ||
`grey` = "#949494" | ||
) | ||
|
||
sss_colour_palettes <- list( | ||
`main` = sss_colour_values[c("navy", "pink", "purple", "orange")], | ||
`main-extended` = sss_colour_values[c( | ||
"navy", "pink", "purple", | ||
"orange", "dark-green", "green", | ||
"brown", "light-pink" | ||
)], | ||
`sequential` = sss_colour_values[c("dark-blue", "mid-blue", "light-blue")], | ||
`focus` = sss_colour_values[c("dark-blue", "grey")] | ||
) | ||
|
||
usethis::use_data(sss_colour_values, sss_colour_palettes, overwrite = TRUE) | ||
|
||
|
||
### END OF SCRIPT ### |
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.