Comments (9)
I think it's mostly a time thing rather than a hard-and-fast rule. Since there's outside interest, I can see whether we want to revisit this decision.
Note that you can use libraries directly from Git using the Clojure CLI tools and in Leiningen (using a plugin).
from ornament.
Hi @euporos , I've cut a first release of Ornament
[com.lambdaisland/ornament "0.0.7"]
{com.lambdaisland/ornament {:mvn/version "0.0.7"}}
Keep in mind that as long as we are 0.x.x
we may still make breaking changes. We'd be very interested to hear about your experience trying it out though!
from ornament.
Thank you so much, @plexus, that's really great and certainly makes it easier to get one's feet wet. I'm well aware of the library being pretty alpha as of now and we're nowhere near swicthing all of our production code to it any time soon. But we're currently looking into options to improve our CSS pipeline and Ornament's value proposition makes it an interesting contender. So, thanks again and keep up the good work!
from ornament.
I would love to take it for a test drive
If you're using tools.deps, you can copy this and start hacking!
com.lambdaisland/ornament {:git/url "https://github.com/lambdaisland/ornament"
:git/sha "80ede082f2571ab3026795f86f401b9402b79896"}
from ornament.
Are you using it on the Clojure or ClojureScript side? if it's clj
or cljc
I feel fairly confident, the ClojureScript side hasn't been exercised as much.
from ornament.
I use it do declare style in .cljs files, with a shadow-cljs hook to build the css.
from ornament.
In that case I'm definitely interested to hear about how that's working for you, good or bad. You can also always drop into the Lambda Island discord if you like to exchange experiences https://discord.gg/rb82a62D
from ornament.
It's working so far, I save the file, it get compiled, the hook trigger and shadow push the new css file to to browser. The only tricky thing is related to macro expansion done on the clojure side so I can't use cljs fn inside a defstyled, but that's how cljs works so kind of expected. I have yet to try building for deploy.
(defn hook {:shadow.build/stage :flush} [build-state & _args] (let [css (o/defined-styles)] (when-not (blank? css) (spit "public/style.css" css))) build-state)
from ornament.
That's true, rules are compiled on the backend so they can't access frontend (cljs) functions. If you can use cljc
then you can.
from ornament.
Related Issues (12)
- How to use defstyled component in hiccup context? HOT 3
- Best practice for using style tokens ad-hoc? HOT 2
- add clj-kondo config export HOT 2
- How to pass html attributes to styled component with render function? HOT 1
- Do we still want to support tailwind v2, or move everything over to tailwind v3? HOT 1
- Error while macroexpanding cljs/cljc HOT 2
- Styling is broken for ring styles like 'ring-1' HOT 3
- Overload style rules on a styled component with custom render fn? HOT 6
- Garden vector of selectors missing extra HOT 3
- Ornament component with over 19 child throw arrity exception on ClojureScript HOT 4
- `girouette` child selectors ignored HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ornament.