mdless icon indicating copy to clipboard operation
mdless copied to clipboard

Standard Theme Presets

Open lamyergeier opened this issue 5 years ago • 6 comments

It will be great to have standard theme presents for popular colour schemes like Solarized Dark, Solarized Light.

It will be good to have this as a part of the repositories so that it will be easier for users to switch to standard themes.

lamyergeier avatar Jun 06 '20 11:06 lamyergeier

If you create themes, I'd be happy to include them in the repository.

-Brett

On 6 Jun 2020, at 6:53, Anish Mittal wrote:

It will be great to have standard theme presents for popular colour schemes like Solarized Dark, Solarized Light.

It will be good to have this as a part of the repositories so that it will be easier for users to switch to standard themes.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/mdless/issues/50

ttscoff avatar Jun 06 '20 15:06 ttscoff

@ttscoff I am experimenting with the theme colour for white background. Could you please clear one doubt? This is how I modified it:

---
metadata:
  border: d blue on_black
  marker: d black on_black
  color: d black on_white
emphasis:
  bold: b
  italic: u i
  bold-italic: b u i
h1:
  color: b intense_black on_white
  pad: d black on_white
  pad_char: "="
h2:
  color: b black on_intense_white
  pad: d black on_intense_white
  pad_char: "-"
h3:
  color: u b yellow
h4:
  color: u yellow
h5:
  color: b black
h6:
  color: b black
link:
  brackets: b black
  text: u b blue
  url: cyan
image:
  bang: red
  brackets: b black
  title: cyan
  url: u yellow
list:
  bullet: b intense_red
  number: b intense_blue
  color: intense_black
footnote:
  brackets: b black on_black
  caret: b yellow on_black
  title: x yellow on_black
  note: u white on_black
code_span:
  marker: b white
  color: b black on_intense_white
code_block:
  marker: intense_white
  bg: on_white
  color: black
  border: blue
  title: magenta
  eol: intense_black on_black
  pygments_theme: solarized-light
dd:
  marker: d red
  color: b intense_black
hr:
  color: d intense_black
table:
  border: d black
  header: yellow
  divider: b black
  color: black
  bg: on_black
html:
  brackets: d yellow on_black
  color: yellow on_black

Everything is fine expect the normal text appears light:

image image


Doubt

Could you please suggest how to change the text colour from light to dark? Also could you please tell what is meant by dd?

lamyergeier avatar Aug 02 '21 17:08 lamyergeier

Regular text gets the default foreground color for your terminal. Or it should... what does your terminal theme look like?

dd is for definition lists, which are part of MultiMarkdown, Kramdown, and other flavors. Created like:

Term
: Definition

-Brett

On 2 Aug 2021, at 12:14, Anish Mittal wrote:

@ttscoff I am experimenting with the theme colour for white background. Could you please clear one doubt? This is how I modified it:

---
metadata:
  border: d blue on_black
  marker: d black on_black
  color: d black on_white
emphasis:
  bold: b
  italic: u i
  bold-italic: b u i
h1:
  color: b intense_black on_white
  pad: d black on_white
  pad_char: "="
h2:
  color: b black on_intense_white
  pad: d black on_intense_white
  pad_char: "-"
h3:
  color: u b yellow
h4:
  color: u yellow
h5:
  color: b black
h6:
  color: b black
link:
  brackets: b black
  text: u b blue
  url: cyan
image:
  bang: red
  brackets: b black
  title: cyan
  url: u yellow
list:
  bullet: b intense_red
  number: b intense_blue
  color: intense_black
footnote:
  brackets: b black on_black
  caret: b yellow on_black
  title: x yellow on_black
  note: u white on_black
code_span:
  marker: b white
  color: b black on_intense_white
code_block:
  marker: intense_white
  bg: on_white
  color: black
  border: blue
  title: magenta
  eol: intense_black on_black
  pygments_theme: solarized-light
dd:
  marker: d red
  color: b intense_black
hr:
  color: d intense_black
table:
  border: d black
  header: yellow
  divider: b black
  color: black
  bg: on_black
html:
  brackets: d yellow on_black
  color: yellow on_black

Everything is fine expect the normal text appears light:

image image


Doubt

Could you please suggest how to change the text colour from light to dark? Also could you please tell what is meant by dd?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/mdless/issues/50#issuecomment-891193264

ttscoff avatar Aug 02 '21 18:08 ttscoff

I am using Solarized Light theme in Gnome terminal:

image

Also this is the default colour for foreground text:

image

You can see that in the following image the top half is a result of terminal command ls -la; while the bottom half prints markdown file using mdless with the command Backintime -h.

Thus default foreground colour is darker than what mdless is assuming.

image

lamyergeier avatar Aug 02 '21 22:08 lamyergeier

And if you open your Terminal's color settings, is your foreground color dark?

On 2 Aug 2021, at 17:26, Anish Mittal wrote:

My terminal is using Solarized Light theme.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/ttscoff/mdless/issues/50#issuecomment-891375384

ttscoff avatar Aug 06 '21 15:08 ttscoff

image

In this image the colour mentioned in Default Colour and Text is the foreground colour. Which is this: #657B83

image

lamyergeier avatar Aug 06 '21 21:08 lamyergeier