hmm seems like a bug then, we should be resolving:
// If it is islands, try a few ways to infer if it is dark mode.
if (isIslands()) {
// If it has a dark mode class on the body, use dark mode.
if (
document.body.classList.contains("dark-mode") ||
document.body.classList.contains("dark")
) {
return "dark";
}
// If it has data-theme=dark or data-mode=dark on the body, use dark mode.
if (
document.body.dataset.theme === "dark" ||
document.body.dataset.mode === "dark" ||
document.body.dataset.vscodeThemeKind === "vscode-dark" ||
document.body.dataset.vscodeThemeKind === "vscode-high-contrast"
) {
return "dark";
}
// We don't want to infer from the system theme,
// since the island consumer may not support dark mode.
return "light";
}