@udixio/theme 1.0.0-beta.27 → 1.0.0-beta.29
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.cjs.development.js +6 -6
- package/dist/theme.cjs.development.js.map +1 -1
- package/dist/theme.cjs.production.min.js +1 -1
- package/dist/theme.cjs.production.min.js.map +1 -1
- package/dist/theme.esm.js +2 -2
- package/dist/theme.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/config/config.service.ts +1 -1
- package/src/plugins/tailwind/plugins-tailwind/themer.ts +9 -1
package/dist/theme.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asClass, createContainer, InjectionMode } from 'awilix';
|
|
2
2
|
import { lerp, Contrast, clampDouble, hexFromArgb, Hct, argbFromHex, TonalPalette, DislikeAnalyzer, sanitizeDegreesDouble } from '@material/material-color-utilities';
|
|
3
|
-
import { resolve } from 'path';
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
4
|
import { existsSync } from 'node:fs';
|
|
5
5
|
import plugin from 'tailwindcss/plugin';
|
|
6
6
|
|
|
@@ -1925,7 +1925,7 @@ function createSubTheme(_ref) {
|
|
|
1925
1925
|
colors = _ref.colors;
|
|
1926
1926
|
var theme = {
|
|
1927
1927
|
name: isDarkTheme ? name + 'Dark' : name,
|
|
1928
|
-
selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name],
|
|
1928
|
+
selectors: isDarkTheme && darkMode === 'class' ? ['.dark-mode .theme-' + name, '.dark-mode.theme-' + name, '[data-theme="dark"] .theme-' + name, '[data-theme="dark"].theme-' + name] : ['.theme-' + name, ".theme-" + name + " .light-mode", ".theme-" + name + " [data-theme=\"light\"]", ".light-mode .theme-" + name, ".light-mode.theme-" + name, "[data-theme=\"light\"] .theme-" + name, "[data-theme=\"light\"].theme-" + name],
|
|
1929
1929
|
mediaQuery: isDarkTheme && darkMode === 'media' ? '@media (prefers-color-scheme: dark)' : undefined,
|
|
1930
1930
|
extend: {
|
|
1931
1931
|
colors: colors
|