Detect the system’s theme :
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
console.log("User prefers dark mode.");
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
console.log("User prefers light mode.");
} else {
console.log("User preference for color scheme is not specified or detected.");
}
content-ui page, there also I need to hard code the value !theme.storage.ts file which handles all the theme / ui changes !theme.storage.tsSlice History to orange