simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

Can I pull a theme? #222

Closed Tyxiang closed 2 months ago

Tyxiang commented 9 months ago

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.

simov commented 9 months ago

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

Esscraye commented 9 months ago

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

natewind commented 7 months ago

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.

simov commented 2 months ago

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.