Getting StartedComponentsDesign TokensThemingTheme SynthesizerFrameworksAccessibilityUtilitiesServer RenderingBrowser SupportContributingChangelogApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip
ARC UIARC Radiant Components
v4.9DocsComponentsTokensSynthesizer
Getting StartedFrameworksServer RenderingDesign TokensThemingTheme SynthesizerTypographyUtilitiesAll ComponentsAccessibilityBrowser SupportChangelogContributingStatsApp ShellAspect GridAuth ShellCenterContainerDashboard GridFloat BarInsetMasonryPage HeaderPage LayoutResizableResponsive SwitcherSectionSettings LayoutSplit PaneStatus BarStickyToolbarAnchor NavBottom NavBreadcrumbBreadcrumb MenuCommand BarDrawerFooterLinkMenubarNavigation MenuPage IndicatorPaginationRailScroll IndicatorScroll SpyScroll To TopSidebarSkip LinkStepper NavTabsTop BarTree ViewAccordionAspect RatioAvatarAvatar GroupCardCarouselCollapsibleColor SwatchCTA BannerDividerEmpty StateFeature CardIconImageImage CompareImage HotspotsInfinite ScrollLightboxMarqueeQR CodeScroll AreaSkeletonSpinnerStackVideoVirtual ListActivity HeatmapAnimated NumberBadgeBar ListChartClockComparisonCountdown TimerData GridDescription ListDiffGaugeJSON TreeKanbanLevel MeterListMeterSparklineStatStepperTagTimelineUptimeValue CardWaveformBlockquoteCode BlockCode GroupGradient TextHighlightKbdKeyboard MapMarkdownNumber FormatProseTerminalTextTime AgoTruncateTypewriterButtonButton GroupCalendarCheckboxChipColor PickerComboboxCopy ButtonDate PickerDate Range PickerField ListFieldsetFile UploadFormHotkeyIcon ButtonImage CropperInline EditInputInput GroupKnobLabelMasked InputMulti SelectNumber InputPassword InputPin InputRadio GroupRange SliderRatingSearchSegmented ControlSelectSignature PadSliderSortable ListSwitch GroupTag InputTextareaTheme ToggleTime PickerToggleTransfer ListTree SelectAlertAnnouncementBannerCommand PaletteConfirmConnection StatusContext MenuConversationDialogDropdown MenuHover CardLoading OverlayNotification PanelPopoverProgressSheetToastTooltip

Gradient Text

Inline text wrapper that applies gradient fills to text declaratively.

ComponentsGradient Text
typographystatic
<arc-gradient-text>

Overview

GradientText wraps any inline text in a gradient fill using `background-clip: text`, giving headings, labels, and hero copy color transitions without manual CSS. Choose from the built-in variants (accent, the standard blue-to-violet; display, the display heading gradient; sunset; and ocean) or supply a fully custom CSS gradient string via the `gradient` prop. The component is fully inline and inherits the parent's font size, weight, and line height, so it can be dropped into any typographic context (a heading, a paragraph, a button label) without breaking layout. A subtle drop-shadow glow is applied by default using `var(--accent-primary-rgb)`. Set `animated` to enable a smooth background-position cycle that shifts the gradient back and forth. The animation respects `prefers-reduced-motion` and disables itself automatically for users who prefer no motion. The `text` CSS part allows external overrides for filters, opacity, or additional styling.

Guidelines

When to use

  • Use GradientText for hero headings, feature labels, and marketing copy
  • Pair with large font sizes (24px+) where gradient fills are most visible
  • Use the accent variant for UI elements that should match the brand palette
  • Use the custom variant to match campaign-specific or one-off color schemes
  • Prefer the display variant for page headings and section titles

When not to use

  • Do not use GradientText for body copy or long paragraphs. Gradients lose impact at small sizes
  • Do not animate every gradient on the page. Reserve animation for a single focal element
  • Do not use the sunset or ocean variants in contexts that need to match the brand accent tokens
  • Do not nest GradientText inside another GradientText. Only the innermost gradient will be visible

Features

  • Five built-in gradient variants: accent, display, sunset, ocean, and custom
  • Custom gradient support. Pass any CSS gradient string via the gradient prop
  • Optional gradient animation with automatic `prefers-reduced-motion` handling
  • Fully inline: inherits parent font-size, weight, and line-height
  • Subtle accent glow via drop-shadow filter
  • CSS ::part(text) exposed for external styling overrides
  • Token-driven accent and display gradients cascade with theme overrides

Preview

Accent Gradient Display Gradient Sunset Gradient Ocean Gradient Animated Gradient

Usage

Gradient Text is in the marketing domain group, so it is absent from the default @arclux/arc-ui barrel. Import it from@arclux/arc-ui/marketing, or from its own subpath@arclux/arc-ui/gradient-text. Everything else (the element, the CSS, the framework wrappers, the support it gets) is unchanged.

<arc-gradient-text variant="accent">Accent Gradient</arc-gradient-text>

<!-- Display heading gradient -->
<arc-gradient-text variant="display">Display Gradient</arc-gradient-text>

<!-- Sunset variant -->
<arc-gradient-text variant="sunset">Sunset Gradient</arc-gradient-text>

<!-- Ocean variant -->
<arc-gradient-text variant="ocean">Ocean Gradient</arc-gradient-text>

<!-- Custom gradient -->
<arc-gradient-text variant="custom" gradient="linear-gradient(90deg, #e66465, #9198e5)">
  Custom Gradient
</arc-gradient-text>

<!-- Animated -->
<arc-gradient-text variant="accent" animated>Animated Gradient</arc-gradient-text>

API

gradientstring''
Custom CSS gradient string, used when variant is set to custom
variant'accent' | 'display' | 'sunset' | 'ocean' | 'custom''accent'
Predefined gradient variant to apply
animatedbooleanfalse
Animate the gradient with a shifting background-position cycle

See Also