By default the label_colour
argument is set to NULL
, and is interpreted as a CSS value of "inherit"
. However, you can override this and set the card label colour manually. The label_colour
argument will accept any valid colour string recognised by R. The input can either be a single colour or a vector assigning each card a different label colour:
galleries[1:3, ] %>%
cards(
title = long_name,
text = blurb,
link = gallery_url,
image = image_url,
label_colour = c("#d6cadd", "antiquewhite", "#c4d8e2")
)
Simulated watercolours in ggplot2 using the transparent polygon method
Abstract landscapes generated using ambient
Abstract icebergs generated using ambient
For inset layouts, the colour needs to be partly transparent if you want the image underneath to show through: