Repository navigation
perf(core): pack the named-color table - #226
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Oct 6, 2026
Owner
Author
This was referenced Oct 6, 2026
|
pbroom
force-pushed
the
perf/core-size-budget
branch
from
October 7, 2026 23:28
989e986 to
9c62afa
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pbroom
force-pushed
the
perf/core-size-budget
branch
from
October 8, 2026 02:44
9c62afa to
a44bd65
Compare
This was referenced Oct 8, 2026
Owner
Author
Store the 141 distinct CSS Color 4 keywords as one alphabetical, prefix-coded string (a digit for the letters shared with the previous name, then the rest) plus one string of fixed-width rrggbb values, decoded into a Map on first lookup. grey spellings still fold onto gray and transparent is added separately. parse + toHex + contrastRatio: 5336 B -> 5233 B gzip (-103 B) everyday toolkit: 5380 B -> 5281 B gzip (-99 B) Add a test that the packed table decodes to exactly the CSS Color 4 keyword list (checked against colorjs.io). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Named-color packing brings parse + toHex + contrastRatio to 5.40 kB and the everyday toolkit to 5.46 kB. Co-Authored-By: Claude Opus 5.5 <[email protected]>
pbroom
force-pushed
the
perf/core-size-budget
branch
from
October 10, 2026 19:41
a44bd65 to
badd114
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Store the 141 distinct CSS Color 4 keywords as one alphabetical,
prefix-coded string (a digit for the letters shared with the previous
name, then the rest) plus one string of fixed-width rrggbb values,
decoded into a Map on first lookup. grey spellings still fold onto gray
and transparent is added separately.
parse + toHex + contrastRatio: 5336 B -> 5233 B gzip (-103 B)
everyday toolkit: 5380 B -> 5281 B gzip (-99 B)
Add a test that the packed table decodes to exactly the CSS Color 4
keyword list (checked against colorjs.io).
Part of the color-kit assessment stack (#204 → #227). Build, test, lint, typecheck, format, size and check:artifacts pass.
🤖 Generated with Claude Code