Read Stylix font externally #452
Replies: 1 comment 7 replies
-
AFAIK, these palette files are only generated to avoid palette reevaluation or improve development experience: @danth, is that correct?
I don't think so.
Would it not be easier and more maintainable to write a Stylix Obsidian module? That way others would also benefit from this. |
Beta Was this translation helpful? Give feedback.
-
When Stylix builds a theme, the palette is saved to
/etc/stylix/palette.json
. This allows program on your system to read this file for information about the colors used in the current Stylix theme. Is there something similar for the Stylix font? I want to make an Obsidian plugin that, on launch, reads the Stylix theme and generates a theme file for the Obsidian vault to use, and while I'm able to get the colors by reading thepalette.json
file, I'm not sure how to get the current font.Beta Was this translation helpful? Give feedback.
All reactions