@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
|
-
|
|
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) {
|