alex-page / Sass A11ycolor
Licence: mit
π Generate the nearest accessible color with Sass.
Stars: β 24
Projects that are alternatives of or similar to Sass A11ycolor
A11y Style Guide
Accessibility (A11Y) Style Guide
Stars: β 493 (+1954.17%)
Mutual labels: accessibility, a11y, scss, sass
A11y.css
This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.
Stars: β 1,277 (+5220.83%)
Mutual labels: accessibility, scss, sass
Contrast Finder
Contrast-Finder finds correct color contrasts (background / foreground) for web accessibility (a11y, WCAG, RGAA). https://app.contrast-finder.org
Stars: β 38 (+58.33%)
Mutual labels: accessibility, a11y, color
a11ycolor
π Generate the nearest accessible color
Stars: β 29 (+20.83%)
Mutual labels: color, accessibility, a11y
Whocanuse
WhoCanUse is a tool that brings attention and understanding to how color contrast can affect different people with visual impairments.
Stars: β 259 (+979.17%)
Mutual labels: accessibility, a11y, color
Input Range Scss
Styling Cross-Browser Compatible Range Inputs with Sass
Stars: β 272 (+1033.33%)
Mutual labels: npm, scss, sass
Tabler
Tabler is free and open-source HTML Dashboard UI Kit built on Bootstrap
Stars: β 24,611 (+102445.83%)
Mutual labels: scss, sass
Sassy Starter
π Sassy starter - HTML / SCSS (SMACSS)
Stars: β 740 (+2983.33%)
Mutual labels: scss, sass
Reakit
Toolkit for building accessible rich web apps with React
Stars: β 5,265 (+21837.5%)
Mutual labels: accessibility, a11y
Avalanche
Superclean, powerful, responsive, Sass-based, BEM-syntax CSS grid system
Stars: β 627 (+2512.5%)
Mutual labels: scss, sass
Siimple
The minimal CSS toolkit for flat and clean designs
Stars: β 502 (+1991.67%)
Mutual labels: scss, sass
Vue Music Player
π΅Vue.jsεδΈδΈͺι³δΉζζΎε¨+πOne(δΈδΈͺ).A music player + One by Vue.js
Stars: β 729 (+2937.5%)
Mutual labels: scss, sass
Neat
Neat is maintained by the thoughtbot design team. It is funded by
thoughtbot, inc. and the names and logos for thoughtbot are
trademarks of thoughtbot, inc.
Stars: β 4,506 (+18675%)
Mutual labels: scss, sass
Cirrus
βοΈ The CSS framework for the modern web.
Stars: β 716 (+2883.33%)
Mutual labels: scss, sass
Primitive
βοΈ β A front-end design toolkit for developing web apps.
Stars: β 783 (+3162.5%)
Mutual labels: scss, sass
π Sass-A11yColor
Generate the nearest accessible color with Sass.
Install
npm install sass-a11ycolor
Usage
@import node-modules/sass-a11ycolor/dist/index
body {
color: AU-a11ycolor( red, blue );
}
this will compile to:
body {
color: #ffa3a3;
}
Parameters
The function AU-a11ycolor
takes three parameters:
AU-a11ycolor( $toMakeA11y, $background, $ratioKey: 'small' );
-
$toMakeA11y
- The color that is to be changed -
$background
- The background color. Used to check the contrast ratio -
$ratioKey
- The keyword 'small' or 'large' to set the WCAG 2.1 contrast ratio to 3.0 (large) or 4.5 (small)
Release History
- v2.0.8 - Update dependencies
- v2.0.7 - Update dependencies
- v2.0.6 - Use files instead of
.npmignore
- v2.0.5 - Remove
prePublishonly
npm script - v2.0.4 - Remove .github directory from NPM
- v2.0.3 - Replace travis with GitHub actions
- v2.0.2 - Update dependencies
- v2.0.1 - Fixing issue when a color passes on white and black, update docs, dependencies and spacing
- v2.0.0 - Binary search, remove steps
- v1.1.0 - Moving to
sass
fromnode-sass
for tests - v1.0.4 - Updating dependencies
- v1.0.3 - While loop makes old code unecessary
- v1.0.2 - Stoping iteration if the color is accessible
- v1.0.1 - Fixing issues with the a11ycolor function
- v1.0.0 - First release
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].