girouette icon indicating copy to clipboard operation
girouette copied to clipboard

Make a demo with CSS generation in frontend land

Open green-coder opened this issue 4 years ago • 3 comments

Girouette, Instaparse and Garden are all written in CLJC, which means that it should be possible to generate the CSS content while running in the browser.

That could be a good development setup, as it would be independent from the various build tools which the Clojure community enjoys.

green-coder avatar Jan 15 '21 13:01 green-coder

Very interesting! I am curious to see this approach. Could be useful so the user of an app could customize the site theme dynamically. Just regenerate the css based in the config file.

awb99 avatar Jun 05 '21 09:06 awb99

There are many ways to collect the list of the CSS classes used in a webapp:

  • By traversing the DOM tree dynamically.
  • By using a macros which collect the CSS classes statically or dynamically.
  • By explicitly providing a generated sequence of CSS classes to Girouette.

green-coder avatar Nov 24 '21 01:11 green-coder

I understand that. I still want to generate a default list for now.

On Wed, Nov 24, 2021, 2:28 AM Vincent Cantin @.***> wrote:

There are many ways to collect the list of the CSS classes used in a webapp:

  • By traversing the DOM tree dynamically.
  • By using a macros which collect the CSS classes statically or dynamically.
  • By explicitly providing a generated sequence of CSS classes to Girouette.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/green-coder/girouette/issues/26#issuecomment-977362651, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACS2CGU7PXO3GLVAFS3N2LTUNQ5VJANCNFSM4WEB4EMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

awb99 avatar Nov 24 '21 02:11 awb99