The opinionated extension to Phoenix core_components, inspired by shadcn.
A set of HEEX components that can be independently installed and edited to your hearts content.
Working both with Live and dead controller views, written in HEEX using TailwindCSS and designed to be bolted onto applications using Phoenix Core Components.
Visit the demo site to see a Phoenix Storybook of Bloom components.
Can be installed by adding bloom
to your list of dependencies in mix.exs
:
def deps do [ {:bloom, "~> 0.0.8"} ] end
Relies on Phoenix being installed.
All components can be installed by running the following mix command in your project rootmix bloom.install <component_name>
Some components require Tailwind Config changes - refer to the component doc for more information.
View all components by running: Install Ecto-backed waitlist & landing page by running:You will need to run mix ecto.gen.migration
to create the migration and copy and migrate the contents from waitlist.ex to complete.
You will also need to add the generated LiveView to your router.
Frequently Asked Questions Why are the components manually installed?So you can customise them to your hearts content and make them your own easily. The source code of the components will live in your project so you can tweak them as you see fit.
The colours aren't showing up!Tailwind treeshakes colours that aren't in use at compile time - this means dynamic ones set by Phoenix Components won't show if the colours aren't already part of the page. You can circumvent this by safelisting colours in your tailwind.config.js
or ensuring the colours are already in use (not recommended).
See the Tailwind website for more information.
You can safelist by Regex or manually.
Recommended safelist:
safelist: [
{
pattern: /bg-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /text-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /from-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /to-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /inset-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /opacity-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
{
pattern: /transition-+/,
variants: ["focus", "hover", "group-hover", "active"],
},
],
There aren't many components
I'm gonna be adding components slowly but this repo welcomes contributions for beautiful, useful components not already covered by the excellent core_components that ship with Phoenix.
How do I preview these components?I'm going to be adding a Storybook and website soon.
Everything!
This isn't a complete package yet - hence the version.
mix bloom.generate_templates
when ready to submitRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4