sk-clib 1.11.0 → 1.13.0

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.
@@ -19,6 +19,8 @@
19
19
  const colorSeed = document.documentElement.style.getPropertyValue("--color-seed")
20
20
  if (colorSeed) {
21
21
  theme.seedColor = colorSeed
22
+ } else {
23
+ theme.seedColor = defaults.defaultSeedColor
22
24
  }
23
25
  })
24
26
 
@@ -46,6 +48,11 @@
46
48
  theme.variant = fallback(theme.variant, defaults.defaultVariant);
47
49
  theme.seedColor = fallback(theme.seedColor, defaults.defaultSeedColor);
48
50
 
51
+ if (theme.seedColor === "#000000") {
52
+ theme.seedColor = defaults.defaultSeedColor;
53
+ return
54
+ };
55
+
49
56
  // Build the theme with material utilities
50
57
  const built = build(theme.seedColor, theme.mode, theme.variant);
51
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sk-clib",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",