labsense-ui-kit 1.1.77 → 1.1.78

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.
@@ -159,13 +159,15 @@ var dark = {
159
159
  };
160
160
  var getCurrentTheme = function getCurrentTheme() {
161
161
  if (typeof document !== 'undefined') {
162
- return document.documentElement.classList.contains('dark') ? dark : light;
162
+ var isDarkClass = document.documentElement.classList.contains('dark');
163
+ return isDarkClass ? 'dark' : 'light';
163
164
  }
164
- return light;
165
+ return 'light';
165
166
  };
166
167
  var colorVariables = new Proxy({}, {
167
168
  get: function get(_, prop) {
168
- var currentTheme = getCurrentTheme();
169
+ var currentThemeName = getCurrentTheme();
170
+ var currentTheme = themes[currentThemeName];
169
171
  return currentTheme[prop];
170
172
  }
171
173
  });