Closed bennypowers closed 5 years ago
Great work! Would you be willing to modify it a bit - because having a big switch statement like that is unwieldy - by adding a script similar to the ones existing in scripts/
? The output would be a JSON file with an array containing all the scraped colors (the source being https://www.w3.org/TR/css-color-4/ if I'm not mistaken).
Well i already scraped the colours (and I don't think colors module 4 will change) , so do you want me to just create that file in lib/named_colors.json
?
Ok @fatfisz see if latest changes suit your liking
Ok, let's go with that. I'll need to adapt the parser anyway because of var()
, but it will be better done as a separate change, because rgb
and rgba
will be affected too.
Awesome. Please advise when released, since they're waiting on this in https://github.com/GoogleChrome/lighthouse/issues/7139
Sure. I just became a contributor to add some stuff that I need at work (and help with some tidying up), so I'm driven to get the new release out quickly :) Expect it under a week or so.
👋 Just a friendly bump. any chance we can cut a release?
Hi, I did what I could, now we're waiting for the release (I don't have permissions). Thanks for your patience, this should be released soon!
@bennypowers @fatfisz v1.2.0 is published to npm.
Thanks for your help!
fixes #48