Currently it sets up a basic scaffold to use tailwind within an R package for a shiny application. All of the heavy lifting is done by tailwind itself.
✔️ now works with R-built UI.
Tailwind is "a utility-first CSS framework packed with classes [...]", all styling is done via classes.
This means there are no out-of-the-box compoenents that we can integrate here, e.g.: no "navbar". These will have to be built by yourself (they are much easier to build than you may think). The package may eventually provide helpers to design those.
You can install the development version of windy from GitHub with:
# install.packages("remotes")
remotes::install_github("devOpifex/windy")
- Create a package
usethis::create_package("mypkg")
- Scaffold
windy::scaffold()
- Run
windy::windy_build()
Change your CSS then run windy_build()
to rebuild the output CSS,
or run windy_watch()
to rebuild at every change.
You will find a very basic example at devOpifex/windy.example.