Search code examples
csssassjekyll

How do I change the background color for code block in jekyll?


I'm playing with Jekyll, and have been able to change the background colour for my site. However, no matter which background or background-color properties I change in _syntax-highlighting.scss, I still get the same light grey background (even if I restart the jekyll server).

None of the css/sass default files seem obvious to me for this, either.


Solution

  • _sass/base.scss and change pre, code rule :

    pre,
    code {
        ...
        background-color: #eef;
    }