@udixio/theme 1.0.0-beta.24 → 1.0.0-beta.25

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.
package/dist/theme.esm.js CHANGED
@@ -1873,7 +1873,7 @@ function createSubTheme(_ref) {
1873
1873
  var theme = {
1874
1874
  name: isDarkTheme ? name + 'Dark' : name,
1875
1875
  selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name],
1876
- mediaQuery: '@media (prefers-color-scheme: dark)',
1876
+ mediaQuery: isDarkTheme && darkMode === 'media' ? '@media (prefers-color-scheme: dark)' : undefined,
1877
1877
  extend: {
1878
1878
  colors: colors
1879
1879
  }