Developer-Mike / obsidian-advanced-canvas

⚡ Supercharge your Obsidian.md canvas experience! Create presentations, flowcharts and more!
GNU General Public License v3.0
365 stars 17 forks source link

Added custom colors are all grey #126

Closed 5yF0Rc3 closed 9 hours ago

5yF0Rc3 commented 9 hours ago

Adding this

:root {
  --canvas-color-7: 150, 24, 24;
  --canvas-color-8: 200, 130, 130;
  --canvas-color-9: 150, 205, 170;
}

will result in only grey Colors. What I am missing? grafik

Obsidian Version: 1.7.7

Developer-Mike commented 9 hours ago

That's strange. It works on my computer 😅. Which theme are you using?

And if you are using Advanced Canvas on a PC, it would be helpful if you could open the developer tools (Ctrl+Shift+I) and run this command and report the result: document.getElementById("mod-custom-colors").innerText

5yF0Rc3 commented 9 hours ago

It's the theme! Im using Everforest. The result on Everforest is: '' And with the basic theme - which works:

'\n      .mod-canvas-color-7 {\n        --canvas-color: var(--canvas-color-7);\n      }\n    \n      .mod-canvas-color-8 {\n        --canvas-color: var(--canvas-color-8);\n      }\n    \n      .mod-canvas-color-9 {\n        --canvas-color: var(--canvas-color-9);\n      }\n    '

Edit: Nope. Now everything works... I switcht back to Everforest and it's all working... Restart of Obsidian did not work btw.

Developer-Mike commented 9 hours ago

Thanks for the quick reply (and the edit 😄). I'll close this issue now, but you can always open it again and ask for compatibility with a certain theme.