question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] Theme the preview from .Xresources or pywal

See original GitHub issue

I have been tinkering with this for some time, but basically the idea is to reference colors generated by pywal, which can be imported with @import url('file:///home/username/.cache/wal/colors.css');.

These colors would be used as the background, foreground and highlighting, so the markdown preview would look almost like a native application running on the system.

I can’t seem to figure out how to edit these properties though. I can change the background color and stuff when changing the file set as mkdp_markdown_css, but I don’t want to override any of the other markdown stylings.

There seem to be variables for “background color” and such in all of the CSS files, I just am not sure what to edit to get the correct results.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
GideonWolfecommented, Jan 29, 2020

The feature has been completed and rolled into vim.reaper.

I had to trick the plugin into hosting the colors.css file thinking it was highlights.css, because otherwise no browser could see it. I transferred the CSS for the highlighting into the markdown.css file.

1reaction
iamccocommented, Jan 27, 2020

markdown css file is link after page css file. so you can change any rules that page css defined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

**PYWAL CHEATSHEET** - Schotty.com
Pywal is a tool to generate/change theme colors for your terminal and ... Choose either xresources or xresources-reverse (you can check the preview...
Read more >
For those of you who use pywal but aren't quite happy ... - Reddit
I just installed it. I was installing ewal and then ewal-spacemacs-themes , which resulted wrong. It was just matter of intall ewal-spacemacs ...
Read more >
Blogmap - Perhaps we are asking the wrong questions…
14 May 2021 Enhancing Photorealism Enhancement ... 30 Jul 2020 Windows Terminal Preview 20 Jul 2020 A Logo ... 12 Nov 2019 Xresources...
Read more >
updates · fef416d8ff - dotfiles - Gitea - Abhik Jain
gtk-icon-theme-name=Yaru-Purple ... nnoremap <space>ei :edit ~/vimwiki/Improvement list.wiki<CR> ... __requires__ = 'pywal==3.3.0'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found