Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
72 stars 13 forks source link

[CSS] Color name conversion #140

Open S-K-Tiger opened 2 years ago

S-K-Tiger commented 2 years ago

πŸš€ Enhancement Request

Describe the Enhancement you'd like

Currently color names seem to be ignored but, as they can be both longer and shorter than the hexadecimal code they represent, they could be used to reduce file size even more. For example both the colors yellow and red can be represented by a 4 character hexadecimal. yellow has 6 characters and red has 3. Therefore converting #F00 to red and yellow to #FF0 saves 1 and 2 characters respectively.

From:

p{color:yellow;background-color:#F00}

To:

p{color:#FF0;background-color:red}

Additional context

welcome[bot] commented 2 years ago

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!

Josee9988 commented 2 years ago

That is a great idea! Thanks for the issue. I will work on it when possible