stylify / packages

💎 Monorepository for Stylify packages. Stylify uses CSS-like selectors to generate Extremely optimized utility-first CSS dynamically based on what you write 💎.
https://stylifycss.com
MIT License
424 stars 9 forks source link

Css variables should be enabled by default #195

Closed Machy8 closed 1 year ago

Machy8 commented 1 year ago

Describe the problem

The support seems fine https://caniuse.com/?search=css%20variables

Describe the proposed solution

Just set the false to true

Alternatives considered

.

Importance

would make my life easier

MilesPernicious commented 1 year ago

If you are going to change this anyway, might I also suggest changing the name?

The current name is rather long and not grammatically correct English.

enableCssVariables or even useCssVariables would be cleaner looking.

Machy8 commented 1 year ago

Hi @MilesPernicious. Thanks for this comment.

A good idea. I was also thinking about enableCssVariables.

With this following BC break, this option will be for disabling CSS variables . So maybe cssVariablesEnabled?:

const config = {
   enableCssVariables: false,
   // Or
   cssVariablesEnabled: false
}