# Tune Chromatic Aberration on a Glass Rim

The small rainbow edge on a clear lens comes from sampling red, green, and blue at slightly different positions. QuickLiquid changes the scale of the same displacement field for each channel. The color separation is most visible where a sharp edge crosses the bezel.

## Set up a visible comparison

Use the **Fine lines** or **Contrast** background in the [playground](/playground/). Choose the clear material and set chromatic aberration to zero. Then raise it slowly while keeping blur and strength fixed. The following config gives an intentionally visible comparison on a sharp scene.

```ts
const clearPrism = {
  material: 'clear',
  blur: 2,
  refractionStrength: 28,
  chromaticAberration: 0.36,
  dispersionMode: 'exact',
  quality: 'high',
} as const;
```

## Let frost and the rendering path guide the setting

Increase blur with the same chromatic aberration. The fringe becomes harder to see because nearby colors blend together. In `auto` dispersion mode, the 0.2.0 engine can skip the RGB branch when its estimated fringe is weak under frost. The `exact` setting bypasses that visibility heuristic in eligible tiers, while `low` always skips dispersion and `extreme` enables it for a positive chromatic value. The CSS-only fallback has no SVG color split.

Use a lower value on a tight toolbar with small text and reserve stronger color for a decorative rim where it does not compete with content. The [quality guide](/blog/liquid-glass-quality-settings/) explains the other tradeoffs, and the [optics source](https://github.com/amarnath3003/quickLiquid/blob/v0.2.0/packages/quick-liquid/src/core/optics.ts) shows the dispersion rule used in the release.
