Dudes, I really would like to have just a simple text color to choose in the Obsidian, as in Notion, for example.
I’m new at Obsidian and i searched in many topics, but i didn’t find, if there’s any way to do that, please show me, otherwise, this is a essential feature.
I like this tip but it applies on the preview mode only.
Is there any way to have this on edit mode as well?
I guess I should modify a CSS snippet but have no idea
You can edit CSS so that your italics and bold will change color instead (But you only have 2 color):
/* Different color for bold*/
.cm-strong,
.markdown-preview-section strong {
color: #BB29BB !important;
}
/* Different color for italic */
.cm-em {
color: #cc241d;
font-style: normal !important;
}
/* of italics in Preview all notes in a vault */
.markdown-preview-section em {
color: #cc241d !important;
font-style: normal !important;
}
/* Different color for bold*/
.cm-strong,
.markdown-preview-section strong {
color: #86da5f;
font-style: normal !important;
font-weight: normal !important;
}
/* Different color for italic */
.cm-em,
.markdown-preview-section em {
color: #ad5350;
font-style: normal !important;
}
That is the best solution I find to color mark texts so far.
Couldn’t we remap the strikethrough function to another color as well, so that we will have three colors?
I tried to remap it by putting the following.
.cm-s,
.markdown-preview-section s {
color: green;
text-decoration:none;
}
My work around is to use inline latex
eg. $\color{red}Error$
Unfortunately this renders styling like equations which might not be the font style you like, but it works and I am sure some people would be fine with it.
I speak for myself, but I came to Markdown and Obsidian to get away from floating panels and layers of text decoration settings. As you can see in this thread, there are lots of CSS options or plugins there if you want to change the look of things.