Uilora Dither

A smooth fluid brightness simulation passed through an 8x8 Bayer matrix for ordered dithering, creating a sharp pixel-art look.

Main Features of Uilora Dither

How to Use Uilora Dither in Next.js

Installation Guide for Uilora Dither

Props

Customize the component with these props

PropertyTypeDefaultDescription
color1
string#000000Background (Dark)
color2
string#ffffffForeground (Dots)
speed
number1.0Flow speed
blockSize
number2.0Pixel size (higher for chunkier)
intensity
number1.0Contrast of the dithering

When to Use

Excellent for retro-themed sites, lo-fi aesthetic brands, or any project that wants a high-contrast, pixelated texture.

Best Practices

Adjust the `blockSize` to match your site's overall 'resolution'. A block size of 2.0 or 4.0 creates a great 'GameBoy' or 'Macintosh' dither feel.

Why This Component Matters in Modern UI Development

Dithering is a classic technique for simulating gradients with limited colors. Using a full 8x8 Bayer matrix in a shader allows for real-time high-performance dithering that looks infinitely more 'authentic' than simple CSS patterns.

Frequently Asked Questions

QDoes it look good in color?

Absolutely. Try using deep Blue/Cyan or Green/Black for a 'Cyberpunk Matrix' or 'Terminal' aesthetic.

QHow small can the blocks be?

Set `blockSize` to 1.0 for the finest possible dithering, but usually 2.0+ is better for the dithered 'texture' to be visible.

QIs it interactive?

Yes, the underlying fluid simulation reacts to the mouse, which in turn shifts the dither pattern dynamically.

Uilora Dither - Mesh Gradients & CSS Backgrounds | Uilora