Title color

hi, i recently started transitiong from MS Word to Obsidian, which was (or is) super hard for me, especially when there is so many restrictions to me in terms of accessibility and intuitivity of using Obsjdian. so, here’s the issue:

What I’m trying to do

i’m trying to color the titles of the files or at least make them seen like they are coloured in the reading view. I’m not talking about File Colour plugin, i’m talking about coloring the title of the files in the top section of page separately, so i can have files like Red Rivers being colored red and Blue Oceans being colored blue

Things I have tried

i tried css’ing h1 style – does not work which is weird for me sincd the top title is basically h1 as far as i found out. obviously, puttimg there does not work. i can change the color via Ctrl +Shift + I, but i do so for every title which i don’t need; again, i need to do it separately, for different files different coloring

Maybe the inline title? If so, you could try this:

.inline-title {
    color: #f56446;
    font-size: 1.2em;
    font-weight: 200;
    /* whatever else */
}

https://help.obsidian.md/Extending+Obsidian/CSS+snippets

You can combine ariehen’s answer together with the cssclasses property to specify different colors for different notes. For example, use the following CSS snippet to make to specify title colors by cssclasses: title-red or cssclasses: title-blue.

.title-red .inline-title {
    color: red; /* any CSS color you like */
    ... /* whatever else */
}

.title-blue .inline-title {
    color: blue;
    ...
}

1 Like

jesus, i am so dumb. or well, maybe not. i just needed to put a space between .title-red and .inline-title. thank you very effing much!!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.