Skip to contents

Returns a vector of colors forming a cohesive palette. Current palettes include:

  • Nominal: gruvbox,

  • Diverging: gruvbox_div, modern, bluered_light

Usage

stem_palettes(palette = "modern", n = NA)

Arguments

palette

Name of a palette.

n

Number of colors to extract. If NA, extracts all of them.

Value

A vector of color hexcodes

Examples

stem_palettes(palette = "gruvbox")
#> [1] "#fb4934" "#b8bb26" "#83a598" "#fabd2f" "#d3869b" "#8ec07c" "#fe8019"
stem_palettes(palette = "modern", n = 3)
#> [1] "#35978F" "#80CDC1" "#B0C89F"