Skip to content

Color Helpers #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Jan 31, 2023
Merged

Color Helpers #358

merged 29 commits into from
Jan 31, 2023

Conversation

Antonio-Laguna
Copy link
Member

Extracting and abstracting color functions to its own package that gets distributed across different plugins instead of being copied over

@Antonio-Laguna Antonio-Laguna self-assigned this May 1, 2022
@Antonio-Laguna
Copy link
Member Author

This should have all of the functions we've been using.

I think the summary is:

  • Create folders and files as needed
  • Add documentation that was lost given most of it needs JSDoc for licensing
  • Ensuring names are consistent

From this, I feel like the next step would be to create vanity files that export all the things and that get bundled and then start to cleaning up and make sure checks aren't blowing but I can be obviously wrong.

@romainmenke
Copy link
Member

romainmenke commented May 14, 2022

I like all of this!

I would not have thought of giving each it's own file but I prefer this over the big fat files we had before.

This was very daunting in the github UI, but became much more clear once I pulled it locally were I could easily browse the package as a whole :)

@Antonio-Laguna
Copy link
Member Author

@romainmenke as we discussed, I've added a little script that hashes the files we want to track on external sources, you can verify it works by just changing the order in the array

@Antonio-Laguna
Copy link
Member Author

@romainmenke I've finished what we discussed, I'm not sure about the import and tree-shakeability especially there. I remember that during our internal discussions you did some testing for this, can you check how we're faring now? I think we're sacrificing a bit of DX here but I'm OK as long as we're not creating a massive bundle.

@Antonio-Laguna Antonio-Laguna marked this pull request as ready for review June 26, 2022 14:18
Copy link
Member

@romainmenke romainmenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've finished what we discussed, I'm not sure about the import and tree-shakeability especially there. I remember that during our internal discussions you did some testing for this, can you check how we're faring now? I think we're sacrificing a bit of DX here but I'm OK as long as we're not creating a massive bundle.

I think the current approach works really well for us.
It was really easy for me to use the code from this package and to migrate all the plugins!

Tree shaking is not something that I am currently concerned about because we aren't bundling this package. (other people might want to but this is not an immediate goal of this package imo)

I think we will see some gains because we are sharing the same code between multiple packages which is really nice on its own 🎉


This is absolutely awesome!
It took a while to finally review and integrate all this because we got side tracked with the major effort to ship version 8. But really happy to finally get around to this one :)

For me this is good to go 🚀
There was one test value that changed between this and the old code, but CSSWG also did some code changes, so nothing unexpected.

@Antonio-Laguna
Copy link
Member Author

@romainmenke I've done a final review here and I think this is good to go too :)

@romainmenke
Copy link
Member

Nice! you do the honors :)

@Antonio-Laguna Antonio-Laguna merged commit 8df392e into main Jan 31, 2023
@Antonio-Laguna Antonio-Laguna deleted the feature/color-helpers branch January 31, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants