View Code? Open in Web Editor
NEW
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%
low-contrast-example's Introduction
๐ 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
๐ I'm currently learning Python and Svelte (JavaScript)
๐ I'm also fiddleing with APIs
๐ 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.
low-contrast-example's People
Contributors
Stargazers
Watchers
low-contrast-example's Issues
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)
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
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 with low contrast
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