@eduboxpro/studio 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,6 +98,13 @@ class StudioConfigService {
|
|
|
98
98
|
setThemeMode(mode, persist = true) {
|
|
99
99
|
this.themeMode.set(mode);
|
|
100
100
|
this.document.documentElement.setAttribute('data-theme', mode);
|
|
101
|
+
// Toggle .dark class for Tailwind CSS compatibility
|
|
102
|
+
if (mode === 'dark') {
|
|
103
|
+
this.document.documentElement.classList.add('dark');
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.document.documentElement.classList.remove('dark');
|
|
107
|
+
}
|
|
101
108
|
if (persist) {
|
|
102
109
|
this.saveTheme(mode);
|
|
103
110
|
}
|