garden VS truss

Compare garden vs truss and see what are their differences.

truss

A TypeScript DSL for writing utility CSS in React/JSX (by homebound-team)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
garden truss
2 5
1,330 31
- -
4.2 6.3
3 months ago about 2 months ago
Clojure TypeScript
- -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

garden

Posts with mentions or reviews of garden. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-29.
  • What working with Tailwind CSS every day for 2 years looks like
    11 projects | news.ycombinator.com | 29 Nov 2022
    Thanks for the vanilla-extract recommendation, I'll be using this!

    In my case, tailwind was useful for providing a handy set of vocabularies for simple and common stylings. But once customizations start to pile on, we're back into SCSS. Using 2 systems at once meant additionally gluing them with the postcss toolchain, so effectively we have 3 preprocessors running for every style refresh.

    Looking in at TypeScript from the clojurescript ecosystem though, I'm still yet to see an equal to https://github.com/noprompt/garden or https://github.com/Jarzka/stylefy: single language, excellent composability, compile-time anonymous class names, inline styles... almost like they solved CSS (except for typing)

  • Clojure Single Codebase?
    7 projects | /r/Clojure | 14 Aug 2022
    I spent some time doing this ~3 years ago, so I don't know about now, but to my knowledge it was the only language where you could really use one language for everything: no HTML (via hiccup), no CSS (via garden), clojure/clojurescript everywhere, and no shell (via babashka).

truss

Posts with mentions or reviews of truss. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-05.
  • StyleX – Meta's Styling Library
    6 projects | news.ycombinator.com | 5 Dec 2023
    Nice! We copied StyleX's "type-safe extensions" in Truss [1] so things like `` are allowed (setting margin is fine) while disallowing `` (anything "not margin") that would mess up the components internal impl details with a compile error.

    That said, we don't actually use the feature that much, vs. higher-level logical props like ``.

    I know we're supposed to use build-time CSS-in-JS these days, but afaiu they don't support the rare-but-handy "just spread together ~4-5 different object literals from ~random different conditionals + props", i.e. intermixing styles some inside the component + outside the component, which emotion handles really well.

    Basically this [2]. StyleX says it does "cross-file styles"...but can it support that? I kinda assume not, but I'm not sure.

    [1]: https://github.com/homebound-team/truss#xstyles--xss-extensi...

    [2]: https://github.com/homebound-team/beam/blob/main/src/compone...

  • What working with Tailwind CSS every day for 2 years looks like
    11 projects | news.ycombinator.com | 29 Nov 2022
    Fwiw to the avoid 80%-in-TW / 20%-in-SCSS-or-something-else dichotomy/complexity, we built Truss which brings TW (Tachyons) style abbreviations to the existing "something else" tool chain (Emotion in our case).

    So then everything goes through a single system.

    https://github.com/homebound-team/truss

    > tailwind's and SCSS's VS code integration is pretty amazing

    We get that too, by being just vanilla TypeScript, no editor-specific integration necessary. :-D

    (I've linked to Truss in another response, so will stop now. :-))

  • Why Tailwindcss over styled-components?
    7 projects | /r/reactjs | 23 Nov 2022
  • Ask HN: Who is hiring? (November 2021)
    31 projects | news.ycombinator.com | 1 Nov 2021
  • TailwindCSS JIT with Arbitrary Values
    9 projects | news.ycombinator.com | 7 Apr 2021
    Don't want to take away from Tailwind, it's great.

    That said, self-promotion disclaimer but if you like inline/utility CSS, and also like TypeScript/React/Emotion, we've got a "Tailwinds-ish" CSS-in-JS library that we've enjoyed so far:

    https://github.com/homebound-team/truss

What are some alternatives?

When comparing garden and truss you can also consider the following projects:

stylefy - Clojure(Script) library for styling user interface components with ease.

docker-node-example - An example Node / Express app that's using Docker and Docker Compose.

Rete.js - Rete.js is a framework for creating visual interfaces and workflows. It provides out-of-the-box solutions for visualization using various libraries and frameworks, as well as solutions for processing graphs based on dataflow and control flow approaches.

class-types.macro

Photon - Lightning fast and portable programming language!

headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code

unocss - The instant on-demand atomic CSS engine.

beam - 🪵 Beam Design System

stitches - [Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.

tailblocks - Ready-to-use Tailwind CSS blocks.

open-props - CSS custom properties to help accelerate adaptive and consistent design.

TimescaleDB - An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.