generated from mProjectsCode/lemons-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 18
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
- The Plugin is up to date
- Obsidian is up to date
Describe the bug
I tried to add a background color for invalid input but the property "background" is ignored. "foreground" works as expected.
I used the same syntax as in your example in
obsidian-shiki-plugin/exampleVault/customThemes/OneMonokai-color-theme.json
Lines 433 to 439 in 66413a3
| { | |
| "name": "Invalid", | |
| "scope": "invalid", | |
| "settings": { | |
| "background": "#c678dd", | |
| "foreground": "#F8F8F0" | |
| } |
To Reproduce
Steps to reproduce the behavior:
Add this rule to your color theme:
{
"name": "Invalid",
"scope": [
"invalid"
],
"settings": {
"background": "#FFFFFF",
"foreground": "#FF8080"
}
}
I now get red text on the default, dark background color instead of red on white. The CSS of the element is:
<span style="--0:#FF8080">...</span>
The CSS rule
.expressive-code .ec-line :where(span[style^='--']:not([class]))
doesn't define "background-color" and there is no variable for it.
Expected behavior
Both colors should be applied.
Plugin version
0.4.4
Obsidian 1.7.7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working