nuxt / nuxt/image

Feature request: add dominant color support

Open
#176 3 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

Especially when lazy-loading it is nice to have the dominant color as background of the layout-placeholder.
Would be nice as an option for <nuxt-image> and <nuxt-picture> and maybe exposing the dominant color for other usage aswell.

possible solutions to get the dominant color:

If you agree on adding this to @nuxt/image, I'd like to develop and propose a concept to you guys :) Would need more understanding of the module and vision of the module.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the @nuxt/image module and the and APIs to understand how image options and placeholder data are handled. Compare node-vibrant, dominant-color, and color-thief, then define how dominant color should work as a placeholder option and for other usage. Done should include an agreed concept for both components and exposed color data.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.