codimd icon indicating copy to clipboard operation
codimd copied to clipboard

界面主題配色 / Support more themes

Open TzuChin opened this issue 10 years ago • 8 comments

目前"檢視區塊"是白色的,建議可以有暗色系的版本可切換, 同樣的"編輯區塊"也建議有亮色系可切換。 如果可以的話,能自己選色配置也是不錯。

Now only have white theme in "view" area, it would be nice to have some dark theme available. Also suggest the "edit" area have some light theme to choose. It would be better than enough if user can setup their own themes.

TzuChin avatar Apr 26 '16 15:04 TzuChin

Support light editor theme in 09fb1209678b2acc18ee13ee0c407278e67d2c06

jackycute avatar Jun 21 '16 13:06 jackycute

@jackycute You mean dark theme?

jimmybrancaccio avatar Jun 21 '16 18:06 jimmybrancaccio

@jimmybrancaccio No, I mean light theme of editor. The toggle showing on below image.

2016-06-19 4 59 30

jackycute avatar Jun 21 '16 18:06 jackycute

@jackycute Ah okay, I was reading the issue/comment and code wrong then 😝 Carry on!

jimmybrancaccio avatar Jun 21 '16 18:06 jimmybrancaccio

As per the Original Posting (OP) I suggest to rename this issue more specifically to Support night theme, which appears to be the main concern here.

almereyda avatar Jan 05 '17 05:01 almereyda

Here are some suggestions, but that covers only the easy things :smile: tables, code and some other things are still missing:

/* hackmd dark theme */
body, .ui-view-area, .markdown-body, .markdown-body img {
  background-color: #1E2126;
  color: #ABB2BF;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6, .markdown-body hr {
  border-color: #444 !important;
}
.ui-toc-dropdown .nav > .active:focus > a, .ui-toc-dropdown .nav > .active:hover > a, .ui-toc-dropdown .nav > .active > a {
  color: #ABB2BF;
  border-left-color: #337AB7;
}
.ui-toc-dropdown .nav > li > a:focus, .ui-toc-dropdown .nav > li > a:hover {
  color: #AAA;
  border-left-color: #337AB7;
}
.markdown-body blockquote {
  color: #AAA;
  border-left-color: #444;
}
.ui-edit-area .ui-resizable-handle.ui-resizable-e {
  background-color: #1C1C1E;
  border: 1px solid #343434;
  box-shadow: none;
}

sedrubal avatar May 07 '17 17:05 sedrubal

+1 I am amazed we have a dark editor but a blindingly bright view mode. I would appreciate this feature very much!

2E0PGS avatar Jan 11 '18 19:01 2E0PGS

I just merged this latest change to master. I'll close this issue for now. And verify that everything works correctly during this evening.

Further themes are not planned right now.

SISheogorath avatar Jan 16 '18 09:01 SISheogorath