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

fklement
This is a thread to gather some information about the efforts of using elixir in combination with cars or vehicular systems in general. ...
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
sym_num
I created a Forth processor in Elixir. This is my hobby project. https://github.com/sasagawa888/Forth
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
christopheradams
I was recently asked to step up and become the maintainer for the Elixir Style Guide. It was, I believe, the first, and is now the most p...
New
markmark206
Every time I build a web app, I worry about a bunch of basic things (persisting data, knowing when to compute which things, keeping thing...
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
Crowdhailer
It is rare to use direct calls to send in elixir. The call is normally wrapped in a function which is responsible for sending the correct...
New
bartblast
I recently started a discussion about reactive patterns in Hologram, but I realized I need to step back and design the composability arch...
New
sergio
Laravel just announced their Series A round for $57 million. If Laravel wasn’t already the defacto PHP stack, it now most certainly is. T...
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
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
Tee
can someone please explain to me how Enum.reduce works with maps
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
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
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
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
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

We're in Beta

About us Mission Statement