Phoenix LiveView 1.2 Released

TL;DR

Phoenix LiveView 1.2 has been officially released, adding support for colocated CSS and several small but impactful improvements. The update simplifies styling in LiveView components and enhances template compilation, though full CSS scoping remains experimental.

Phoenix LiveView 1.2 is now available, introducing colocated CSS support and several improvements to template compilation and JavaScript handling, aimed at enhancing developer experience.

The new release, version 1.2, enables developers to colocate CSS within HEEx templates, leveraging the @scope rule and phx-r attributes to scope styles to specific components. This builds upon existing colocated JavaScript features introduced in LiveView 1.1.

While the framework now supports colocated CSS, full CSS scoping using the @scope rule is not yet included due to limited browser support. Instead, LiveView offers a configurable approach with a custom phx-r attribute and a partial implementation of the @scope rule, allowing early adopters to experiment with scoped styles.

Additional improvements include the ability to customize the formatting of

You May Also Like

How to Build a Quiet Home Office: The Soundproofing Basics

Creating a quiet home office begins with soundproofing basics that can transform your space into a peaceful, focused environment—discover how to start today.

Software-Defined Warfare: How Ukraine’s Delta Turned the Battlefield Into a Shared, Real-Time Map

A July 1 briefing casts Ukraine’s Delta as a model for software-defined warfare, while warning that target claims remain unverified.

Openai Updates Sora Policy Amid Creative Rights Backlash

Understanding OpenAI’s recent Sora policy updates is crucial as they aim to address creative rights concerns and reshape user engagement.

Ai-Powered Relief: How Northeast Georgia Is Helping Overworked Clinicians

Merging AI innovations with healthcare, Northeast Georgia is transforming clinician workloads—discover how these changes could impact your practice.