quarto-dev / quarto-dev/quarto-cli

Is it possible to set the callouts background opacity and text color?

Open
#556 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

callouts enhancement
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):

  1. 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

  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.