Skip to content

A fast, lightweight Figma plugin for checking color contrast

Notifications You must be signed in to change notification settings

danhollick/zebra

Repository files navigation

Note:

⚠️ If you are looking to follow along with the v1.0 tutorial you can find that here⚠️

Zebra is a lightweight, APCA color contrast plugin

Screenshot 2022-01-02 at 13 06 11

What is APCA?

APCA(Advanced Perceptual Contrast Algorithm) is a modern color contrast algorithm that aims to be be perceptually uniform. It is currently being evaluated as a part of the WCAG 3 draught process.

Note: Because APCA is still being evaluated, it is likely that some aspects of the algorithm and scoring system will change between APCA versions.

More info here


Local Development:

Step 1

Download or clone the repo and run npm install

Step 2

  • To build: npm run build
  • For production: npm run build:production
  • For development: npm run dev.

Step 3

Open Figma and in the menu go to Plugins -> Development -> New Plugin.

Step 4

Choose Link to Existing Plugin and find the zebra manifest.json


How stuff works

This plugin uses a few key dependencies:

There are two dependencies entirely for building and bundling:

  • vite - A dev server that takes all the frontend code in ./ui-src and spits it out into ./dist/index.html via a script tag.
  • esbuild - a bundler that takes all the Figma side code in ./plugin-src and spits it our into ./dist/code.js

About

A fast, lightweight Figma plugin for checking color contrast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •