• Stars
    star
    136
  • Rank 267,670 (Top 6 %)
  • Language
    CSS
  • Created over 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AcceCSS A Sass Mixin That debug & check the accessibility of your designs

AcceCSS

A Sass Mixin that debugs & checks the accessibility of your designs

Join the chat at https://gitter.im/LukyVj/accecss

This mixin will allow you to get an overview of all the zones of your layout, get a grayscaled version to check the contrast, as well as 8 different filters to emulate the most common coloblindness types

Simple API

What we can call "The API" is the few parameters you will be able to change or combine to use the AcceCSS mixin, it's composed of 4 paramters so far

@include accecss( false, false , false , false );
                   ^       ^        ^        ^
           selector | css zones | grayscale | colorblind filter

API PARAMETERS

PARAMETER POSSIBLE VALUE
selector You must use quotes ('), ex: '.selector'
CSS Zones Can be true or false
Grayscale Can be true or false
Colorblind filter Any of the filters on the list below, ex: deuteranopia

Browser compatibility

The AcceCSS mixin will work in any major evergreen brother :

  • Google Chrome
  • Safari
  • Mozilla Firefox
  • IE (partial)

For more informations, see Caniuse : SVG filters

How to use it

1 - Download

First, go on Github, and download the accecss.scss file along with the filter.svg

2 - @import

Now, you have to import the mixin into your main stylesheet.

To keep things clear, I recommand using a main.scss file, and import both your styles and accecss mixin into it

@import 'style.scss';
@import 'accecss.scss';

3 - Use it

Once 1 & 2 are done, you're ready to use the mixin, here is how looks an inactive Accecss mixin, note that by default, all the settings are set to false

@include accecss( 
  false,  // ELEMENT       | False
  false,  // CSS ZONE      | False
  false,  // GRAYSCALE     | False
  false   // COLORBLIND    | False
);

Let's say you want to debug your whole document, and, for example, let's say you want to get your elements outlined

@include accecss( 
  'html body',
  true,
  false,
  false
);

To add a grayscaled effect :

@include accecss( 
  'html body',
  false,
  true,
  false
);

And finally, add a blindness color filter :

@include accecss( 
  'html body',
  false,
  false,
  protanopia // You can use all filters listed over
);

You will have to give the proper path to your filter.svg, for this, use the $path-to-filter variable, in the accecss.scss file.

Informations about Colorblindness

This project was born essentially because of this article :

Designing For (and With) Color Blindness

After some researches I discovered this information :

Colour (color) blindness (colour vision deficiency, or CVD) affects approximately 1 in 12 men (8%) and 1 in 200 women in the world. In Britain this means that there are approximately 2.7 million colour blind people (about 4.5% of the entire population), most of whom are male.

Thank you

  • A big thank you to @dervondenbergen for his precious help, and his advices.
  • Thank you to @bullgit for being awesome and provide me priceless feedbacks.
  • A huge thank you to thecatapi.com, for the awesome.. Cat API!

Question ?

For any further informations, feel free to ping me on twitter : @LukyVj

More Repositories

1

family.scss

Family.scss is a set of Sass mixins which will help you to manage the style of :nth-child'ified elements, in an easy way.
SCSS
2,309
star
2

Colorify.js

The simple, customizable, tiny javascript color extractor
HTML
808
star
3

colofilter.css

Colofilter.css - Duotone filters made with CSS !
CSS
619
star
4

menu-to-cross-icon

One idea, 6 possibilities
CSS
183
star
5

rainbow.js

A jQuery library to manage gadients easily !
CSS
60
star
6

gitShare

A Chrome extension to share github projects on Twitter & Facebook
JavaScript
28
star
7

fifty-shades-of

A 50 shades color picker :
CSS
24
star
8

Trinity-grid

Because we mostly don't need to have up to 12 columns
CSS
20
star
9

jarvis.js

Jarvis.js
JavaScript
19
star
10

EfficaCSS

A set of SASS & Bourbon mixins to power up your stylesheets And to provide you the best OVCSS system.
CSS
19
star
11

MadamNazar.io

A website to display Madam Nazar location
JavaScript
16
star
12

3DView.css

A clunky implementation of the aborted Firefox 3D view
CSS
13
star
13

dev-logos

13
star
14

animate.scss

Just a SASS Structure of Animate.css made by Daniel Eden : http://daneden.me/ ||
CSS
12
star
15

populus.js

Small javascript toolbelt to populate search inputs
CSS
12
star
16

rplace-algolia

r/place like playground recreated with Algolia
TypeScript
11
star
17

covfefe.css

covfefe
CSS
9
star
18

github_advanced_styles

A chrome extension to add advanced CSS styles to github
JavaScript
9
star
19

OVCSS

Organise Views CSS - Download the framework : http://lukyvj.github.io/OVCSS/ovcss-v1.0.1.zip Or go to the website :
CSS
9
star
20

cloudinary-blurhash

Generate a JSON file containing the blurhash of your cloudinary media library
JavaScript
8
star
21

LetMeTakeASelfie

Jocky website, first time with Gulp
CSS
8
star
22

blurhash-playground

blurhash-playground
TypeScript
6
star
23

instascii

An instafeed.js plugin that returns ASCII versions of images
JavaScript
6
star
24

minimalist-css-starter-kit

Its a style that you can directly upload to your pages/sites to display content in a minimalistic way.
6
star
25

Plugr.js

A simple JavaScript function that helps you to manage your web plugins.
CSS
5
star
26

lucasbonomi.com-v2

Second version of my website
CSS
5
star
27

ios-meta

5
star
28

identifi.js

identifi.js is an open project, which aims to make the people identification easier on pictures. View it on github Β»
CSS
5
star
29

snippets.js

A collection of useful javascript code snippets.
4
star
30

CSSMS

CSSMS : A CMS Full of CSS !
CSS
4
star
31

debug-tools.css

a collection of debugging CSS tools.
CSS
4
star
32

SpreadR

A collaborative project of @dervondenbergen, @jofpin & I. More infos soon.
CSS
4
star
33

HexaTime.js

A jQuery plugin to create colored Text, backgrounds, borders ect, with a color based on the time ! (if 22:30:40, color #223040 )
CSS
4
star
34

dribbble-to-codepen

To help you doing your Dribbble to Codepen thing
CSS
4
star
35

just-code

The most simple online code editor.
CSS
4
star
36

flippets

A collection of flat ui snippets
3
star
37

rdr2-naturalist-almanac

Data for the naturalist.guide data and Harriet Discord bot.
3
star
38

WAPSS

WAPSS
JavaScript
3
star
39

nunc

nunc - Online comunication made easy
CSS
3
star
40

easUI

A simple & lovely CSS framework
3
star
41

randomiCSSer

Generate random CSS values on the fly
TypeScript
3
star
42

algolia-wallpapers

CSS
3
star
43

try_git

3
star
44

awesomenews

Landing page awesome news
PHP
3
star
45

I.B.A

Images to Base64 to ASCII - Node, Jade, JSCII
CSS
3
star
46

important.js

Make your life easier for testing developement pages.
JavaScript
3
star
47

focuzin

Generate a rectangle over any images format to focus on a particular zone of the image
JavaScript
3
star
48

lucasbonomi.com

My website
JavaScript
3
star
49

ap-moji

APMOJI Random Users API, made with emojis
JavaScript
2
star
50

algolia-ph

Algolia's product hunted
CSS
2
star
51

JeSuisCharlie

An hommage to the victims of Charlie Hebdo the 7 of January 2015
JavaScript
2
star
52

SKIDIP

Team Skidip website
JavaScript
2
star
53

focucss

Focus your users, on your sidebar.
CSS
2
star
54

horizonMap

WIP
2
star
55

hire.lucasbonomi.com

Hire me >
CSS
2
star
56

frontend_console

A friendly debugging console for frontend developers
CSS
2
star
57

VertiGrid

CSS
2
star
58

B2Oipsum

Un gΓ©nΓ©rateur de lorem ipsum un peu plus thug
JavaScript
2
star
59

blendmode-filter-video

Small app created for my talk at CSS Paris Meetup (http://www.meetup.com/fr/CSS-Paris)
JavaScript
2
star
60

website

My website page
HTML
2
star
61

sassets-pipeline

CSS
2
star
62

shorthand.it

A free online service to get the shorthand css of a property
JavaScript
2
star
63

one-step

Wait for it.
2
star
64

MTO

MTO Weather web application - Live app on :
JavaScript
2
star
65

naturalist.guide

TODO
TypeScript
2
star
66

jqDebug.js

jqDebug.js is a tiny jquery function that will helps you to debug your projects.
JavaScript
2
star
67

upvote.it

PHP
2
star
68

Introduction-to-Gulp.js

Demo repository for https://medium.com/@lukyvj/an-introduction-to-gulp-js-295ee489e2c9 Demo :
JavaScript
2
star
69

lukyvj.design

JavaScript
2
star
70

fortnite-maps

images files
1
star
71

exchange

Exchange is a repository created to be used as a public personal chatroom on Gitter.
1
star
72

html-colors-extended

A SASS file that expand the HTML color names
CSS
1
star
73

blendr

JavaScript
1
star
74

YO-COOL-URL

A small app to send URL via the YO network.
CSS
1
star
75

doiv-tpircavaj.js

133 Octets of awesomeness - Abraham Lincoln
CSS
1
star
76

AweCSSome-Newsletter

1
star
77

Fontizer

https://github.com/LukyVj/fontizer-site
JavaScript
1
star
78

CSS-methodology

My own CSS guidelines & methods
1
star
79

codesearch

instantsearch implementation with codepen data
CSS
1
star
80

lucasbonomi.com-blog

test
1
star
81

chitchat

1
star
82

ProJSTechniques

An index of JS techniques & Experiments
CSS
1
star
83

landing

http://lukyvj.github.io/landing/
CSS
1
star
84

CaCSScade

The best OVCSS managing system
CSS
1
star
85

is-bricks

WIP
CSS
1
star
86

longshade-flat-icon-maker

Longshade Flat Icon Maker
JavaScript
1
star
87

LinkR

turn any expression which contains .com into a link with jquery
CSS
1
star
88

Design

Get all design element
1
star
89

init.css

The perfect style for your project or reading pages
1
star
90

Bulltax

CSS
1
star
91

BullCSSMS

CSS
1
star
92

varfile

A javascript variables organizer system
JavaScript
1
star
93

viz-ir

vis-reg-test
JavaScript
1
star
94

polyfaces

Website to show and sell polygon faces designs
CSS
1
star
95

cssnippets

1
star
96

lukyshawty

Use of SPOTWIFY
TypeScript
1
star
97

lukyvj.github.io

1
star
98

frontenders

If you like front and tenders πŸ—
JavaScript
1
star
99

bulltaxt

The bullgit code color syntaxt
1
star
100

img_overlay

A tiny Jquery tool that helps you to re-create items in css
JavaScript
1
star