Coder Social home page Coder Social logo

Comments (8)

muesli avatar muesli commented on June 15, 2024

Easy enough to change, but currently that's behaving as intended. I'm a bit torn on this one 😄

@toby What do you think?

from glamour.

meowgorithm avatar meowgorithm commented on June 15, 2024

In my case, when developing styles, my hope in setting the background color was to achieve something like this to aid readability. In other words, make it clear that exactly which parts are code:

Screen Shot 2019-12-09 at 7 56 21 AM

Generally, I'd expect background colors on block-level elements to color the block, same as with HTML/CSS.

from glamour.

muesli avatar muesli commented on June 15, 2024

Yeah, makes sense.

from glamour.

meowgorithm avatar meowgorithm commented on June 15, 2024

That’s still not something we can also do with code colored by Chroma, eh?

from glamour.

muesli avatar muesli commented on June 15, 2024

We can do it, but we'd have to adjust the chroma theme's background color to the same value.

from glamour.

meowgorithm avatar meowgorithm commented on June 15, 2024

If it can apply the theme’s background By default that’s actually good. Would mean light themes can work on dark terminals.

from glamour.

muesli avatar muesli commented on June 15, 2024

Ah, that's a good idea, didn't think about doing it the other way round! I think we should be able to retrieve the chroma theme's bgcolor indeed.

from glamour.

pbjer avatar pbjer commented on June 15, 2024

After a fair amount of experimentation, it seems it still isn't possible to render a code-block in the desired fashion, even when using the prescribed approach in this comment. As far as I can tell the chroma theme background is neither picked up nor able to be overridden to achieve the desired affect. And the only way to apply any background to a codeblock results in the original description of this issue.

I'd be happy to take a stab at a PR to address if that's welcome, but the wedge for where this should happen is currently unclear to me.

from glamour.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.