revealjs: Sass variables - How does how the $code-color
argument work?
#2360
-
Hi everyone, I was trying to play around with the code color in a revealjs presentation using a custom scss file. I do not understand how the $code-color argument works. Its default is var(–quarto-hl-fu-color). Can anyone explain what that means and what a custom value would look like? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
It looks like we're using the text highlighting theme's color (when we provide code highlighting via a theme, we also write CSS variables that could be used when coloring things with CSS that you'd like to be responsive to syntax highlighting). You should be able to set this to a simple CSS color:
Does that make sense? |
Beta Was this translation helpful? Give feedback.
-
I am assuming, you are not at all familiar with Sass/SCSS. |
Beta Was this translation helpful? Give feedback.
I am assuming, you are not at all familiar with Sass/SCSS.
Some examples of Reveal.js theme modifying this parameter and others: