R/css.R

Defines functions get_css

get_css <- function(table_id = NULL) {
  css_path <- system.file("tinytable.css", package = "tinytable")
  css <- paste(readLines(css_path, warn = FALSE), collapse = "\n")

  # Framework CSS remains global - no scoping needed
  # Individual cell CSS rules are scoped in html_style.R instead

  return(css)
}

Try the tinytable package in your browser

Any scripts or data that you put into this service are public.

tinytable documentation built on Nov. 5, 2025, 5:42 p.m.