Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

32 lines
1.0KB

  1. #' Bulma Constants
  2. #'
  3. #' Returns possible values or strings for a number of Bulma variables.
  4. #'
  5. #' @param variable One of "colors", "column sizes", "viewports"
  6. #' @examples
  7. #' bulma_constants("colors")
  8. #' bulma_constants("column sizes")
  9. #' bulma_constants("viewports")
  10. #'
  11. #' @export
  12. bulma_constants <- function(
  13. variable = c("colors", "column sizes", "viewports", "alignment")
  14. ) {
  15. variable <- tolower(variable)
  16. switch(
  17. match.arg(variable),
  18. "colors" = c(
  19. "white", "black", "light", "dark", "primary", "info", "link",
  20. "success", "warning", "danger", "black-bis", "black-ter",
  21. "grey-darker", "grey-dark", "grey", "grey-light", "grey-lighter",
  22. "white-ter", "white-bis"),
  23. "column sizes" = c(
  24. "full", "four-fifths", "three-quarters", "two-thirds",
  25. "three-fifths", "half", "two-fifths", "one-third", "one-quarter",
  26. "one-fifth"),
  27. "viewports" = c(
  28. "mobile", "tablet", "touch", "desktop", "widescreen", "fullhd"),
  29. "alignment" = c("centered", "justified", "left", "right")
  30. )
  31. }