ilyabayel

ilyabayel

Essence UI - Accessible, headless UI component library for Phoenix LiveView

Hi everyone!

I’d like to introduce Essence UI, a component library for Phoenix LiveView heavily inspired by Radix UI and built around a simple idea:

Your component library should handle accessibility, behavior, and layout without deciding what your application should look like.

Essence UI provides a growing collection of common UI patterns as unstyled, customizable components. Each component includes the structure, interaction logic, state management, and accessibility needed to work properly in a LiveView application.

You add the styles and turn those building blocks into a component library that follows your own design language.

Bring your own design system

Many component libraries give you finished components, but also bring their own visual identity. Essence UI takes a different approach. It’s primitives give you the difficult parts:

  • Accessible markup and keyboard interactions
  • Component state and behavior
  • Predictable composition
  • LiveView-specific logic
  • Reusable layout and structure
  • Consistent component APIs

The visual layer remains yours. You can customize the primitives with your own CSS, tokens, spacing, typography, colors, and animations to create components that feel native to your product.

Prefer ready-made components?

You don’t have to build everything from scratch. Essence UI also includes pre-styled components built on top of the same primitives. You can use them directly, customize their appearance, or treat them as examples for building your own design system.

This gives you two ways to work:

  • Use the unstyled primitives when you want complete control over your design.
  • Use the pre-styled components when you want polished UI without writing all the styles yourself.

You can also mix both approaches within the same application.

Why Essence UI?

After building several LiveView applications, I wanted a component system that offered the flexibility of headless UI libraries while remaining native to Phoenix and LiveView.

The goal of this library is to give you the ability to create unique user interfaces with minimal effort.

Project goals

  • Accessible components by default
  • Unstyled primitives with complete layout and interaction logic
  • Give users full control over visual design for Primitives
  • Pre-styled components for faster development with Themes
  • APIs designed specifically for Phoenix LiveView
  • Minimal dependencies—no Alpine.js, Tailwind, or similar frameworks required
  • Pure CSS for themed components
  • A consistent foundation for custom design systems

LiveView-only support

Essence UI currently supports LiveView pages only.

Traditional Phoenix pages rendered through controllers—sometimes referred to as dead views—are not supported at the moment. Some components rely on LiveView-specific lifecycle, state, and interaction features, so they should not be expected to work outside LiveView.

For now, I want to keep the project focused on providing the best possible LiveView experience. If there is enough interest in dead view support, I will consider adding it in the future.

Current status

Essence UI is still under active development, but it has reached the point where I’d like to share it with the community and gather feedback before expanding the component set.

I’d especially appreciate feedback on:

  • Primitive APIs
  • Composition patterns
  • Accessibility
  • Customization experience
  • Component naming
  • The balance between unstyled and pre-styled components

Documentation, examples, and additional components are already on the roadmap.

I’d love to hear your thoughts and suggestions.

Documentation: Essence UI — Primitives
Hex: https://essence-ui.hexdocs.pm/
Repository:

Most Liked Switch mode

ryanzidago

ryanzidago

Nice one, this is awesome :raising_hands:
IMHO the Phoenix ecosystem needs more and more component libraries!

Last Post!

ilyabayel

ilyabayel

Thank you! Indeed, it would be great if Elixir community had more convenient ways to build UI faster and simpler

Where Next?

Trending in Announcing Top

bluzky
You may know https://ui.shadcn.com/, a UI component library for React. I really love it’s design style and components. I’ve built some co...
385 14863 120
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
shahryarjb
The Chelekom project is a library of Phoenix and LiveView components generated via Mix tasks to fit developer needs seamlessly. One of i...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
zachdaniel
Introducing AshStorage! Attachment and file management that slots directly into your resources :smiling_face_with_sunglasses: I had hope...
New

Other Trending Topics Top

type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
bjorng
We want to introduce a new native datatype to Erlang: native records. Although replacing all tuple records with native records is not our...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
yureehuh
Introduction Founded in 2017 by landscape ecologist and fire mitigation expert Harry Statter, Frontline developed the first fully integra...
New

We're in Beta

About us Mission Statement