Css snippets stopped working

I have used a “bolder bold” snippet succesfully until recently. The snippet in question is:

.theme-dark {
    --bold-weight: 700 !important;
}

There isn’t much more I can say about this.

I’m 99.99% sure my file is indeed a .css file, I have tried with and without !important , …

Can someone help me?

Try --bold-modifier: 200; /* default is 200 */.

I saw kepano mention on Discord there were a few fixes to take care of, so hang in there for an Obsidian update.

--bold-weight was deprecated there is now a --bold-modifier variable instead

your comment just made me look at the code again, and I notice that --bold-weight is still in use in a few places, and this might cause some bugs, I’ll get that fixed for the next version

Discord

It looks like the bold-weight variable was added back in Obsidian v.1.6.4.

So, as of v.1.6.4 (and it may change again), the app.css variables bold section looks like this:

 /* Bold */
  --bold-modifier: 200;
  --bold-color: inherit;
  --bold-weight: calc(var(--font-weight) + var(--bold-modifier));

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