Skip to content

Commit 3921fb5

Browse files
committed
fixed docstrings to be less confusing
1 parent 091e5ca commit 3921fb5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/utils/colors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ export function lightenOklch(
148148
}
149149

150150
/**
151-
* Lighten an OKLCH color by a given factor.
151+
* Darken an OKLCH color by a given factor.
152152
*
153153
* Works with strict TypeScript settings including `noUncheckedIndexedAccess`,
154154
* where `match[n]` is typed as `string | undefined`.
155155
*
156156
* @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)
157+
* @param factor - Darkening force in range [0, 1]
158+
* @returns Darkened OKLCH color string (0.5 = 50% lighter)
159159
*/
160160
export function darkenOklch(
161161
oklch: string | null | undefined,

0 commit comments

Comments
 (0)