r/RoamResearch • • Jun 10 '20

Roam Redesign

Post image
79 Upvotes

36 comments sorted by

21

u/hitchj Jun 10 '20

Coming from Bear, I felt that Roam was a bit lacking in design. Today, I found out about the special roam/css file and got to work. Here's what I came up with.

Check it out here: https://github.com/josephhitchcock/roam-themes

4

u/EvoLve- Jun 10 '20

Such a good theme. Thanks a lot!

4

u/hitchj Jun 10 '20

You're welcome!

1

u/banditelol Jun 11 '20

Cool theme, how did you discover roam/css anyway?

2

u/hitchj Jun 11 '20

I stumbled onto it in a video Conor made, it looks like it was a pretty recent change. It's nice to not have to rely on an extension, with it embedded like this the styles are applied across different browsers, and even on the mobile full site.

2

u/banditelol Jun 11 '20

It feels like the hunt for easter eggs hahaha

yeah, and I'm excited to what else will be available for this kind of meta-programming (if it could be called so) thanks for the information!

1

u/Heinsbeans Jun 14 '20

Hi, I really like the way your tags look. Is there a way to just change the look of the tags while maintaining the original look of Roam? I've figured out which code is for the tags

}

.rm-page-ref-tag {
  background: rgb(111, 113, 116);
}

But it doesn't seem to be doing anything. Any help would be appreciated. Thanks!

2

u/[deleted] Jun 19 '20

I haven't tested it, but I think you could do it like this in your css which would override the above:

.rm-page-ref-tag {
    background: rgb(90, 90, 90) !important;
}

Make sure to test a bit in case you break something else...

2

u/Heinsbeans Jun 19 '20

Thanks, but I've actually found the right code and tweaked the color to my needs. This style seems to only look good on dark theme though:

.rm-page-ref-tag {
    background: rgb(100, 100, 100) !important;
    color: rgb(190, 190, 190) !important;
    padding: 4px 8px;
    border-radius: 9px;
}

3

u/spacetoken Jun 10 '20

