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

Immich 3.0

Immich releases version 3.0, adding new AI capabilities and enhanced user interface, marking a significant update for the photo management platform.

Make Shortcuts: Automate Boring Phone Tasks in Minutes

Create custom shortcuts to automate tedious phone tasks in minutes and unlock new ways to save time and enhance your daily routine.

RSVP-and-payment co-host tool for supper club hosts

A new co-host tool for RSVP and payment collection is being tested for independent supper club hosts, aiming to streamline private event management.

RHEO on the Web: Find Your Flow

RHEO launches its web version, offering instant, private, browser-based fluid simulation for relaxation, creativity, and ambient display without downloads or sign-up.