👋 hi there! Here are things I wrote recently:
Estimating Wagtail websites’ emissions | 2022 HTTP Archive Web Almanac: Accessibility | Measuring dark mode’s energy savings
🎨 Automated color contrast for text over images
Home Page: https://kontrasto.netlify.app
License: MIT License
👋 hi there! Here are things I wrote recently:
Estimating Wagtail websites’ emissions | 2022 HTTP Archive Web Almanac: Accessibility | Measuring dark mode’s energy savings
Hi thibaudcolas, I just thought you'd want to know that the constants for the APCA version that you have in this tool are substantially obsolete.
In file: kontrasto/kontrasto/js/APCAonly.98e_d12e.ts
The current APCA is available as an NPM package:
npm i apca-w3
Or you may want to visit the repo here on GitHb: https://github.com/Myndex/apca-w3
Please let me know if you have any questions!
A stupid question this library work with a rgba background too ?
Something like this:
import {
wcag_2_contrast_light_or_dark,
wcag_3_contrast_light_or_dark,
} from "kontrasto";
const bannerImage = "#ead8814b";
const bannerText = '#ffffff';
const contrast = wcag_3_contrast_light_or_dark(
bannerImage,
"#ffffff",
"#000000",
bannerText,
);
banner.style.setProperty("--kontrasto-bg", `${contrast.bg_color}99`);
banner.style.setProperty("--kontrasto-text", contrast.text_color);
it is possible ? Ty for your time.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci.yml
actions/checkout v2
actions/setup-node v2-beta
actions/cache v2
actions/checkout v2
actions/setup-python v2
actions/cache v2
.github/workflows/planttrees.yml
package.json
@typescript-eslint/eslint-plugin ^4.23.0
@typescript-eslint/parser ^4.23.0
autoprefixer ^10.2.5
eslint ^7.26.0
prettier 2.3.2
tailwindcss ^2.1.2
tailwindcss-rtl ^0.7.3
typescript ^4.2.3
vite ^2.2.3
.nvmrc
node 16
requirements.txt
wagtail ==2.13
django-vite ==1.1.0
black ==20.8b1
flake8 ==3.9.2
mypy ==0.910
pytest ==6.2.4
coverage ==5.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.