quarto-dev / quarto-dev/quarto-cli
Is it possible to set the callouts background opacity and text color?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Hi folks!
First of all, thank you for this great system! I've been testing Quadro and I'd like to suggest 2 modifications to the Callouts options, to enable better control when generating a custom dark mode (both HTML and PDF):
-
Add an option to customize the background color opacity for the entire callout and also its title. Reference:
/src/resources/filters/quarto-pre/callout.lua#L302
/src/resources/filters/quarto-pre/callout.lua#L303
/src/resources/filters/quarto-pre/callout.lua#L351 -
Add the coltext to the options and also attribute it to a variable.
If you prefer this suggestion as a PR, please let me know. :)
Thank you,
Sergio
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading /src/resources/filters/quarto-pre/callout.lua at the referenced lines 302, 303, and 351 to understand the existing callout options and styling. Verify the change by generating both HTML and PDF output with dark-mode callouts, confirming that background opacity and title/text colors can be configured independently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100