-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use var(--some-color)
as default
setting for a color
#159
Comments
I'm in the middle of adding support to my plugin as well, and I'm wondering the same thing. Started a thread about this (before I saw this issue) on the Obsidian Discord here: I first attempted to set an empty default (it only accepts Then I tried using Obsidian's variables:
...but I am getting this error in the console:
If variables can't be supported, as mentioned in the Discord thread, if the user had some way of unsetting the color in the Settings UI, and we could put in empty defaults, that might achieve the same result too... and put less work on developers to figure out those default variable values should be. |
I found that if I actually set the CSS variables using the So I would still love for |
As part of my settings for a plugin I've tried using:
And with a corresponding setting for
:root
:However, when I view this in Obsidian it only shows as:
So I'm wondering whether my syntax is wrong, or what's happening since this doesn't work. In #62 its like it should be working, unless there is something trivial I'm missing out on. Can you help explain why I can't see the default color selector for those based upon variables? Or how should I write for this to be mostly compliant with using variables, which would follow a theme, in my default settings?
The text was updated successfully, but these errors were encountered: