Skip to content

tiagosimoes/Web-Page-Theme-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Web-Page-Theme-Editor

Simple script that extracts the theme of any web page.

Usage:

  • With any web page open, open chrome devtools (F12) and paste this script, or
  • Install it using the Tampermonkey chrome extension

Features:

  • Check how many colors, font-sizes, etc... are being used
  • See how many elements are using them, and where they are
  • Modify the values (e.g. merge font-sizes to have less distinct values, simplifying the theme)

This is just an experience, and it should have lots of other bugs, but if you have feedback please let me know.

image

Known issues:

  • When using with Tampermonkey, it will not work correctly with SPA pages (e.g. done with React)
  • Changing a color input does not update the color picker (the other way around works fine)
  • Coloring the text of links still might not work (because of :active/:visited)
  • Pressing up/down in properties with several values (e.g. in margins, padding, etc..) only changes the first value, instead of the one under the cursor

Future Improvements

  • Merge two inputs when changing a value to be the same as another one
  • Have a way to increase/decrease all font-sizes, all margins, all paddings at the same time
  • Have a way to change the luminosity, saturation and hue of all colors at the same time
  • A new Groups section showing sets properties that are always applied to the exact same widgets

About

Web Page Theme Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published