- Detects background color in the frontend (VS Code / JupyterLab / classic Notebook). - Adapts Plotly layout colors (font/axes/grid) for readability. - Avoids re-injecting plotly.js by injecting it ...