Skip to content
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

Introduce a shadow-css.edn project file #26

Open
philjackson opened this issue Apr 5, 2024 · 1 comment
Open

Introduce a shadow-css.edn project file #26

philjackson opened this issue Apr 5, 2024 · 1 comment

Comments

@philjackson
Copy link
Contributor

It would be nice to have the concept of a project file to state the configuration of a shadow-css project in much the way shadow-cljs has. Has this crossed your mind? A structure for shadow-css.edn could be something along the lines of:

{:builds
 {:frontend
  {:target-namespaces '[my.namespaces*]
   :output-dir "some/directory/css"
   :extra-colors {"primary" {"" "#293c65"}}
   :extra-aliases {:animate-none {:animation "none"}
                   :animate-spin {:animation "spin 1s linear infinite"}}}}}

Then shadow.css.runner or similar could provide helpers like watch, once etc.

Let me know what you think and I can knock something up.

@thheller
Copy link
Owner

thheller commented Apr 5, 2024

Yes, this is something I eventually want to have.

No idea on the config format though. I kinda like the flexibility of the Clojure API, so going back to a EDN format seems limiting. I do want to automate some of the repetition though. No need for everything to be repeated in every project so verbosely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants