Convert a list of colors to SCSS/Sass variables or classes
colors2css.Rd
Convert a list of colors to SCSS/Sass variables or classes
Arguments
- file
A connection, or a character string naming the file to print to. If
""
(the default),cat
prints to the standard output connection, the console unless redirected bysink
. If it is"|cmd"
, the output is piped to the command given bycmd
, by opening a pipe connection.- color_theme
2-layer list
with dark/light themes
See also
Other color:
color_cycle()
,
color_distance()
,
color_luminance()
,
color_match()
,
color_rgb_table()
,
color_separate()
,
color_text_by_luminance()
,
css_col2vec()
,
luminance_filter()
,
rgb2hex()
Examples
colors2css(c(a = "white", b = "green"))
#> [1] "$a: white;" "$b: green;"