fabiospampinato / khroma Goto Github PK
View Code? Open in Web Editor NEWA collection of functions for manipulating CSS colors, inspired by SASS.
License: MIT License
A collection of functions for manipulating CSS colors, inspired by SASS.
License: MIT License
Most browsers support hex colors with an alpha channel in the format #RGBA
. Should our library support this?
The license is not specified in the package.json file, therefore the package is listed as UNLICENSED (License=none) on the npm registry.
This makes the legal situation unclear and results in build failures due to unknown license constraints.
Recently all color functions support being called without commas, we should support that.
๐ hey there I'm working on a Sass like preprocessor and was hoping to use Khroma for color logic. The issue tho is that i really need to be able to create reusable Color objects to e.g. store as the values of a variable declaration. THe problem here is that Khroma reuses the same Channels instance for all work so it doesn't seem possible to store an intermediate representation of the color channels since any other color will mutate the same data. I see why this is the case, but any chance of getting a version of the API that allows creating reusable Color
instances from strings?
The current package.json
file does not include the license
attribute. This is an issue for those systems which mirror or proxy access the download of external packages from npmjs.com.
Between version 2.0.0 and 2.1.0, the file LICENSE
was renamed in license
. This is fine, although not the most common practice, and it is not captured by some of those system which actively look for a LICENSE
file and the license attribute in the package.json
. The license shown on GitHub is not captured within the package, so it's not relevant when a package is downloaded.
Thus, the package.json
should correctly include the license
attribute and a new version of the package should be built.
I am confused on what the units should be for "percentage". Is 10%
represented as 10
or 0.1
? Based on the above function, one would assume that percentages are represented in their decimal format.
For instance:
per2dec(10) -> 2550
โ This makes no sense
per2dec(0.1) -> 26
๐
But this leads to some inconsistency with how per2dec
and dec2per
convert between each other.
Example:
per2dec(0.1) -> 26
dec2per(26) -> 10.2
what?
License shown as None instead of MIT see https://www.npmjs.com/package/khroma
I think its because of the renaming LICENSE to license. Can you update the license in npmjs manually?
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.