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.
You can set a color on selected text by surrounding the text with a span tag and a style attribute. The text can appear anywhere(?) and this will work without interrupting the flow of text.