-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate class lists #75
Comments
Hi, can you give an example of what you need? |
Sure. So the app I am building is goldly. https://github.com/pink-gorilla/goldly So it would be amazing, if I could generate a tailwind css file, similar to how tailwind + purge css work. so say (girouette/generate {:colors ["blue" 50 100 500 900] :color-tags ["bg" "hover" "text-"]}) Of course the config Unfortunately I dont know enough about tailwind to understand which combinations it woul dneed to generate. I forsee a two tier approach really. For the third option, I would need to create a custom class function that would enter all elements that are rendered The reason why I cannot rely on the girouette approahc as it stands is that there is clojure and clojurescript code, I hae hacked something together for now here: https://github.com/pink-gorilla/webly/blob/master/frontend/src/frontend/tailwind/generator.clj Even with just my 30 or so github repos, I cannot find all the tailwind tags that I have been using so far. The rason why I go through this effort is, that I do not want to use a javascript tool when I can stay only on I have to stop using the big 1-3 megabyte tailwind css files, as they are too big for mobile phone to load the Many thanks for your great work! You spent a lot of time on doing the parsers so you can parse the tags What I am trying to o is the sort of other approahc. Generate the tags. But I think it is not too difficult. So all I would have to give some parameters which liit the scope of all possible combinations. MANY THANKS!! |
Girouette is a CLJC library, which means that it can run on the JVM and in browsers. In theory, you should be able to use it inside of your webapp to dynamically generate the CSS as you go, and feed the browser with the dynamic CSS stylesheets. Maybe that's what you need? I will make a small demo about it in a couple of days. The related issue is #26 |
Hi!
I deal with documents that consist of hiccup that might contain arbitrary tailwind markup. I therefore would like to use girouette to generate one or more css files.
I was able to generate css for individual styles, and this works really wonderful once one knows the list of tags.
What I would like to have is a way to create a css file based on possible combinations.
This idea I think is also a good way to enforce proper style template guides, or in other words make sure that multiple documents use the same styles / have a common design philosophy. If everything is possible then at some point there is chaos and nothing works.
Thanks
The text was updated successfully, but these errors were encountered: