powered by
Tailwind CSS color palettes.
rgb_tw3( palette = c("slate", "gray", "zinc", "neutral", "stone", "red", "orange", "amber", "yellow", "lime", "green", "emerald", "teal", "cyan", "sky", "blue", "indigo", "violet", "purple", "fuchsia", "pink", "rose"), n = 10, alpha = 1, reverse = FALSE )
Palette type. There are 22 available options:
"slate"
"gray"
"zinc"
"neutral"
"stone"
"red"
"orange"
"amber"
"yellow"
"lime"
"green"
"emerald"
"teal"
"cyan"
"sky"
"blue"
"indigo"
"violet"
"purple"
"fuchsia"
"pink"
"rose"
Number of individual colors to be generated.
Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.
alpha
grDevices::rgb()
Logical. Should the order of the colors be reversed?
Nan Xiao | me@nanx.me | https://nanx.me
https://tailwindcss.com/docs/customizing-colors
library("scales") show_col(pal_tw3("rose")(10)) show_col(pal_tw3("rose", n = 30, alpha = 0.6, reverse = TRUE)(30))
Run the code above in your browser using DataLab