add option to use vibrant colors from avatar needs moving around
This commit is contained in:
parent
30e9057ba8
commit
ff0ece9626
8 changed files with 120 additions and 73 deletions
7
types/routes.d.ts
vendored
7
types/routes.d.ts
vendored
|
@ -13,3 +13,10 @@ type RouteModule = {
|
|||
) => Promise<Response> | Response;
|
||||
routeDef: RouteDef;
|
||||
};
|
||||
|
||||
type Palette = Awaited<ReturnType<typeof Vibrant.prototype.getPalette>>;
|
||||
type Swatch = Awaited<ReturnType<typeof Vibrant.prototype.getSwatches>>;
|
||||
type ImageColorResult = {
|
||||
img: string;
|
||||
colors: Palette | Record<string, string>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue