function tintFor
tintFor(unnamed 0: { accentColor?: string; url?: string; seed?: string; }): string

Returns the page's own colour when it declared a valid one, or else a hue drawn from seed or the hostname of url, so that every card gets a tint, even for a dump saved before colours were extracted.

Parameters

unnamed 0: { accentColor?: string; url?: string; seed?: string; }

Return Type

string

Usage

import { tintFor } from "src/utils/shared/thumbnailTint.ts";