tailwindcss 3.4.14 → 3.4.16

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.
@@ -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>
@@ -344,9 +344,12 @@ export interface PluginAPI {
344
344
  export type PluginCreator = (api: PluginAPI) => void
345
345
  export type PluginsConfig = (
346
346
  | PluginCreator
347
- | { handler: PluginCreator; config?: Partial<Config> }
347
+ | { handler: PluginCreator; config?: Partial<Config> | undefined }
348
348
  | {
349
- (options: any): { handler: PluginCreator; config?: Partial<Config> }
349
+ (options: any): {
350
+ handler: PluginCreator;
351
+ config?: Partial<Config> | undefined;
352
+ };
350
353
  __isOptionsFunction: true
351
354
  }
352
355
  )[]