Comments (3)
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.
from better-roam-research.
If anyone comes up with some better overrides, please do share. Thanks!
from better-roam-research.
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)
- Queries in darkmode HOT 4
- Adjustable font size HOT 1
- dark.css (forced theme) doesn't have --accent-color HOT 1
- .rm-alias is missing --accent-color in light.css HOT 1
- margin-top for version-bullet HOT 1
- Could seperate the --accent-color in light and dark theme? HOT 1
- missing style in help panel view HOT 1
- Roam42 SmartBlock PopUp in Dark Mode is Hard to See HOT 5
- Text max-width conflicts with new feature to adjust page width HOT 3
- TODO checkbox is misaligned in kanban item HOT 2
- In the MacOS dark mode, the color of {{diagram}} is not correct HOT 4
- The delete button text has low contrast
- The toggle button on the right sidebar is hard to click on
- --accent-color seems to break the theme HOT 1
- CORS error trying to access the link-glyph-mask.png on S3
- Looks like the S3 bucket assets is gone?
- Problem when trying to collapse/expand nodes in the right sidebar
- Large space inserted after external links HOT 1
- CSS not triggering HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-roam-research.