We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091e5ca commit 3921fb5Copy full SHA for 3921fb5
1 file changed
app/utils/colors.ts
@@ -148,14 +148,14 @@ export function lightenOklch(
148
}
149
150
/**
151
- * Lighten an OKLCH color by a given factor.
+ * Darken an OKLCH color by a given factor.
152
*
153
* Works with strict TypeScript settings including `noUncheckedIndexedAccess`,
154
* where `match[n]` is typed as `string | undefined`.
155
156
* @param oklch - Color in the form "oklch(L C H)" or "oklch(L C H / A)"
157
- * @param factor - Lightening force in range [0, 1]
158
- * @returns Lightened OKLCH color string (0.5 = 50% lighter)
+ * @param factor - Darkening force in range [0, 1]
+ * @returns Darkened OKLCH color string (0.5 = 50% lighter)
159
*/
160
export function darkenOklch(
161
oklch: string | null | undefined,
0 commit comments