kusokuzeshiki

kusokuzeshiki

I used Claude Code +Fluxon UI to generate real world page samples

I tried to generate pages with claude code and fluxon ui.
I ask to claude code to generate real world page samples, the results are these.
How do u feel? For me, it’s awesome. I’m newbie to frontend dev and always struggle to get well designed page without paying effort. These pair might give me a magic wand to make beautifully layouted page






.

Most Liked

kusokuzeshiki

kusokuzeshiki

I just ask to claude code to make sample pages with fluxon UI for several usecases.
With this simple prompt, claude code generated these pages. Before I did vibe coding for vanila react/typescript but results pages are messy.
I ask claude code why u can generate such well designed pages. He responded it’s because of well considered implementation of fluxon ui.
Each components are designed with harmonized color, consistent space, accessibility.
For claude code, I think elixir and fluxon ui are probably little bit minor but fluxon ui has good abstraction for components design, so the knowledge of claude code for good design seems to utilize such abstraction to generate well designed pages.
I don’t understand how ui library should be and i’m not sure these claude opinion is right or not. Though, these results are really acceptable for me.

kusokuzeshiki

kusokuzeshiki

The abstraction for component design what I said above is not special thing which only fluxon supoorts, probably other library like tailwind plus and shadcn support too.
But fluxon is designed for liveview. I didn’t use fluxon well until now, just scratch the surface. It’s paid library but if using it support ui making works well, I think it worth it.
I’ll try fluxon for my vibe coding. If I found something new, I’ll report again.

claude code response -----------------------

In magic_of_fluxon_ui.md, u
summerieze how fluxon works to
create bettern design. other
library like shadcn,tailwind plus
also support same functionality
from the view point of style
making?

:record_button: Great question! Yes, other
libraries like shadcn/ui and
Tailwind UI provide similar
functionality. Let me compare
them:

:artist_palette: Design System Libraries
Comparison

Fluxon (Phoenix LiveView)

  <.button variant="solid"
  color="blue" size="lg">
    <.icon name="hero-shopping-cart"
   />
    Add to Cart
  </.button>

shadcn/ui (React)

  <Button variant="default"
  size="lg" className="w-full">
    <ShoppingCart className="mr-2 
  h-4 w-4" />
    Add to Cart
  </Button>

Tailwind UI (HTML/React/Vue)

  <button class="inline-flex 
  items-center justify-center 
  rounded-md bg-blue-600 px-4 py-2 
  text-sm font-medium text-white 
  hover:bg-blue-700">
    Add to Cart
  </button>

:magnifying_glass_tilted_left: Key Similarities

All provide the same 4 Refactoring
UI principles:

  1. Color Theory :white_check_mark:
  • Fluxon: color=“blue” → semantic
    color system
  • shadcn/ui: variant=“destructive”
    → semantic variants
  • Tailwind UI: bg-blue-600 →
    consistent color scales
  1. Spacing System :white_check_mark:
  • Fluxon: size=“lg” → py-2.5
    px-3.5
  • shadcn/ui: size=“lg” → h-11 px-8
  • Tailwind UI: Manual but
    consistent spacing patterns
  1. Typography :white_check_mark:
  • Fluxon: Built-in font hierarchy
  • shadcn/ui: Consistent text-sm
    font-medium patterns
  • Tailwind UI: Professional
    typography scales
  1. Accessibility :white_check_mark:
  • Fluxon: role=“dialog”
    aria-modal=“true”
  • shadcn/ui: Radix UI primitives
    (excellent a11y)
  • Tailwind UI: Semantic HTML +
    ARIA attributes

:trophy: What Makes Each Special

Fluxon (Phoenix/Elixir)

  • Server-side rendering focus
  • LiveView integration
  • Elixir-specific patterns

shadcn/ui (React)

  • Copy-paste components (you own
    the code)
  • Radix UI primitives (excellent
    accessibility)
  • Most popular in React ecosystem

Tailwind UI (Multi-framework)

  • Official Tailwind components
  • Multiple frameworks (React, Vue,
    HTML)
  • Premium but comprehensive

