Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evilmartians/harmony

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evilmartians/harmony - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/css/amber.css

3

dist/base/index.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
module.exports = {

@@ -331,1 +329,2 @@ "red": {

};
Object.defineProperty(exports, '__esModule', { value: true });
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
module.exports = {

@@ -336,1 +334,2 @@ "inherit": "inherit",

};
Object.defineProperty(exports, '__esModule', { value: true });
{
"name": "@evilmartians/harmony",
"version": "1.0.0",
"version": "1.1.0",
"scripts": {

@@ -19,3 +19,4 @@ "build": "deno task build",

"types": "./dist/base/index.d.ts"
}
},
"./css/*": "./dist/css/*"
},

@@ -22,0 +23,0 @@ "files": [

@@ -0,4 +1,7 @@

![Harmony](cover.png)
# Harmony: Accessible UI Color Palette
The [Harmony palette](https://www.figma.com/community/file/1287828769207775946/harmony-accessible-ui-color-palette)
The
[Harmony palette](https://www.figma.com/community/file/1287828769207775946/harmony-accessible-ui-color-palette)
is designed to elevate control over color contrast in your design system. With

@@ -9,5 +12,9 @@ the OKLCH color space and the innovative APCA contrast algorithm, Harmony offers

<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made by Evil Martians, product consulting for developer tools.
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Made
by
<b><a href="https://evilmartians.com/devtools?utm_source=harmony&utm_campaign=devtools-button&utm_medium=github">Evil
Martians</a></b>, product consulting for <b>developer tools</b>.
## Features
- Equal contrast within lightness groups

@@ -42,3 +49,3 @@ - Mirrored contrast pairs

> ⚠️ Harmony uses `oklch` colors and so requires a polyfill
> ⚠️ Harmony uses `oklch` colors and so requires a polyfill for old browsers

@@ -63,2 +70,14 @@ 1. Install PostCSS plugin that polyfills oklch colors

## Vanilla CSS
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:
```css
@import '@evilmartians/harmony/css/orange.css';
h1 {
color: var(--orange-600);
}
```
## Other formats

@@ -65,0 +84,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc