Skip to contents

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")
  )
Ash Cloud and Blood

Simulated watercolours in ggplot2 using the transparent polygon method

Ghosts on Marble Paper

Abstract landscapes generated using ambient

Ice Floes

Abstract icebergs generated using ambient

For inset layouts, the colour needs to be partly transparent if you want the image underneath to show through:

galleries[1:3, ] %>% 
  cards(
    title = long_name,
    text = blurb,
    link = gallery_url,
    image = image_url,
    layout = "inset-bottom",
    label_colour = c("#d6caddaa", "#ffffffaa", "#c4d8e2aa"),
    breakpoint = 5
  )
Ash Cloud and Blood

Simulated watercolours in ggplot2 using the transparent polygon method

Ghosts on Marble Paper

Abstract landscapes generated using ambient

Ice Floes

Abstract icebergs generated using ambient