:light_bulb: The Real Answer

Yes, they all support the same
design-making functionality! The
magic isn’t unique to Fluxon -
it’s about having:

  1. Systematic design tokens
    (colors, spacing, typography)
  2. Pre-built components with good
    defaults
  3. Consistent API patterns
  4. Accessibility built-in

:bullseye: Why Your Task App Was Messy vs
This Project

Without design system: Manual
decisions for every color,
spacing, font size
With any design system: Automated
good design decisions

The difference is having a design
system vs not having one, not
specifically Fluxon vs others.

Fluxon works well for you because:

  • It’s designed for Phoenix
    LiveView (your tech stack)
  • It follows Elixir conventions
    (.component syntax)
  • It has comprehensive
    documentation and examples

All these libraries solve the same
core problem: turning design
decisions into reusable,
consistent components.

kusokuzeshiki

kusokuzeshiki

i forgot but I might give relative path to the code of fluxon ui which was installed by mix deps.get.
I didn’t do anything special. If I can dig it from Claude code chat history, I’ll paste it here.

kusokuzeshiki

kusokuzeshiki

I couldn’t dig into original prompt but claude code suggest the prompt if I ask again.
Shorter one is close to my original but original shorter than this.
I didn’t check this works or not.


Recommended Prompt:

The Fluxon UI library code is located in deps/fluxon/lib. Please create 10 real-world
application examples using Fluxon UI components.

For each example:

  1. Create a complete, functional page/feature (not just component demos)
  2. Use multiple Fluxon components together in realistic scenarios
  3. Include proper state management and user interactions
  4. Make them production-ready with error handling and loading states
  5. Ensure responsive design for mobile and desktop

Suggested examples could include:

  • Dashboard with stats and charts
  • User profile/settings page
  • E-commerce product listing
  • Task management interface
  • Blog/article editor
  • Team member directory
  • Pricing/subscription page
  • File manager interface
  • Calendar/scheduling view
  • Analytics/reports page

Create these as separate LiveView modules with proper routing. Focus on demonstrating
how Fluxon components work together in real applications rather than isolated
component showcases.

Alternative Shorter Prompt:

Using the Fluxon UI library in deps/fluxon/lib, create 10 real-world application
examples that showcase how the components work together in production scenarios. Make
each example a complete, functional feature with proper interactions, state
management, and responsive design. Include common patterns like dashboards, forms,
data tables, and user interfaces.

Where Next?

Popular in Discussions Top

artimath
I think I’ve tried 5 different graph database libraries in the last two days and not a single one has been able to connect to a remote/lo...
New
f0rest8
Hi everyone :waving_hand: Posting here to showcase and announce that Metamorphic is now officially live on a public-facing domain at htt...
New
AstonJ
A recent chat with @leifericf inspired this thread - he’s worked in the gaming industry, and so it got me wondering what kind of industri...
New
AstonJ
Have you changed the way you learn? Maybe you started off using docs and tutorials and are now an avid book reader or course watcher? Or ...
New
tristan
First announced on the Erlang Forum, BEAMup is a tool for installing a managing the active instance of BEAM languages. It has support for...
New
thiagomajesk
I came across this PKGX tool the other day, if anyone here is using it, could you share your experience? I’m wondering how useful it wou...
New
derpycoder
So, anyone got a chance to look at this?!? I’m kind of glad this came along. We can just throw this into our Auth pages and won’t have t...
New
travisf
In upgrading from Ecto 2 to Ecto 3 I’m dealing with a failing test. If I use ExMachina build(:address) I’ll get an error trying to put_e...
New
AstonJ
A remark @Garrison made… ..has already inspired a thread for the technical side of reclaiming our internet, but there is of course anot...
New
karlosmid
The |&gt; operator appears in many languages, mostly in the functional world. F# has essentially the exact same operator, as does OCaml. ...
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
beno
I will often find my self writing things similar to: case some_value do nil -&gt; something() "" -&gt; something() _ -&gt; someth...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
273 38985 115
New

We're in Beta

About us Mission Statement