Is it possible to add HTML classes and custom stylesheets to the UI / themes as well? #14
Answered
by
LilaRest
TonkatsuRa
asked this question in
Q&A
-
I am trying to find a way to use augmented-ui CSS library to style my theme. But for that I would need to find a plugin that can add to the HTML of the UI and load custom stylesheets. Would that be even possible with the right plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
LilaRest
May 6, 2023
Replies: 1 comment 4 replies
-
@TonkatsuRa I'm not sure to properly understand your question and why it is related to this Obsidian plugin. But if you are writing your own Obsidian theme and want to import the augmented-ui library inside of it you could use the CSS @import url('https://unpkg.com/augmented-ui@1.1.2/augmented.css'); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@TonkatsuRa Ok got it !
Obsidian themes are only built from CSS files and no option is provided to mutate the DOM.
Which means that in order to append attribute to HTML elements you'll need to create an Obsidian plugin.
You could be inspired by the Minimal theme which has its own plugin to extend it with functionalities that are not available from pure CSS.
Also, the Obsidian team has just released the developers documentation which may be a good place to start.