colors2css: Convert a list of colors to SCSS/Sass variables or classes

View source: R/utils_css_color.R

colors2cssR Documentation

Convert a list of colors to SCSS/Sass variables or classes

Description

Convert a list of colors to SCSS/Sass variables or classes

Usage

colors2css(colors, file = "", sass_vars = TRUE)

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 by sink. If it is "|cmd", the output is piped to the command given by ‘cmd’, by opening a pipe connection.

color_theme

2-layer list with dark/light themes

Value

msg Sass/SCSS formatted variables or classes

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"))

yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.