![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
colorguard-processor
Advanced tools
Every CSS project starts out with good intentions, but inevitably, one too many people eye-dropper colors into nooks and crannies that you never knew existed. CSS Colorguard Upgraded helps you maintain the color set that you want, and warns you when colors you've added are too similar to ones that already exist. Naturally, it's all configurable to your tastes.
Colorguard uses the CIEDE2000 algorithm to determine the similarity of each of the colors in your CSS file. This algorithm is quite complex, but is used in the broadcasting community as the best approximation of human ability to discern differences in color. RGB on the other hand, is pretty bad at representing differences in color purely based on the numerical difference of the hex values.
const { processor } = require('colorguard-processor');
processor.process(css, [options]).then((result) => {});
import { processor } from 'colorguard-processor';
processor.process(css, [options]).then((result) => {});
Type: array
Specify colors that you would like to ignore completely. Use with caution.
[['black', '#010101', 'rgba(0,0,0,1)']];
Type: array
Pass an array of color pairs to ignore:
[['#000000', 'rgba(0,0,0,1)']];
Type: number
Default: 3
0
through 100
. Lower values are more precise; the default is 3
but that's
mostly personal opinion.
Type: boolean
Default: false
By default, colorguard will complain if identical colors are represented with different notations.
For example, #000
, #000000
, rgba(0, 0, 0, 0)
, and black
. If you want to permit these
equivalent notations, set this option to true
.
npm install colorguard-processor
yarn add colorguard-processor
css-colorguard
FAQs
PostCSS processor to keep a watchful eye on your css colors
The npm package colorguard-processor receives a total of 807 weekly downloads. As such, colorguard-processor popularity was classified as not popular.
We found that colorguard-processor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.