Giter VIP home page Giter VIP logo

Comments (4)

agoose77 avatar agoose77 commented on May 29, 2024 1

Whilst I think theme awareness would be a good feature, see also the dark theme : https://mermaid-js.github.io/mermaid/#/./theming?id=theme-variables-reference-table

from jupyterlab-markup.

ajdajd avatar ajdajd commented on May 29, 2024

I found a workable solution by altering the background color of a section.

image

I'll close the issue as this works for me.

from jupyterlab-markup.

TimGremalm avatar TimGremalm commented on May 29, 2024

I don't think the problem i solved. Please re-open it.

I tried by adding some CSS, I could manage to filter out a non light-theme by using CSS attribute selector, but think the .jp-RenderedMarkdown selector is too broad.

body[data-jp-theme-light="false"] .jp-RenderedMarkdown img{
	background: red;
}

Can we possible append classes jupyterlab-markup and appropriate svgbob mermaid to rendered SVG's?

If we had those class names we could easy add a backgroundcolor or whatever in https://github.com/agoose77/jupyterlab-markup/blob/master/style/base.css

from jupyterlab-markup.

agoose77 avatar agoose77 commented on May 29, 2024

Just following this up with a TODO @agoose77 -

  • We should add a dependency upon IThemeManager so that we can call mermaid.initialize with a dark/light theme.
  • Add a configuration option for the dark and light themes

from jupyterlab-markup.

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.