Skip to content

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
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@TonkatsuRa
Comment options

@LilaRest
Comment options

Answer selected by TonkatsuRa
@TonkatsuRa
Comment options

@LilaRest
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants