tailwindcss 3.4.13 → 3.4.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.
@@ -381,6 +381,6 @@ video {
381
381
  }
382
382
 
383
383
  /* Make elements with the HTML hidden attribute stay hidden by default */
384
- [hidden] {
384
+ [hidden]:where(:not([hidden="until-found"])) {
385
385
  display: none;
386
386
  }
@@ -18,6 +18,8 @@ export function removeAlphaVariables(container, toRemove) {
18
18
  for (let varName of toRemove) {
19
19
  if (decl.value.includes(`/ var(${varName})`)) {
20
20
  decl.value = decl.value.replace(`/ var(${varName})`, '')
21
+ } else if (decl.value.includes(`/ var(${varName}, 1)`)) {
22
+ decl.value = decl.value.replace(`/ var(${varName}, 1)`, '')
21
23
  }
22
24
  }
23
25
  })
@@ -21,7 +21,7 @@ export default function withAlphaVariable({ color, property, variable }) {
21
21
  [variable]: '1',
22
22
  ...Object.fromEntries(
23
23
  properties.map((p) => {
24
- return [p, color({ opacityVariable: variable, opacityValue: `var(${variable})` })]
24
+ return [p, color({ opacityVariable: variable, opacityValue: `var(${variable}, 1)` })]
25
25
  })
26
26
  ),
27
27
  }
@@ -42,7 +42,7 @@ export default function withAlphaVariable({ color, property, variable }) {
42
42
  [variable]: '1',
43
43
  ...Object.fromEntries(
44
44
  properties.map((p) => {
45
- return [p, formatColor({ ...parsed, alpha: `var(${variable})` })]
45
+ return [p, formatColor({ ...parsed, alpha: `var(${variable}, 1)` })]
46
46
  })
47
47
  ),
48
48
  }
package/types/config.d.ts CHANGED
@@ -207,7 +207,7 @@ export interface ThemeConfig {
207
207
  caretColor: ThemeConfig['colors']
208
208
  accentColor: ThemeConfig['colors']
209
209
  opacity: ResolvableTo<KeyValuePair>
210
- boxShadow: ResolvableTo<KeyValuePair>
210
+ boxShadow: ResolvableTo<KeyValuePair<string, string | string[]>>
211
211
  boxShadowColor: ThemeConfig['colors']
212
212
  outlineWidth: ResolvableTo<KeyValuePair>
213
213
  outlineOffset: ResolvableTo<KeyValuePair>