Comment
Tuesday
- last edited
Tuesday
Tuesday
- last edited
Tuesday
I love this, but it is not dark mode friendly. I even tried to get Genie to find a workaround. Has anyone found a way to have it display correctly when this is enabled?
Summary of what we learned:
Databricks %md-sandbox in dark mode applies an automatic color transformation at a level external to the cell content. We tested 5 approaches and none could override it:
- @media (prefers-color-scheme: dark) — doesn't fire
- light-dark() CSS function — not supported
- JavaScript DOM manipulation — <script> tags appear stripped/non-functional
- CSS filter property — blocked on inline styles
- Pre-compensated color math — no effect (confirming scripts don't execute)