tailwind_assets: Tailwind CSS assets

Description Usage Arguments See Also

View source: R/tailwind-assets.R

Description

Include this in {htmltools} tags to include the rendered Tailwind CSS file in the current page so that it can be used.

Usage

1
2
3
4
5
6
7
8
tailwind_assets(
  input = pkg_inst("tailwind", "tailwind.css"),
  config = pkg_inst("tailwind", "tailwind.config.js"),
  output = pkg_inst("tailwind", "dist", "tailwind.css"),
  prod = FALSE,
  vers = NULL,
  build = !prod
)

Arguments

input

(pth) path to the input css file with tailwind directives

config

(pth) path to the config js file that dictates rendering

output

(pth) path to the output css file that can be linked

prod

(flg) whether this inclusion is in production

vers

(flg) version of the tailwind dependency, defaults to the hash digest of the current time

build

(flg) whether to build the tailwind CSS file; default is FALSE if prod == TRUE, and TRUE if prod == FALSE

See Also

Other Tailwind CSS: tailwind_build(), tailwind_demo(), tailwind_init(), tailwind_install(), tailwind_run()


tjpalanca/tailwind.R documentation built on Dec. 23, 2021, 10:59 a.m.