w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.52k stars 672 forks source link

Suggestion for Enhancing CSS Variable System Integration #11247

Open EKotb456 opened 5 days ago

EKotb456 commented 5 days ago

Dear Mr/Maam; I am new to Github; I am aware that this field is designated for reporting issues, and I apologize for any inconvenience this may cause I would be grateful if you could consider incorporating the new variable system syntax of CSS. As a group of web developers, we believe that integrating this SCSS variable system as a CSS feature:

$color: red; .test { $background: white; color: $color, black; background-color: $background, white; }

This change would greatly simplify our programming tasks and enhance efficiency compared to the current approach. I hope this change will be beneficial to all programmers in the world.

:root { --color: red; } .test { --background: black; color: var(--color, black); background-color: var(--background, white); }

Furthermore, the lengthy process of compiling SCSS to CSS significantly impacts our productivity. I sincerely appreciate your great efforts and the assistance you have provided to us, and I would like to extend my heartfelt thanks. Yours, Kotb456;