[data-bs-theme="dark"] #demo-board .JXGtext,
[data-bs-theme="dark"] #demo-board text:not([class*="JXG_navigation"]) {
    fill: #e0e0e0 !important;
    color: #e0e0e0 !important;
}

/* Also darken the axis lines and ticks */
/*[data-bs-theme="dark"] #demo-board line,
[data-bs-theme="dark"] #demo-board path:not([class*="JXG_navigation"]) {
    stroke: #888 !important;
}*/

/* Keep Bootstrap's default behaviour, just change the colour variables */
[data-bs-theme="light"] {
    --bs-btn-bg: #1565c0;
    --bs-btn-border-color: #0d47a1;
}

[data-bs-theme="dark"] {
    --bs-btn-bg: #4d8eff;
    --bs-btn-border-color: #2563eb;
}

/* For the button's hover states, you can leave Bootstrap's defaults or tweak them */
.btn-primary:hover {
    filter: brightness(0.85);
}

#demo-board_navigationbar{
    color:unset !important;
}