Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 25, 2024
1 parent 5718d28 commit 3f7e64d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions R/scale_color_metro.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,18 @@ scale_fill_metro_c <- function(palette = "complement",

# The palette based on metro design colors: https://www.materialui.co/metrocolors
metro_colors_list <- c(
`red` = "#e51400",
red = "#e51400",
`dark red` = "#a20025",
`purple` = "#aa00ff",
purple = "#aa00ff",
`deep purple` = "#76608a",
`blue` = "#0050ef",
blue = "#0050ef",
`light blue` = "#1ba1e2",
`teal` = "#00aba9",
`green` = "#008a00",
teal = "#00aba9",
green = "#008a00",
`light green` = "#60a917",
`yellow` = "#e3c800",
`amber` = "#f0a30a",
`orange` = "#fa6800",
yellow = "#e3c800",
amber = "#f0a30a",
orange = "#fa6800",
`deep orange` = "#a0522d",
`blue grey` = "#647687"
)
Expand Down Expand Up @@ -202,9 +202,9 @@ metro_colors <- function(...) {


metro_palettes <- list(
`full` = metro_colors(),
`ice` = metro_colors("purple", "deep purple", "blue", "light blue"),
`rainbow` = metro_colors(
full = metro_colors(),
ice = metro_colors("purple", "deep purple", "blue", "light blue"),
rainbow = metro_colors(
"purple",
"deep purple",
"blue",
Expand All @@ -216,9 +216,9 @@ metro_palettes <- list(
"deep orange",
"red"
),
`contrast` = metro_colors("blue", "green", "amber", "purple", "red"),
`light` = material_colors("light blue", "red", "yellow", "light green", "orange"),
`complement` = metro_colors(
contrast = metro_colors("blue", "green", "amber", "purple", "red"),
light = material_colors("light blue", "red", "yellow", "light green", "orange"),
complement = metro_colors(
"blue grey",
"blue",
"light blue",
Expand Down

0 comments on commit 3f7e64d

Please sign in to comment.