markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Can I pull a theme?

Open Tyxiang opened this issue 2 years ago • 3 comments
trafficstars

This theme will be based on Github theme, but h1 and h2 will be displayed in the center, and there will be no hr line.

Tyxiang avatar Sep 21 '23 11:09 Tyxiang

If you want to have a custom theme follow the manual install steps and then update the GitHub theme on your local computer.

simov avatar Sep 21 '23 11:09 simov

I think you can add style in your markdown file, or link a css file to your markdown to override the extension theme

Esscraye avatar Sep 28 '23 11:09 Esscraye

Could you please add an empty theme with no presets in index.css? If one wants to develop their own local theme, it’s much easier to start with a predictable blank slate than to fight against the existing styles.

natewind avatar Dec 09 '23 02:12 natewind

Custom theme support landed in v5.3, have a look at the documentation

When you select the CUSTOM theme at the bottom of the themes dropdown you get a blank theme, exactly as suggested above. Then you can add a style tag in your markdown and create your own theme, here is an example. Once you are ready go to the Advanced Options page and click on Settings in the header, if the CUSTOM theme is selected there will be a button below to select your .css file and make it permanent. Don't forget to remove the inline tag from your document. You can also update or remove the uploaded custom theme.

simov avatar May 04 '24 15:05 simov