Phoenix 1.7 Bootstrap CSS for Core Components

Hello,

When I upgraded to phoenix 1.7, core components with tailwind CSS are now available. Does anyone have rewritten classes for these components in Bootstrap CSS please? I have little experience, I want to use these components, but at the same time I have no idea how to efficiently convert them to Bootsrap CSS.

I knew I couldn’t convert it 1:1, but I was asking for an alternative.

If anyone has a conversion to Bootsrap and shares, I’d appreciate it.

Thank you very much for any help! :slight_smile:

1 Like

It shouldn’t be too difficult, just a bit time consuming.

You could start by converting all the tailwind classes to inline styles. With the exception of a few css variables that’s rather straightforward translation. Then you’d have equivalent functionality but no longer need tailwind dependency.

After that you can migrate to bootstrap at your leisure. See Phoenix 1.7 and Bootstrap 5 - Tutorials and screencasts for Elixir, Phoenix and LiveView for some ideas on this.

1 Like