Giter Site home page Giter Site logo

tiiaaurora / low-contrast-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 217 KB

This is a small website to present an easy way to implement a low contrast mode only via CSS and JavaScript

JavaScript 15.31% TypeScript 4.76% CSS 3.87% HTML 3.21% Svelte 72.84%
accessibility-testing contrast low-contrast sveltekit

low-contrast-example's Introduction

Tiia Aurora Banner

Hi there ๐Ÿ‘‹

  • ๐Ÿˆ Ask me about my cat
  • ๐Ÿ“ซ How to reach me: Twitter: @TiiaAurora or Discord TiiaAurora#1337
  • ๐Ÿ‘ฉ Pronouns: she/her
  • ๐Ÿ’€ Fun fact: I worked in the Archeology before - Yes I dug out dead people

Tiia Aurora Programming Languages

  • ๐Ÿ“˜ I'm currently learning Python and Svelte (JavaScript)
  • ๐ŸŒ I'm also fiddleing with APIs

Tiia Aurora Programming Projects

  • ๐Ÿ Iโ€™m currently working on my Discord-Bot SmartSnek - A bot connecting to Notion.so as a backend providing a knowledgebase
  • ๐Ÿ’• I'm also working on HandsomeSquidward - a Discord-Bot, that works with the ARK API to provide Server- and Dinosaur-Data to my Community.
  • ๐Ÿ‘“ "Twitch to Python" let's creators import their Twitch-Data into a Notion Database to further analyze it.
  • ๐ŸŽฎ LeapStone Lost Ark Tracker helps you to keep track of your tasks in the MMO Lost Ark.

Most used languages

low-contrast-example's People

Contributors

tiiaaurora avatar

Stargazers

 avatar

Watchers

 avatar

low-contrast-example's Issues

Thanks Tiia! Works amazing, but am having a few quirks

This is really an ingenious solution and I love how easy it was to set up, however I'm experiencing some quirks. (In chrome 101)

  1. It breaks fixed positioning, think it's related to this https://stackoverflow.com/questions/52937708/why-does-applying-a-css-filter-on-the-parent-break-the-child-positioning

  2. This may be on my end, but in my setup when I have a white body background it stays the same, thus actually increasing contrast compared to a light gray background.

Image without low contrast
image

Image with low contrast
image

Though I patched it with the following

body.lowcontrast {
    filter: contrast(70%) saturate(70%);
    background-color: whitesmoke;
}

*Sorry for any bad formatting, it's late lol

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.