vugu / vugu

Vugu: A modern UI library for Go+WebAssembly (experimental)
https://www.vugu.org
MIT License
4.8k stars 175 forks source link

Consider using GCSS for CSS preprocessing #232

Open bradleypeabody opened 1 year ago

bradleypeabody commented 1 year ago

Is your feature request related to a problem? Please describe. People have requested SASS support, but it's painful to integration given the various implementations out there are written in other languages and not really designed to fit well into the Go ecosystem.

Describe the solution you'd like Look into using https://github.com/yosssi/gcss It's pure Go and has a command line version as well as is callable from code. See if this effectively addresses the need for "SASS".

Describe alternatives you've considered There is existing code here https://github.com/vugu/vgsassc which wraps the C SAAS compiler but it is deprecated.

owenwaller commented 8 months ago

Given that AFAIK SASS can always be turned into valid CSS why does this need to be in Vugu?

An external build process can always convert the SASS to CSS in a step in a build pipeline. Vugu then uses the resulting CSS.