ppetrov

ppetrov

Should I mix UI libraries?

Hello colleagues,

My question today is related to UI libraries. Usually i am not a fan of mixing libraries for the simple reason of overusing stuff that can later on start creating problems. So let say i am building a web app and chose to go with tailwind pro. We already have DaysiUI. At some point i find i need to add additional library for a form element. Even it will be for particular page that library will be present.

So the question is - how do you do it in your projects? Do you mix libraries because of requirement of certain elements or you try to keep it clean and manage with one (or two max) library(es)?

Regards,

Peter

First 5 of 5 Posts Switch mode

Pal

Pal

I get rid of daisyui

this was on the forum recently - Project - Automate common Phoenix tasks so you can start building your idea faster

you can customise to give yourself sane defaults

eahanson

eahanson

I don’t use component libraries or CSS frameworks, including what’s generated by Phoenix.

In my experience, it’s easier in the long term to write it all from scratch. Well not 100% from scratch because I sometimes copy & paste code from open source CSS and component libraries and then change it to fit my needs.

LLMs are pretty good at CSS these days, so you can ask them for help or just have them generate the code if you’re into that sort of thing. But you do need to think about how the components are going to interact with each other, how they will be composed, etc.

ppetrov

ppetrov OP

@AstonJ thanks for the edit. The goal is to find out if mixing UI libs is usual practice or not.

AstonJ

AstonJ

Some options for you Peter:

  • Title & Section same as what you’ve got currently (best if this is specific to your particular situation and where there’s more than likely a single ‘correct’ answer).
  • Title: Do you mix UI libraries? Is it common practice? Section: Phoenix Chat (best if you are seeking general opinions from others and where it’s not highly specific to your particular situation so it encourages more of a discussion or sharing of opinions rather than a single correct answer).

(Post content of each would reflect the above too.)

In terms of titles though they should be descriptive - people shouldn’t have to click on a thread to see what it is about :023:

ppetrov

ppetrov OP

Thanks! I will use that info for my future posts.

— All posts loaded —

Where Next?

Trending in Questions Top

jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New
rahultumpala
Hello, I have an Elixir backend that implements a custom protocol over TCP. I want to load test the backend and assess the performance o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement