Visual test page for bg-pixel-* utilities.
RGB pixel columns on black background with screen blend mode (additive mixing). Cell = (width * 3 + gap) wide, (height + gap) tall. Gap separates each R|G|B triplet.
Defaults: size 1 (width=1px, height=2px), gap 1, bleed 1px.
bg-pixel-white — R+G+B
bg-pixel-black — none
bg-pixel-red-500 — R heavy
bg-pixel-green-500 — G heavy
bg-pixel-blue-500 — B heavy
bg-pixel-cyan-500 — G+B
bg-pixel-fuchsia-500 — R+B
bg-pixel-yellow-500 — R+G
All using bg-pixel-blue-500. Gap is a multiplier of pixel width (pixel-gap-1 = 1x width).
gap-0.5
gap-1
gap-1.5
gap-2
gap-4
gap-6
Using bg-pixel-red-500. Size sets width (spacing/4, so size-1 = 1px); height is always 2x width.
size-1 (1px)
size-2 (2px)
size-3 (3px)
size-4 (4px)
size-6 (6px)
Using bg-pixel-white. From crisp LCD to CRT phosphor glow.
bleed-0 (crisp)
bleed-0.5
bleed-1
bleed-1.5
bleed-2
Color
bleed-0
bleed-1
red-500
orange-500
amber-500
yellow-500
lime-500
green-500
emerald-500
teal-500
cyan-500
sky-500
blue-500
indigo-500
violet-500
purple-500
fuchsia-500
pink-500
rose-500
slate-500
gray-500
white
black
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
bleed-0
bleed-0.5
bleed-1
bleed-1.5
bleed-2
All using bg-pixel-red-500 with varying opacity modifiers. The black background and all pixel layers fade together.
100% (default)
/75
/50
/25
/10
/0
Verifies the black background becomes transparent, letting underlying content show through.
white/50 over gradient
blue-500/40 over amber
emerald-500/60 over red
yellow-400/30 over dark
bg-pixel-[#ff6600]
pixel-size-[3px]
pixel-bleed-[0.7rem]
gap-0.5
gap-1
gap-1.5
gap-2
gap-4
gap-6
gap-0.5
gap-1
gap-1.5
gap-2
gap-4
gap-6
gap-0.5
gap-1
gap-1.5
gap-2
gap-4
gap-6
Sub-pixel patterns composing with border-gradient utilities on the same element.
border-linear-to-r
border-linear-to-b
border-linear-to-br
border-linear-45
border-radial
border-radial [at 25% 25%]
border-radial [at top]
border-conic-0
border-conic-90
border-conic-180
-border-conic-45
border-spin
spin 500ms
spin 3s
spin /longer
linear from/via/to
conic from/via/to
radial from/via/to
/oklch
/hsl
/longer
/shorter
Different pixel sizes and bleed settings with border gradients.
crisp tiny + border via
large pixels + border-spin
CRT glow + border-radial
Color
Solid
Pixel
slate-500
gray-500
zinc-500
neutral-500
stone-500
red-500
orange-500
amber-500
yellow-500
lime-500
green-500
emerald-500
teal-500
cyan-500
sky-500
blue-500
indigo-500
violet-500
purple-500
fuchsia-500
pink-500
rose-500
Shade
Solid
Pixel
50
100
200
300
400
500
600
700
800
900
950