John_Shelby
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! ![]()
Most Liked
jmnda
Hello, I have linked to a repo I was using before I migrated from Bootstrap to Flowbite. The repo has core_components.ex with Bootstrap styles. I have striped away the personal stuff so it’s just a bare dashboard template. I have added some simple LiveViews for Product and ProductCategory to see the components in action.
Repo: GitHub - jmnda-dev/phx-bootstrap-dashboard: A Phoenix framework bootstrap dashboard with Bootstrap styles `core_components` · GitHub
The Modal and some form inputs have some of their styles in the app.scss file. You can follow the ReadMe for setup instructions.
If you have any questions let me know.
7rans
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.8 and Bootstrap 5 · FullstackPhoenix for some ideas on this.
simonangatia
Thank you so much. It really helped me.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








