From 72dea0cfea9833f26c14509e87aba53bba848452 Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Thu, 18 Dec 2025 04:15:42 +0100 Subject: [PATCH] Clarify the `replaceAlpha` function comment (#19457) ## Summary Updated the comment of the `replaceAlpha` function to clarify the function's purpose. ## Test plan n/a --- packages/tailwindcss/src/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tailwindcss/src/utilities.ts b/packages/tailwindcss/src/utilities.ts index 5e7877825..8ec903af6 100644 --- a/packages/tailwindcss/src/utilities.ts +++ b/packages/tailwindcss/src/utilities.ts @@ -193,7 +193,7 @@ export function withAlpha(value: string, alpha: string): string { } /** - * Apply opacity to a color using `color-mix`. + * Replace the opacity in a color using relative color syntax. */ export function replaceAlpha(value: string, alpha: string): string { // Convert numeric values (like `0.5`) to percentages (like `50%`) so they