Enhancement Guide

This guide explains how to enhance plugins with Framework v2.0’s expanded responsive capabilities. For a quick migration checklist, see the Upgrade Guide.

What changed in Framework v2.0

Bit-depth variants (1-bit, 2-bit, 4-bit)

Write a safe default that looks great on 1-bit displays, then layer enhancements for richer devices using `2bit:` and `4bit:` prefixes. Common use cases include deeper background shades, enabling additional structure, or revealing supplementary content only when contrast permits.

See Visibility and Background .

Automatic bit‑depth adaptation (Background, Border, Text)

The Background , Border , and Text utilities are automatically responsive to device bit‑depth. The applied shade adapts to the device’s capabilities so your default looks balanced on 1‑bit, 2‑bit, and 4‑bit displays.

  • Defaults are safe: a single token (e.g., `bg--gray-30`, `border--h-4`, `text--gray-45`) renders appropriately across devices.
  • You can still take control using responsive prefixes to tune behavior for size, orientation, and bit‑depth (e.g., `md:portrait:2bit:bg--gray-40`, `4bit:text--gray-35`).

Utilities and elements added in v2