projectwallace / color-sorter Goto Github PK
View Code? Open in Web Editor NEWSort CSS colors by hue, then by saturation
License: MIT License
Sort CSS colors by hue, then by saturation
License: MIT License
๐๏ธ https://github.com/lukeed/uvu
I think keywords like currentcolor
, transparent
, inherit
should be handles differently than regular colors:
The keyword
transparent
specifies a transparent black. It is a type of named-color. https://www.w3.org/TR/css-color-4/#transparent-color
For ease of use we could resolve all other keywords to black as well (inherit
, currentcolor
).
They are completely invisible colors, so let's move them to the end. In fact, rgba(90,153,212,0)
, hsla(0,0%,100%,0)
, rgba(112,18,18,0)
and rgba(98,33,33,0)
are all the same transparent color. Example colors from https://www.projectwallace.com/bartveneman/thuisbezorgdnl/colors
I should be able to do the following: myArray.sort(colorSortFn)
.
Setup-node and that other one
https://publint.dev/[email protected] found two errors
Hey there, I encountered this problem in a Vue Typescript project after importing this library. It was used in a async loaded component, but I think it's not caused by the async issue but rather the library.
import colorSorter from 'color-sorter'
The error
[Vue warn]: Failed to resolve async component: function () {
var component = load();
return {
component: component,
delay: delay,
timeout: timeout,
error: errorComponent,
loading: loadingComponent
};
}
Reason: TypeError: r is not a function
duplicate of projectwallace/css-analyzer#394
Could not find a declaration file for module '@projectwallace/format-css'. '/**redacted**/node_modules/@projectwallace/format-css/dist/format.modern.js' implicitly has an 'any' type.
There are types at '/**redacted**/node_modules/@projectwallace/format-css/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@projectwallace/format-css' library may need to update its package.json or typings.ts(7016)
This error is actually from format-css, but this package also has the same error.
There's no use in shipping the .github
folder, or all screenshots.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.