@massimo-cassandro/minimo 1.38.0 → 1.38.1

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.
@@ -186,7 +186,11 @@ export const buildSourceModes = async ({
186
186
  const totalCustomProps = Object.values(modeCounts).reduce((sum, n) => sum + n, 0);
187
187
 
188
188
  // ── Compose the final CSS ────────────────────────────────────────────────
189
- const otherModes = modeNames.filter((mode) => mode !== baseMode);
189
+ // A mode left with zero custom properties — typically a `light`/`dark`
190
+ // mode fully absorbed by applyLightDarkFunc() into the base mode's
191
+ // light-dark() declarations — gets no `@media` block at all, rather than
192
+ // an empty (but harmless) one.
193
+ const otherModes = modeNames.filter((mode) => mode !== baseMode && modeCounts[mode] > 0);
190
194
 
191
195
  let composed = modeBlocks[baseMode];
192
196
  for (const mode of otherModes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.38.0",
3
+ "version": "1.38.1",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",