Skip to content

This is a webpage the is theme based on the theme color in your operating system

Notifications You must be signed in to change notification settings

skberg/Black-light-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Black-light

This is a simple web page that uses the theme color of your operating System and Apply's it to the background color.

Url

https://color-pref.netlify.com/

Explanation:

This is a Css property called Prefers-Color-Scheme

as you can see the name is inside the media in the css links in the html.

👇

Css Link img

this then calls on to diffrent filse Dark or ligth, inside the css folder that you can find above the index.html file.

inside this to file you will only find one tag

:root

this tag controls what collors that are going to work when the dark theme is set or ligth theme inside your operating System

Learn more

if you what to learn more you should take a look at this one:

https://web.dev/prefers-color-scheme

About

This is a webpage the is theme based on the theme color in your operating system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published