Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@evilmartians/harmony
Advanced tools
The Harmony palette is designed to elevate control over color contrast in your design system.
Made by Evil Martians, product consulting for developer tools.
npm install @evilmartians/harmony
Harmony can work as drop-in replacement for the Tailwind color palette:
Simply import @evilmartians/harmony/tailwind.css
:
/* app.css, or anywhere within Tailwind-aware context */
@import "tailwindcss";
@import "@evilmartians/harmony/tailwind.css";
// tailwind.config.js
import harmonyPalette from "@evilmartians/harmony/tailwind";
export default {
theme: {
colors: harmonyPalette,
},
//...
};
⚠️ Harmony uses
oklch
colors and so requires a polyfill for old browsers
npm install -D @csstools/postcss-oklab-function
postcss.config.js
:export default {
plugins: {
tailwindcss: {},
+ '@csstools/postcss-oklab-function': { 'preserve': true },
autoprefixer: {},
},
}
Harmony palette provides a set of files with css variables. Each file contains all shades for one color in OKLCH with RGB fallbacks for old browsers. Just import colors you need and use them in css:
@import "@evilmartians/harmony/css/orange.css";
h1 {
color: var(--orange-600);
}
Harmony also provides an index.css
file that imports all other css files.
👮WARNING: this file is huge and should be used only in combination with PurgeCSS (with variables
option enabled), other tools that can clean unused css variables, or if you really need all the colors.
@import "@evilmartians/harmony/css/index.css";
/* now you can use any color */
h1 {
color: var(--orange-600);
}
h2 {
color: var(--red-300);
}
Plain javascript object with colors without tailwind's specifics can be imported
from @evilmartians/harmony/base
import palette from "@evilmartians/harmony/base";
console.log(palette.red["50"]); // => oklch(0.988281 0.0046875 20)
Dependency | Version | Description |
---|---|---|
Deno | ^2.0 | Runtime |
Lefthook | ^0.7.0 | Git-hooks manager |
The project uses changesets to manage versioning and changelog. Typical workflow is as follow:
deno task changesets
at project root and follow prompt to generate a "changeset" (logging a change),The changesets Github action is triggered on push
to main
and will create a corresponding "Changesets: Versioning & Publication" pull request, which, upon merged, will trigger publication of the new version to NPM.
1.4.0
d3f6327
Thanks @vnphanquang! - set pacakge as ESM-first, prioritize ESM exports as .js
, update CommonJS exports as .cjs
, fix publint recommendationsFAQs
![Harmony](cover.png)
The npm package @evilmartians/harmony receives a total of 174 weekly downloads. As such, @evilmartians/harmony popularity was classified as not popular.
We found that @evilmartians/harmony 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.