Polyscope - The agent-first dev environment for Laravel

New Colors Added in Tailwind CSS v4.2

Published on by

New Colors Added in Tailwind CSS v4.2 image

Tailwind CSS v4.2.0 adds a new webpack plugin, four new default color palettes, a full set of logical property utilities for block-direction spacing and borders, and new inline/block size utilities that map directly to CSS logical sizing properties.

Key highlights include:

  • New @tailwindcss/webpack plugin package
  • Four new colors added to the default theme: mauve, olive, mist, and taupe
  • Block-direction padding, margin, border, scroll padding, and scroll margin utilities
  • Logical inset utilities (inset-s-*, inset-e-*, inset-bs-*, inset-be-*)
  • Inline/block size utilities (inline-*, block-*, and min/max variants)
  • font-features-* utility for font-feature-settings
  • start-* and end-* deprecated in favor of inline-s-* and inline-e-*

What's New

Webpack Plugin

A new @tailwindcss/webpack package brings Tailwind CSS as a first-class webpack plugin:

// webpack.config.js
import tailwindcss from '@tailwindcss/webpack';
 
export default {
plugins: [new tailwindcss()],
};

New Color Palettes

The default theme now includes four new color palettes: mauve, olive, mist, and taupe. These work with all standard color utilities and scale steps:

<div class="bg-mauve-100 text-mauve-900">Mauve</div>
<div class="bg-olive-200 border border-olive-400">Olive</div>
<div class="bg-mist-50 text-mist-700">Mist</div>
<div class="bg-taupe-300 hover:bg-taupe-400">Taupe</div>

Logical Property Utilities

This release adds a set of utilities for CSS logical properties in the block direction that map to the physical top/bottom sides while respecting writing mode and text direction:

Padding block:

<div class="pbs-4 pbe-8">
<!-- padding-block-start: 1rem; padding-block-end: 2rem -->
</div>

Margin block:

<div class="mbs-6 mbe-2">
<!-- margin-block-start: 1.5rem; margin-block-end: 0.5rem -->
</div>

Border block:

<div class="border-bs border-be border-gray-300">
<!-- border-block-start and border-block-end -->
</div>

Scroll padding and margin block:

<div class="scroll-pbs-4 scroll-mbe-2">
<!-- scroll-padding-block-start and scroll-margin-block-end -->
</div>

Logical inset:

The inset-s-*, inset-e-*, inset-bs-*, and inset-be-* utilities cover logical positioning for inline-start, inline-end, block-start, and block-end respectively:

<div class="absolute inset-bs-0 inset-be-0 inset-s-4">
<!-- pinned to block-start and block-end, offset from inline-start -->
</div>

Inline/Block Size Utilities

New utilities map to the CSS inline-size and block-size properties, which are the logical equivalents of width and height. All standard size scale values, plus min-* and max-* variants, are available:

<!-- Logical width (inline-size) -->
<div class="inline-64 min-inline-0 max-inline-full">...</div>
 
<!-- Logical height (block-size) -->
<div class="block-32 min-block-screen max-block-none">...</div>

font-features-* Utility

A new font-features-* utility provides access to the font-feature-settings CSS property. This allows enabling or disabling OpenType font features such as ligatures, small caps, and tabular numbers:

<p class="font-features-['liga','calt']">Text with ligatures and contextual alternates</p>

Deprecations

The start-* and end-* utilities are deprecated in this release in favor of inline-s-* and inline-e-*. The new names align with the broader logical property naming convention introduced alongside the block-direction and size utilities. Update usages when upgrading:

<!-- Deprecated -->
<div class="start-4 end-0">...</div>
 
<!-- Preferred -->
<div class="inline-s-4 inline-e-0">...</div>

References

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Tinkerwell

Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.

Visit Tinkerwell
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
SerpApi logo

SerpApi

Access real-time search engine results through a simple API—no more scraping headaches! Use it for AI applications, SEO tools, product research, travel information, and more

SerpApi
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell

The latest

View all →
Laravel Installer Now Returns JSON When Running Inside an AI Agent image

Laravel Installer Now Returns JSON When Running Inside an AI Agent

Read article
Queue-Wide Inspection Methods in Laravel 13.8.0 image

Queue-Wide Inspection Methods in Laravel 13.8.0

Read article
Verifiable Audit Logging with Laravel Chronicle image

Verifiable Audit Logging with Laravel Chronicle

Read article
Ship AI with Laravel: Search Entire PDFs with Zero Search Logic image

Ship AI with Laravel: Search Entire PDFs with Zero Search Logic

Read article
Personalized Content Delivery System: Building an AI-powered recommendation engine with Laravel and MongoDB image

Personalized Content Delivery System: Building an AI-powered recommendation engine with Laravel and MongoDB

Read article
Laravel Brain: Visualize Your Application's Request Lifecycle image

Laravel Brain: Visualize Your Application's Request Lifecycle

Read article