Git Product home page Git Product logo

kontrasto's Introduction

kontrasto's People

Contributors

renovate-bot avatar thibaudcolas 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

Watchers

 avatar  avatar

kontrasto's Issues

Obsolete APCA version

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!

[Question] Is work with a rgba background ?

Which terms did you search for in the documentation and issue tracker?

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.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency typescript to v4.9.5
  • chore(deps): update dependency vite to v2.9.17
  • chore(deps): update typescript-eslint monorepo to v4.33.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-python action to v5
  • chore(deps): update dependency coverage to v7
  • chore(deps): update dependency django-vite to v3
  • chore(deps): update dependency eslint to v8
  • chore(deps): update dependency flake8 to v7
  • chore(deps): update dependency mypy to v1
  • chore(deps): update dependency node to v20
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency pytest to v7
  • chore(deps): update dependency tailwindcss to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update dependency vite to v5
  • chore(deps): update dependency wagtail to v5
  • chore(deps): update typescript-eslint monorepo to v6 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • 🔐 Create all rate-limited PRs at once 🔐

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.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
npm
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
nvm
.nvmrc
  • node 16
pip_requirements
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

  • Check this box to trigger a request for Renovate to run again on this repository

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.