@noxlovette/material 0.1.14 → 0.1.15

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.
@@ -114,7 +114,8 @@ export function generateThemeCSS(config, isDark) {
114
114
  'surface-container-high': MaterialDynamicColors.surfaceContainerHigh,
115
115
  'surface-container-highest': MaterialDynamicColors.surfaceContainerHighest
116
116
  };
117
- let css = `:root { /* Dynamic M3 Theme */\n`;
117
+ const selector = dark ? ':root.dark' : ':root';
118
+ let css = `${selector} { /* Dynamic M3 Theme */\n`;
118
119
  for (const [key, dynamicColor] of Object.entries(colors)) {
119
120
  const argb = dynamicColor.getArgb(dynamicScheme);
120
121
  const r = (argb >> 16) & 255;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noxlovette/material",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {