Skip to content
Alea0.1

Extras

Gradients and orbs

The Alea touches: gradient text, the gradient dot and the drifting orb background.

import { GradientText, GradientDot, OrbBackground } from '@alea/ui';

Examples

Gradient text and dot

The accent gradient on words and as the Fun Lab dot.

Design that plays

Live in the Figma Community

Orb background

The drifting glow behind Alea pages, here inside a card.

Ale's Fun Lab

Tools, games and plugins for designers.

Props

GradientText props

Text filled with the purple to yellow accent gradient.

PropTypeDefaultDescription
aria-labelstring-Defines a string value that labels the current element. @see aria-labelledby. (React Aria)
autoFocusboolean- (React Aria)
classNamestring- (React Aria)
defaultValuestring | number | readonly string[]- (React Aria)
idstring- (React Aria)
inputMode"none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"-Hints at the type of data that might be entered by the user while editing the element or its contents @see {@link https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute} (React Aria)
onChangeChangeEventHandler<HTMLElement, Element>- (React Aria)
onSubmitSubmitEventHandler<HTMLElement>- (React Aria)
roleAriaRole- (React Aria)
styleCSSProperties- (React Aria)

GradientDot props

The Alea dot: a small circle in the accent gradient. Decorative.

PropTypeDefaultDescription
pulseboolean-Pulses softly, for "live" or "new".
sizenumber14Diameter in px. Default 14.

OrbBackground props

The drifting purple, violet and yellow glow behind Alea pages. Decorative and pointer-transparent.

PropTypeDefaultDescription
gridbooleantrueAdds the faint dot grid on top.
position"fixed" | "absolute"'absolute'fixed covers the viewport behind the page; absolute fills the nearest positioned parent.

Accessibility

  • All three are decorative; the orbs slow down and stop moving with reduced motion.

Do and don't

Do

  • Use orbs behind heroes and empty states, once per screen.
  • Keep gradient text to one or two words.

Don't

  • Don't put orbs behind long text.
  • Don't use gradient text for body copy.
Tested with axe, keyboard and screen reader roles