TL;DR

Phoenix LiveView 1.2 has been officially released, adding colocated CSS capabilities and small enhancements. Developers can now embed CSS directly within HEEx templates, with ongoing work on CSS scoping support.

Phoenix LiveView 1.2.0 has been officially released, introducing colocated CSS support and other improvements, enabling developers to embed CSS directly within HEEx templates.

The new version, LiveView 1.2, builds on previous work by allowing developers to colocate CSS in HEEx templates, similar to how colocated JavaScript is handled. This is achieved through the use of the :type attribute, which extracts CSS content into a dedicated folder during compilation, facilitating integration with bundlers like Tailwind or Esbuild.

One of the key features is the potential for CSS scoping using the @scope rule, which allows rules to apply only within specific component boundaries. However, full browser support for @scope is limited at this time. The LiveView team has implemented an opt-in configuration for scoping via a new compile-time setting, but actual scoping functionality remains experimental and not shipped by default.

In addition to CSS features, LiveView 1.2 introduces several smaller enhancements: a new behavior for formatting

You May Also Like

Airdrop Vs Nearby Share Vs Quick Share: What Works Best

Meta description: “Much depends on your device ecosystem—discover which file sharing method, AirDrop, Nearby Share, or Quick Share, truly works best for you.

Why Your Contact Form Is Killing Your Conversion Rate

Discover how simple changes to your contact form can triple your leads. Learn why static forms fail and how to fix them fast.

Disk Is the Contract: Inside Threlmark’s Local-First Architecture

Discover how Threlmark’s file-based, local-first design simplifies data handling, offline use, and collaboration—without a single database layer.

Upcoming breaking changes for npm v12

npm v12 will introduce security-focused default changes, blocking scripts and dependencies unless explicitly allowed, with release expected in July 2026.