Git Product home page Git Product logo

Comments (3)

intel352 avatar intel352 commented on August 12, 2024 2

I'm not a visual designer, prefer to leave that up to people that have an actual eye for it, but I've identified some styles that need to be overridden for code block styling in dark mode.

I updated the CSS block to the below:

@import url("https://linuz90.github.io/better-roam-research/main.css");
.cmt-punctuation {
  color: #67d8ef;
}
.cmt-propertyName {
  color: #ac80f7;
}
#text, .cmt-operator {
  color: #A9A9A9;
}
.cmt-labelName, .cmt-atom {
  color: #167;
}
body, .roam-body, .roam-app, .rm-pages-title-text {
  color: #09a9e3 !important;
}
span.bp3-button-text {
  color: #020024;
}
.rm-code-block {
  background-color: #213238;
}
.c2 .cm-gutters {
  background-color: #e5e5e5;
  color: #999;
}

It looks like shit still (screenshot attached), but it's at least legible, which can't be said for code block in the current dark-mode theme.
Screen Shot 2022-06-29 at 11 59 01 AM

from better-roam-research.

intel352 avatar intel352 commented on August 12, 2024

If anyone comes up with some better overrides, please do share. Thanks!

from better-roam-research.

blairharper avatar blairharper commented on August 12, 2024

Thanks @intel352 , this has been bothering me too - using your solution now until I have the time/energy to tweak the colours... with one slight modification. Replacing the selector:

body, .roam-body, .roam-app, .rm-pages-title-text

with:

cm-line

Means it only overrides the text colour within code blocks and not all text everywhere. Complete example:

@import url("https://linuz90.github.io/better-roam-research/main.css");
.cmt-punctuation {
  color: #67d8ef;
}
.cmt-propertyName {
  color: #ac80f7;
}
#text, .cmt-operator {
  color: #A9A9A9;
}
.cmt-labelName, .cmt-atom {
  color: #167;
}
.cm-line {
  color: #09a9e3 !important;
}
span.bp3-button-text {
  color: #020024;
}
.rm-code-block {
  background-color: #213238;
}
.c2 .cm-gutters {
  background-color: #e5e5e5;
  color: #999;
}

from better-roam-research.

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.