Skip to content

Retun as named list? #46

@rjake

Description

@rjake
library(simplecolors)

highlight_colors <- simplecolors::sc_across(light = 1, return = "table")
#                                                                ^^^^^                                      


highlight <- 
  set_names(
    highlight_colors$hex,
    str_remove(highlight_colors$color_name, "\\d")
  ) |> 
  as.list()


highlight$red
# #F9D2D2

highlight$blue
#  "#D2DFF9"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions