eddieantonio / predictive-text-studio

Create predictive text for YOUR language!
https://predictivetext.studio/
MIT License
6 stars 1 forks source link

Investigate introducing CSS preprocessor .ts file to store constants #260

Open yehee opened 3 years ago

yehee commented 3 years ago

I think a .ts file could definitely work for our purposes! The industry standard though would be to use a CSS preprocessor like PostCSS or SCSS, which I think compiles CSS for us, which can circumvent the problems we are having currently. The counterargument might be that either of these is overkill currently. What are your thoughts on this?

I'm totally fine if we want to mark this a resolved, and then create an investigation task about the best way to go about these types of cases (and talk about pros and cons about .ts files vs .scss files)

Per discussion on this thread, should take the lead to investigate on available options to introduce constant variables for media query screen width.

eddieantonio commented 3 years ago

I would definitely look at using a PostCSS plugin. I used postcss-css-variables which inlines computed properties so that there is backward compatible syntax for older browsers. It might be helpful here, but I have not investigated or tried it out yet.