Closed ThatOneCalculator closed 2 years ago
Looks like there's no generic function for checking if a ggthemr_swatch
is a colour, but using just a vector seems to do the trick. There were also some errors when using lists for the text and line parameters, again, just using vectors seems to have resolved that:
rose_pine <- define_palette(
background = '#1f1d2e',
text = c('#555169', '#e0def4'),
line = c('#e0def4', '#c4a7e7'),
gridline = '#504940',
swatch = c(
'#e0def4',
'#eb6f92', '#f6c177',
'#ebbcba', '#31748f',
'#9ccfd8', '#c4a7e7'),
gradient = c('#31748f', '#9ccfd8')
)
Code:
Error: