Skip to content
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

Replace TinyColor with Colorjs.io #384

Merged
merged 9 commits into from
Nov 1, 2022
Merged

Replace TinyColor with Colorjs.io #384

merged 9 commits into from
Nov 1, 2022

Conversation

jgerigmeyer
Copy link
Member

TinyColor does not support colors that use hue angle notation (e.g. hsl(53deg 89% 96%)), so when Sass started adding that by default, we lost the display values for those colors.

test/js/testTemplates.js Show resolved Hide resolved
test/js/testTemplates.js Show resolved Hide resolved
@jgerigmeyer
Copy link
Member Author

@jgerigmeyer
Copy link
Member Author

Shucks, it looks like colorjs.io doesn't currently support Node v14, but they plan to:

We could wait for that, contribute a PR there, or drop Node v14 support...

@mirisuzanne
Copy link
Member

Shucks, it looks like colorjs.io doesn't currently support Node v14, but they plan to:

* [Add CI to run tests for old Node.js versions LeaVerou/color.js#206](https://github.com/LeaVerou/color.js/issues/206)

* [Avoid Nullish coalescing operator to support old Node.js LeaVerou/color.js#205](https://github.com/LeaVerou/color.js/issues/205)

We could wait for that, contribute a PR there, or drop Node v14 support...

I don't really know the tradeoffs. How difficult to submit that PR?

@jgerigmeyer
Copy link
Member Author

I don't really know the tradeoffs. How difficult to submit that PR?

color-js/color.js#215

Base automatically changed from colors-iframe to main September 21, 2022 14:33
* main:
  Add note to color doc
  clean up example
  review
  add example with custom properties
@netlify
Copy link

netlify bot commented Sep 21, 2022

Deploy Preview for herman-staging ready!

Name Link
🔨 Latest commit 9153a51
🔍 Latest deploy log https://app.netlify.com/sites/herman-staging/deploys/63618681d61d16000852a411
😎 Deploy Preview https://deploy-preview-384--herman-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jgerigmeyer jgerigmeyer merged commit 757b8de into main Nov 1, 2022
@jgerigmeyer jgerigmeyer deleted the replace-tinycolor branch November 1, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants