
Soft gradients, typed out in characters.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Soft gradients, typed out in characters.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Soft gradients, typed out in characters.
React Bits brings motion and character to your interface, one copy-paste component at a time.
More backgrounds in Pro
Shader scenes and animated surfaces made to sit behind real content.
colors | string[] | ['#1e3fd8', '#f6f8ff', '#a5d8ff', '#38bdf8'] | Two to eight colors for the light, from the edge of the shadow to the brightest or farthest point. Dark areas stay transparent. |
shape | 'horizon' | 'pinch' | 'rise' | 'eclipse' | 'horizon' | Horizon glows over a dark curve, pinch is a band of light squeezed in the middle, rise glows up from the bottom and eclipse rings a dark disc. |
characters | ' =+xX0S8#@' | Characters from dimmest to brightest. Brighter parts of the gradient use characters further along. | |
cellSize | 18 | Height of each character cell in px. | |
density | 0.8 | Share of cells that show a character, from 0 to 1. Brighter areas fill in first. | |
glyphOpacity | 0.85 | How strongly the characters stand out from the gradient. | |
gradientOpacity | 0.9 | Opacity of the gradient behind the characters. At 0 only the characters are left. | |
glow | 0.2 | Soft glow around the characters, from 0 to 1.5. | |
depthOfField | Share of characters drawn out of focus, from 0 to 1. | ||
flicker | 0.2 | How often characters swap with their neighbors in brightness, from 0 to 1. | |
softness | 0.5 | How soft the edges of the shape are, from 0 to 1. | |
scale | Size of the shape, from 0.4 to 2.5. | ||
flow | 0.5 | How much the light wavers as it drifts, from 0 to 2. | |
speed | Speed of the drift. 0 holds the shape still. | ||
grain | 0.08 | Strength of the film grain, from 0 to 0.4. | |
variation | Picks a different drift and a different pattern of characters. | ||
mouseInteraction | Scrambles the characters under the cursor as it moves. They settle back a moment later. | ||
scrambleRadius | 0.1 | Size of the scrambled area around the cursor, relative to the container height. | |
clickEffect | 'wave' | 'burst' | 'none' | 'wave' | Wave sends a ring of scrambled characters out from the click, burst scrambles a patch under it. |
| Fades the light in from its source while the characters decode. | |||
lightMode | Draws the gradient as a wash on light backgrounds, with characters a shade darker. | ||
fontFamily | '"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace' | Font used for the characters. Monospaced fonts keep the grid even. | |
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
colorsstring[]Two to eight colors for the light, from the edge of the shadow to the brightest or farthest point. Dark areas stay transparent.
['#1e3fd8', '#f6f8ff', '#a5d8ff', '#38bdf8']shape'horizon' | 'pinch' | 'rise' | 'eclipse'Horizon glows over a dark curve, pinch is a band of light squeezed in the middle, rise glows up from the bottom and eclipse rings a dark disc.
'horizon'charactersstringCharacters from dimmest to brightest. Brighter parts of the gradient use characters further along.
' =+xX0S8#@'cellSizenumberHeight of each character cell in px.
18densitynumberShare of cells that show a character, from 0 to 1. Brighter areas fill in first.
0.8glyphOpacitynumberHow strongly the characters stand out from the gradient.
0.85gradientOpacitynumberOpacity of the gradient behind the characters. At 0 only the characters are left.
0.9glownumberSoft glow around the characters, from 0 to 1.5.
0.2depthOfFieldnumberShare of characters drawn out of focus, from 0 to 1.
flickernumberHow often characters swap with their neighbors in brightness, from 0 to 1.
0.2softnessnumberHow soft the edges of the shape are, from 0 to 1.
0.5scalenumberSize of the shape, from 0.4 to 2.5.
flownumberHow much the light wavers as it drifts, from 0 to 2.
0.5speednumberSpeed of the drift. 0 holds the shape still.
grainnumberStrength of the film grain, from 0 to 0.4.
0.08variationnumberPicks a different drift and a different pattern of characters.
mouseInteractionbooleanScrambles the characters under the cursor as it moves. They settle back a moment later.
scrambleRadiusnumberSize of the scrambled area around the cursor, relative to the container height.
0.1clickEffect'wave' | 'burst' | 'none'Wave sends a ring of scrambled characters out from the click, burst scrambles a patch under it.
'wave'introbooleanFades the light in from its source while the characters decode.
lightModebooleanDraws the gradient as a wash on light backgrounds, with characters a shade darker.
fontFamilystringFont used for the characters. Monospaced fonts keep the grid even.
'"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



