daisyui 4.1.0-alpha.5 → 4.1.0-alpha.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daisyui",
3
- "version": "4.1.0-alpha.5",
3
+ "version": "4.1.0-alpha.7",
4
4
  "description": "daisyUI - Tailwind CSS Components",
5
5
  "author": "Pouya Saadeghi",
6
6
  "license": "MIT",
@@ -17,8 +17,8 @@ export function isDark(color) {
17
17
  return false
18
18
  }
19
19
  export function colorObjToString(input) {
20
- const { colorLightness, colorChroma, colorHue } = input
21
- return `${cutNumber(colorLightness)} ${cutNumber(colorChroma)} ${cutNumber(colorHue)}`
20
+ const { l, c, h } = input
21
+ return `${cutNumber(l)} ${cutNumber(c)} ${cutNumber(h)}`
22
22
  }
23
23
  export function generateForegroundColorFrom(input, percentage = 0.8) {
24
24
  const result = interpolate([input, isDark(input) ? "white" : "black"], "oklch")(percentage)