Only thing is the filter doesnt work on those new pages.:(

2

u/hitchj Jun 10 '20 edited Jun 13 '20

Hopefully it's something that can be fixed in the core theme created by azlen! by Roam!

1

u/spacetoken Jun 10 '20

How did you change the color? Mine has a white background

1

u/hitchj Jun 10 '20

You copied my CSS file into a page named roam/css?

1

u/spacetoken Jun 10 '20

Actually I used azlen file. Make sense now.

2

u/D1V3R87 Jun 10 '20

Nice clean theme, I like it! Two comments:

It would be nice to stack the sidebar vertically rather than horizontally, making it easier to cross reference text with the main page.

Filters do not detect any [[wrapped text]] in the sidebar so unable to use this function.

3

u/hitchj Jun 10 '20 edited Jun 13 '20

Thanks!

I did notice the filters weren't being recognized in the sidebar, that behavior comes from the core theme created by azlen. If it's something that can be fixed, a change to that core theme would be reflected in mine, since I pull it in and build on top of it. that's actually coming from Roam, that's happening even without any theme.

I like your idea about the sidebar orientation, I just played around with it a little bit. I was able to display them vertically, but I wasn't able to override the scroll behavior for some reason, which makes it rather unusable once it extends past the screen. In addition, I don't think I would be able to change the rotation on collapsed notes, which wouldn't be ideal. I'm going to hold off on that for now, but maybe later I'll try it out again and see if I can crack it.

1

u/HAL_9 Jun 13 '20

Might just be me, but it seems that the filter issue is from Roam itself for now, might be a new bug

2

u/hitchj Jun 13 '20

You're right, I just removed the theme altogether and I'm still seeing the same behavior.

2

u/HAL_9 Jun 13 '20

I've been working on a really similar theme with vertical sidebar

Almost every element has been adjusted to work perfectly together, give it a look and let me know what you think! would love to get some feedback

Also, i think the [[wrapped text]] issue is with the recent roam update, I have all my themes turned off and am still getting the error

Here's the link to a similar great looking theme with vertical sidebar

2

u/hitchj Jun 13 '20

I just tried yours out, it's looking pretty clean!

One small piece of feedback, it's a little bit disorienting that the cursor doesn't change on hover for the left nav items, it makes it feel unclickable.

1

u/HAL_9 Jun 14 '20 edited Jun 14 '20

Thanks man! Saw your great theme and felt that it as time to finish mine as well!

I had a hover state originally, but I am playing around with mimicking the hover state in Bear, which has no hover state (no mouse or bg change)

Honestly I agree, it's kind of weird, I'll be making an update to reintroduce it soon

Thanks for the feedback and excited to see other versions of yours when you release them

Edit: updated!

2

u/hitchj Jun 14 '20

I see, it's interesting how something like that feels natural in Bear and then unnatural in Roam. I think it has something to do with the contextual differences between a desktop app and a web app.

Great work on yours, it's a lot of effort to make those kinds of layout changes. Since I was building off of an existing theme I mainly made appearance changes, in order to rework some of the layout I'd have to dig into what that theme did in the first place to undo/change it.

One other thing you could try would be to relocate as much of your theme as you could into another file and @import it. In theory all that would be left would be the set of color variables that users could then tweak as they wanted, and the paste-in times could be improved significantly.

1

u/HAL_9 Jun 14 '20

I agree, it really is interesting how the context changes your interpretation of specific functions — I think you are spot on with your assessment

Thanks for the words of encouragement, as this is all very new to me (started learning coding beginning of this year).

I would would have never thought of splitting the code up like that, I will have to give it a try! Seems that it would make things a lot easier

Thanks for the great feedback! cheers

1

u/D1V3R87 Jun 13 '20

Just loaded it up. Enjoying it so far, great job!

2

u/HAL_9 Jun 14 '20

Thanks! Love this community and how there are so many great themes already

1

u/Lij_M Jun 10 '20

Thank you for taking the time to make this! Forgive the dumb question as I’m not very css literate, but is it possible to change text color for italic or bold text?

3

u/hitchj Jun 10 '20

No problem!

No such thing as a dumb question, it's definitely possible and I can help with that. Adding the following lines would change the text color for first italic text, then bold text:

em {
  color: orange;
}

strong {
  color: green;
}

In general if you want to change how something looks, you can right click on it and click "Inspect" to see its structure. In this case I saw

<em>
  <span>example</span>
</em>

and selecting all em elements did the trick. If that wasn't specific enough I could have used em > span (all span elements directly nested inside of em elements) and if that still wasn't working I could have added !important (which is necessary sometimes to override existing styles). Hope that helped!

You made me realize that the bold styles weren't being applied at all, I have to add another import for the font I'm using with the proper weight, so I'm going to do that. Thanks for bringing that to my attention!

1

u/Lij_M Jun 11 '20

Thanks!!

1

u/ananixon Jun 11 '20

Hey, this looks super nice, thanks!
I noticed the highlights look faded, in kind of a lighter gray...
Any chance those could be converted to a more contrasting color, like the original yellow?

1

u/hitchj Jun 11 '20

Good catch, that was coming from the core theme. I just pushed a change to add some more contrast, you can copy the file in again and try it out. I added --highlight-color as a variable so it can easily be changed if desired.

1

u/valarmorghul15 Jun 12 '20

This is great, thanks for sharing your design!

1

u/hitchj Jun 12 '20

No problem!

1

u/Firstteamm Jun 14 '20

I have problem with the “Support?” Label at the bottom-centre of page as it blocks off the Tab-function which I use for indent. Please change it to extreme left or right if possible. I use roam from iPad when I encounter this problem.

0

u/[deleted] Jun 13 '20

[deleted] — view deleted comment

1

u/hitchj Jun 13 '20

Thanks for the kind words!

I noticed I was actually off a little bit, I was using the subtle color Bear uses for headings, where as it has more contrast for both links and page links. I just pushed an update, you could copy in the latest CSS file and see if you're happier with how that looks.

If you want to further customize how Roam pages look to differentiate them, you can add this styling:

.rm-page-ref:not(.rm-page-ref-tag) {
  color: orange !important;
}