I really love this theme! It is both useful and nice-looking, but I haven’t been able to tweak a couple of typographical things that I always change in my custom CSS. I hope I don’t come across as being overly picky, I’m honestly trying to learn how Obsidian theming works and Minimal is my favorite one so far.
How can I set a different font for the Edit mode only?
EDIT: I figured this one out. The usual CSS I would add at the end of the file was this:
.markdown-source-view {
font-family: 'IBM Plex Mono', monospace;
}
It worked on the default theme and on some other themes I’ve tried, but it wasn’t working with Minimal. The right way to target the source view was this:
.cm-s-obsidian {
font-family: 'IBM Plex Mono', monospace !important;
}
The !important
needs to be there because the theme already uses it for setting the general font for the whole interface, so it won’t override it unless you set this font-family
property to !important
as well.
How to enable contextual alternates when using Obsidian’s default font?
On the other hand, I’d also like to make Minimal work with Inter, which is Obsidian’s default font, but I can’t seem to enable the contextual alternates feature. An example of a contextual alternative is when the software changes a hyphen and a greater-than sign ->
into a beautiful -> arrow glyph. This is enabled by default in Obsidian, and it even works right here in the forum, but when I edit Minimal’s CSS in order to use Inter by using --text:"Inter";
the contextual alternatives stop working.
This OpenType feature is supposed to be enabled by default in CSS, but I nonetheless tried specifying it with:
html {
font-variant-ligatures: contextual;
-moz-font-feature-settings: "calt";
-webkit-font-feature-settings: "calt";
font-feature-settings: "calt";
}
But it isn’t working. I’m not sure if this can be easily done, but I’d love to hear from the developers of the theme to see if they have an idea of why this happens, since I can’t find anything in the theme’s CSS that could be overriding the contextual alternatives feature.
Sorry again for getting so hung up on nerdy typographical features, but I’m a typography student and I obsess over these kind of things. Still, this is my favorite Obsidian theme! It’s really helped me focus on my writing, while making Obsidian look beautiful in the process.