Optimization: Normalize color values
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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