
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Color UIs by specifying colors relatively (using HCL, a perceptually accurate color model)
Huet is named to resemble the word duet. The idea is to have colors work in harmony together.
This library is an exploration of what the future of coloring UIs might look like:
We achieve the above with a simple concept. Instead of specifying the hex color you want directly, you specify some parameters for how the color should be calculated. The most important parameter you specify is contrast. With Huet, all colors except for the background color of your page are relative. The standard way to use Huet is to base all colors on their parent. This might not seem like an idea that would work, but I'm happy with the final result and I hope you are too.
There are a couple ways to use Huet.
The React API is likely to change. I don't recommend using it in real projects just yet. Still, the API is terse and allows you to build up very flexible UIs.
The default theme lets you use Huet without having to create your own theme.
{
pallet: {
black: '#000000',
white: '#ffffff',
ramps: {
gray: {
isNeutral: true,
colors: ['black', 'white'], // dark color first
},
}
},
bgRamp: "gray",
bgRampValue: 1,
minColorLightness: 30,
maxColorLightness: 70,
contrastMultiplier: 1,
saturationContrastMultiplier: 1
}
This project is in alpha. This is because it's still not seemlesss to use Huet within a web project. Some things I'm thinking about:
Theme config: This is the JSON-serializable definition that create the ultimate theme that we use.
Theme: This is the object that all Huet colors use to determine how they should be displayed.
Pallet: The set of key/value pairs to define colors and their hex values in your theme config / theme.
Ramp: A ramp represents the range of acceptable colors.
Huet color: An instance of a Huet Color class.
D3 chroma.js Intial version created with CodeSandbox
FAQs
Color UIs by specifying colors relatively (using HCL, a perceptually accurate color model)
The npm package huet receives a total of 5 weekly downloads. As such, huet popularity was classified as not popular.
We found that huet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.