Brik Design System
MotionEffects

Typography Effects

Gradient fill, stroke, glow, animated highlight. Heading-level only — never apply to body copy or labels.

Lightweight CSS text decoration classes in css/animations.css. These apply to heading elements only — paired with --font-family-heading and heading-scale sizes. Never apply to body copy or labels.

Gradient Text
Brand Gradient
Stroke Text
Glowing Text
Highlighted
Thick Stroke

Class reference

<!-- Gradient fill — left-to-right in brand colors -->
<h1 class="text-gradient">Gradient heading</h1>

<!-- Brand-specific gradient (uses --background-brand-primary and secondary) -->
<h2 class="text-gradient--brand">Brand gradient</h2>

<!-- Outlined text — transparent fill, stroked border -->
<h1 class="text-stroke">Outlined heading</h1>
<h1 class="text-stroke--thick">Thick stroke heading</h1>

<!-- Glow — best on dark backgrounds -->
<h2 class="text-glow">Glowing heading</h2>

<!-- Animated highlight — grows in on .is-visible -->
<span class="text-highlight" data-reveal>Highlighted phrase</span>
ClassEffectBackground needed
.text-gradientLinear gradient fill via -webkit-background-clip: textAny
.text-gradient--brandSame, uses --background-brand-primary + secondaryAny
.text-strokeTransparent fill + 1px outlineLight preferred
.text-stroke--thickTransparent fill + 2px outlineLight preferred
.text-glowDrop shadow in brand colorDark required
.text-highlightAnimated background-color grow on scrollAny

Notes

.text-highlight uses background-image: linear-gradient() growing via background-size from 0% 100% to 100% 100%. It requires .is-visible — add data-reveal so the observer triggers it on scroll.

.text-glow works best on dark section backgrounds (section-dark). On light backgrounds the shadow becomes muddy.

Validate font family. Test with the Font Audit theme in the Storybook toolbar to verify heading font family is correct — gradient-clip only works if -webkit-background-clip: text applies to a heading-family element.

GSAP text splitting GSAP

For letter-by-letter or word-by-word animated reveals, use GSAP SplitText instead of CSS classes. See GSAP Tier for the splitting pattern.

The CSS classes above and GSAP SplitText are composable — you can apply .text-gradient to a heading and also split it with SplitText. The gradient applies to each character span GSAP creates.

On this page