custom_css: Return a CSS file as a string

View source: R/render-html5.R

custom_cssR Documentation

Return a CSS file as a string

Description

Given a filename, this function will load the file name from the current working directory. If it is not found from the current working directory it will search in the package for a a matching filename and load that instead. If an id is specified, that will be prepended to all CSS selectors (TODO: make this substitution more robust). The result is returned as a string.

Usage

custom_css(filename, id = NA)

Arguments

filename

Name of the CSS file to load

id

CSS id to prepend to all entries

Value

String of possibly modified CSS file

Examples

custom_css("lancet.css", "tbl1")

tangram documentation built on Feb. 16, 2023, 5:59 p.m.