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

Use cli themes #19

Open
davidchall opened this issue Jun 29, 2022 · 1 comment
Open

Use cli themes #19

davidchall opened this issue Jun 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@davidchall
Copy link
Owner

Currently, printing a template uses hardcoded colors. But the appropriateness of these colors depends on the user's terminal theme. For example, if they use dark mode and we hardcode black text, then they can't see the text.

The solution is to use custom cli classes. Then the user can specify how they want each cli class to be rendered using options(cli.user_theme). See example. The custom cli classes should be:

  • jinjar_text
  • jinjar_variable
  • jinjar_block
  • jinjar_comment
@davidchall
Copy link
Owner Author

This is currently blocked by r-lib/cli#491.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant