Harmonizer 是一个用于生成可访问、一致的色彩调色板的工具,它既可作为 Figma 插件,也可作为独立的应用程序提供。
Harmonizer is a tool for generating accessible, consistent color palettes for user interfaces. It’s available as both a Figma plugin and a web application. Using the OKLCH color model and APCA contrast formula, Harmonizer helps you create color palettes with consistent chroma and contrast across all levels and hues.
Try the Harmony Palette we generated with Harmonizer.
Harmonizer is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.
There are many great color palettes out there—from design systems to brand colors provided by agencies. But these palettes often aren’t made with UI design in mind:
Harmonizer solves this by generating color with perceptually consistent lightness and contrast. It makes the levels reliable—you can change colors of the same level and be sure the text contrast remains exactly the same.
This project is a monorepo managed with PNPM, consisting of a core package and two targets: a web application and a Figma plugin.
The following PNPM commands are available for working with the repository:
pnpm install: Installs all dependencies.pnpm web : It is the alias for running commands for the web target from the root. Available sub-commands: dev, build and preview.pnpm figma : It is the alias for running commands for the figma plugin target from the root. Available sub-commands: dev, build.pnpm lint: Runs the linter.pnpm format: Runs formatterspnpm typecheck: Runs typecheckingpnpm test: Run all testspnpm test:watch: Run tests in watch modeThe application's state management is built on the Spred reactive library and its React bingings. All the domain logic are written using signals or derivations and can be found in packages/core/src/stores directory.
To ensure a smooth user experience, the color palette calculation logic is performed in a web worker. This prevents the main thread from being blocked, especially during complex calculations, resulting in a more responsive UI.
The main container element of the application defines a set of CSS variables that control the overall look and feel. Dynamic styles are calculated based on the application's state and applied to these CSS variables, allowing using it everywhere in the app from CSS.
暂无开放 Issues,或尚未同步最近议题。