how can i apply a css snippet that changes font only in specific documents? i tried, but couldn’t get it to work. i’d like it to be a snippet i don’t have to add to each of the documents because i prefer my properies to stay short for design reasons, so it would be better to add the document path inside the css. example (yes, i have the sora font installed in this case and it works if i apply it as default font, just not if i use a different default font and try adding it with css instead. also this code was ai generated, i have no idea if it’s even correct, this is just what i tried in different variations)
Since you don’t want to add cssclasses in the front matter, another alternative is to use this plugin. I don’t think it’s possible any other way other than the two above
ok, i understand that this is very likely what i was looking for. however, i don’t know how to even write the code for the fonts at all. is the above code correct or not? i guess it’s not just some “font face”/“font-family” thing, it can’t be that simple?
ok, actually i figured out how to make the font work. it’s indeed not that simple, but i found a thread with a solution. anyway, it now adds the font to ALL documents despite being defined for only a specific folder. i tried with cssclass despite not really wanting that. i also tried the plugin above. no matter what, it adds the font to EVERYTHING…