As the title says, is there a way to use @import
inside a CSS snippet?
I’m trying to load a CSS file that contains definitions for a webfont using the @import
statement but Obsidian tries to look for the file at the root of the app. The file is located in a subfolder in the snippets folder. I’ve tried both folder/file.css
, ./folder/file.css
, and /folder/file.css
but the result is the same. Also tried vault/.obsidian/snippets/folder/
, adding app://obsidian.md/
at the beginning and other variations with no success.
I’ve thought about adding the file to the snippets root folder but it also contains @font-face
with src
pointing to the fonts in the same subfolder and I assume it wouldn’t be able to load them aswell.
Is there any workaround or it is only possible by creating a plugin?
Thanks.