Replies: 1 comment
-
These would be the default in the YAML. If a user wants to modify the themes, by either replacing or adding to it, it will work as with default formats, i.e., users will need to include your default and their theme to have something complementary. Now regarding what's the best way to include the assets by LUA or path. I am not sure, but it can be checked easily I think. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'd like to style custom elements that an extension creates available in a Quarto document with both
dark
andlight
theme variants. What is the best way to include these assets? Would the registration allow for users to re-style with their own preferences (through a similarly named stylesheet or later specified user-stylesheet)?The two possible approaches would be:
css
registration within thelua
filter; and,theme
option under formats.For the first option, I think this would mean two calls into
quarto.doc.add_html_dependency()
. This gives:For the overriding the format option, I think the following should yield the desired overrides based on
theme
option description.Beta Was this translation helpful? Give feedback.
All reactions