Git Product home page Git Product logo

sketch-wcag's Introduction

Sketch WCAG Plugin

A Sketch plugin that let’s you test an entire color palette against the WCAG 2.0 contrast guidelines.

Sketch WCAG by Bryan Berger

Installation

Recommended

You can install the plugin from Sketch Runner or Sketchpacks.

Manually

Download the zip from here and double-click the .sketchplugin to install.

Usage

Select multiple Shapes with a fill and run this plugin by pressing ⇧⌘C (Shift + Command + C) or via Sketch Runner to preview the WCAG guidelines in your browser. (Currently: Doesn't work on symbols or groups, doesn't account for opacity)

AA requirements

Color contrast of 4.5:1 or 3:1 for large/bold text

AAA requirements

Color contrast of 7:1 or 4.5:1 for large/bold text.

Notes

  • Large text is defined as 14 point (typically 18.66px) and bold or larger, or 18 point (typically 24px) or larger.
  • aa - greater than 4.5 (for normal sized text)
  • aaLarge - greater than 3 (for 14pt/18px+ bold text || for text larger than 18pt/24px)
  • aaa - greater than 7
  • aaaLarge - greater than 4.5 (for 14pt/18px+ bold text || for text larger than 18pt/24px)
  • WCAG tests are run behind the scenes using colorable

Contributing

Contributions are welcomed, file a pull request or an issue.

sketch-wcag's People

Contributors

bryanberger avatar skpm-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sketch-wcag's Issues

Filter by active fills only

If a Shape's fill is not active (checked in the UI) and there are no other solid fillTypes don't assume color from any other fillType (ie: gradient)

also: filter out other types of fills just in case to keep it simple

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.