grip icon indicating copy to clipboard operation
grip copied to clipboard

Dark theme

Open alem0lars-yr opened this issue 7 years ago • 11 comments

It would be useful to also have some theming options, maily for a dark theme.

alem0lars-yr avatar Mar 09 '17 10:03 alem0lars-yr

The default output viewed in chromium/chrome with the Deluminate extension works very well for me.

kba avatar Mar 09 '17 11:03 kba

I don't use Chrome, I use uzbl.

alem0lars-yr avatar Mar 09 '17 14:03 alem0lars-yr

This one works perfectly for me https://userstyles.org/styles/37035/github-dark

Atcold avatar Jun 14 '17 19:06 Atcold

@Atcold How did you manage to apply that theme to generated html? Did you modify the template?

alem0lars-yr avatar Jun 15 '17 06:06 alem0lars-yr

From the style editing panel:

  • Add;
  • URLs matching the regexp;
  • http://localhost:5000/.*.

Atcold avatar Jun 15 '17 15:06 Atcold

That only affects the appearance in the browser, not the contents of the generated html file itself.

kikijiki avatar Jul 07 '17 07:07 kikijiki

@kikijiki, yes, of course. The visualisation engine is going to be GitHub, after all, no? Right now I have Grip previewing the documentation as it will appear in the repo, when I push it. Both of them have a dark theme applied in the browser.

What is that you're trying to achieve instead?

Atcold avatar Jul 11 '17 19:07 Atcold

I'm using grip to export the file as html to distribute it, it would be cool if the file itself contained the dark style modifications.

kikijiki avatar Jul 12 '17 03:07 kikijiki

Copy and paste the content of the CSS theme file?

Atcold avatar Jul 12 '17 22:07 Atcold

GitHub now has an official dark mode: https://github.com/settings/appearance

electrum avatar Jan 01 '21 21:01 electrum

Just posted a PR that implements full GitHub theme support. #335

If you can't wait for it to merge, uninstall your current grip, then:

git clone https://github.com/aparajita/grip.git
cd grip
git checkout theming
pip3 install -r requirements.txt

# to run
python3 /path/to/grip/grip/__main__.py

You'll probably want to make that last line into an alias to grip.

aparajita avatar Mar 27 '21 19:03 aparajita