Convenience functions for common operations.

important_(value)

url_(value)

rgb_(r, g, b)

rgba_(r, g, b, a = 0.5)

Arguments

value

Value to use.

r, g, b, a

Red, green, blue, and alpha values.

Functions

  • important_() - Makes it such that the rule cannot be overwritten by other rules (other selections).

  • rgb_(), rgba_() - Functions for red, green, blue and alpha for transparency.

  • url_() - Wrap in a url CSS function call.

Examples

Linne$ new()$ rule( sel_id("id"), color = rgba_(255, 255, 255, .6), fontSize = important_(20) )