argyleink / argyleink/css-color-component

Ability to switch off HEX shortening

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
237
Forks
10
Avg merge
1m
Merged PRs (30d)
1

Description

Can you add a way to disable the shortening of hex. Or even force it to not shorten.
So `#fff` becomes `#ffffff`.

https://github.com/argyleink/css-color-component/blob/4722e47b46595d670c2d1f3485762fce69b9e205/src/utils/color-conversion.ts#L75C1-L78C8

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in src/utils/color-conversion.ts around the linked lines and trace how hexadecimal values are shortened. Identify the public option or entry point that should control this behavior. Done means callers can disable shortening so #fff is represented as #ffffff, with the existing test suite still passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.