leptos-rs / cargo-leptos

Build tool for Leptos (Rust)
MIT License
314 stars 87 forks source link

[proposal] Add pure rust tailwind integration alternative (encre-css) #253

Open JonahLund opened 3 months ago

JonahLund commented 3 months ago

A rather recent pure rust tailwind alternative has gained some attention encre-css, which so far seems to be very promising in terms of tailwind compatibility, aswell as plugin support (icons, typography, etc), which is a rather crucial feature missing in earlier attempts to port tailwind to rust

So far in my usage ive found no compatibility issues when switching to encre-css

This would remove the need for npm/node completely in alot of leptos projects that uses node solely for tailwindcss, which significantly decreases the development complexity overall

encre-css GitLab

benwis commented 3 months ago

A rather recent pure rust tailwind alternative has gained some attention encre-css, which so far seems to be very promising in terms of tailwind compatibility, aswell as plugin support (icons, typography, etc), which is a rather crucial feature missing in earlier attempts to port tailwind to rust

So far in my usage ive found no compatibility issues when switching to encre-css

This would remove the need for npm/node completely in alot of leptos projects that uses node solely for tailwindcss, which significantly decreases the development complexity overall

encre-css GitLab

I'm certainly not opposed to the idea. We currently use the tailwind-cli binary, which includes the default plugins, so we're not bundling node/npm at the moment unless a user wants a third party plugin.

Currently I don't think we have the time to implement this as an alternative, but if you'd like to PR it it would be welcome