linkedin / linkedin/opticss

Optimization: Normalize color values

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
713
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Based on postcss-colormin: http://cssnano.co/optimisations/colormin/

example:

.color1 {
  color: white;
}
.color2 {
  color: rgb(255, 255, 255);
}

becomes

.a {
  color: #fff;
}

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

Review the postcss-colormin reference and locate the optimizer's existing CSS value-processing entry point. Reproduce the issue's white and rgb examples, then verify that both normalize to #fff without changing unrelated declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
performance, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.