rhysd / Shiba

Rich markdown live preview app with linter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add CSS styling to Documentation

opened this issue · comments

I just noticed on 0.4.0 release notes the reference to {config dir}/user.css which I assume is custom CSS stylesheet?

If so, perhaps you could place an example CSS in the Documentation so we have reference for all the various CSS selectors available to style Shiba's output. Then I can get started on tufte-css 😄

Then I can get started on tufte-css

Oh, maybe you can't. Markdown preview area is isolated by <markdown-preview> web component. It is not possible to apply stylesheets to inside of web component from outside.

It is not possible to apply stylesheets to inside of web component from outside.

Ohhh, that's too bad. Does it need a LESS version of tufte-css?

It's not a problem of file format. WebComponents encapsulate styles in the components. So we can't modify it from index.html.

I agree that tufte-css is very nice, so I already added the tufte theme to TODO list. And I also create issue #9 for that.

Ok cool. thanks.