Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove names from color vectors before modifying #62

Closed
gadenbuie opened this issue Jul 5, 2021 · 0 comments
Closed

Remove names from color vectors before modifying #62

gadenbuie opened this issue Jul 5, 2021 · 0 comments
Labels
priority: high High priority type: bug It's a bug

Comments

@gadenbuie
Copy link
Owner

library(xaringanthemer)

palette <- c(
  primary = "#1381B0",  # Blue
  secondary = "#FF961C" # Yellow/orange
)

style_duo_accent(
  outfile = NULL,
  primary_color = palette["primary"],
  secondary_color = palette["secondary"],
  inverse_header_color = "#FFFFFF"
)
#> Error: Color names in `colors` must be valid CSS classes

happens because primary.primary and secondary.secondary are names in the color vector and fails checks that they'll be valid CSS.

@gadenbuie gadenbuie added priority: high High priority type: bug It's a bug labels Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high High priority type: bug It's a bug
Projects
None yet
Development

No branches or pull requests

1 participant