-
Notifications
You must be signed in to change notification settings - Fork 22
Getting image accent colors
ekez edited this page Aug 22, 2022
·
1 revision
A number of DAO DAO components include an accent gradient that has a color that is normally set by the dominant color of an image. For example, the voting card:
For some of these accent colors we can use the fast-average-color library inside of getStaticProps
to retrieve them. When page content is dynamic though (for example, when listing DAOs on the homepage) we need to hit an API for that information.
We have such an api at fac.withoutdoing.com
. This has two routes: