sutra-ui

Provide Phoenix LiveView UI components and CSS-first theming utilities.

46|1|Updated Dec 8, 2025
One-click install
npx skills add https://github.com/gurujada/sutra_ui --skill sutra-ui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sutra-ui
Source: https://github.com/gurujada/sutra_ui/tree/main
Command: npx skills add https://github.com/gurujada/sutra_ui --skill sutra-ui

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phoenix, tailwindcss, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive library of reusable UI components for building modern, accessible, and efficient Phoenix LiveView applications. It simplifies the UI development process by eliminating the need for external JavaScript frameworks and offering a CSS-first theming approach.

Core Features & Use Cases

  • Component Library: Access a wide range of UI components, including buttons, forms, navigation, and AI primitives.
  • No External JS: Leverages Phoenix LiveView and Colocated Hooks for a pure Elixir experience.
  • CSS-First Theming: Customize your UI with CSS variables and override styles easily.
  • Use Case: Build a user-friendly dashboard for managing projects. Sutra UI provides all the components needed to create interactive forms, responsive layouts, and informative feedback to users without relying on external libraries.

Quick Start

Use the sutra-ui skill to render a button component with a custom theme.

Frequently Asked Questions about sutra-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Phoenix LiveView UI components without using external JavaScript?

You can build Phoenix LiveView UI components without external JavaScript by using a pure Elixir component library that leverages LiveView and colocated hooks. This approach provides a CSS-first theming experience, eliminating the need for JS frameworks while maintaining interactivity.

Does Tailwind CSS v4 work with Phoenix LiveView for component theming?

Yes, Tailwind CSS v4 works with Phoenix LiveView for component theming by utilizing a CSS-first approach with CSS variables. It allows you to easily customize and override styles for your UI components without fighting against external JavaScript framework defaults.

What is the best way to create an interactive dashboard in Elixir without adding a JS framework?

The best way to create an interactive Elixir dashboard without a JS framework is using Phoenix LiveView UI components. A comprehensive library provides forms, navigation, and responsive layouts natively in Elixir, ensuring maintainable and efficient web applications.

Can I use CSS variables to theme Phoenix LiveView applications?

Yes, you can use CSS variables to theme Phoenix LiveView applications through a CSS-first theming approach. This method allows you to easily customize UI components and override default styles directly within your stylesheets, providing flexible design control.

Do I need Phoenix 1.8 to build accessible LiveView UIs?

Yes, you need Phoenix 1.8+ and Tailwind CSS v4 to fully utilize this LiveView UI component library. These dependencies ensure you have the necessary framework capabilities for rendering accessible components and maintaining optimal performance.

What Phoenix LiveView limitations exist when rendering UIs without external JS?

When rendering Phoenix LiveView UIs without external JS, you rely entirely on LiveView and colocated hooks for interactivity. While this simplifies the stack, complex client-side animations or highly specialized browser APIs may require custom hook implementations instead of ready-made JS packages.