#' Extract hex codes using regex pattern
#'
#' @param pattern Regex pattern to search palette names
#'
#' @examples
#' tailwind_cols_regex('yellow-.*')
#' tailwind_cols_regex('.*-400')
#'
#' @export
tailwind_cols_regex <-
function(pattern) {
stored_colours <- ggtailwind::default_colour_palette
stored_colours[grep(pattern, names(stored_colours))]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.