Skip to content

Gradients

Gradient utilities built on design tokens (works in light/dark themes).

ClassStyles
af-gradient-accentbackground-image: linear-gradient(135deg, primary → info)
af-gradient-subtlebackground-image: linear-gradient(180deg, surface → surface-secondary)
af-gradient-borderbackground-image: linear-gradient(135deg, border → border-strong)
Accent gradient
<div class="af-gradient-accent af-radius-md" style="height: 4rem;">
</div>
Subtle gradient
<div class="af-gradient-subtle af-radius-md af-border" style="height: 4rem;">
</div>
Border gradient
<div class="af-gradient-border af-radius-md" style="padding: 1px;">
  <div class="af-bg-surface af-radius-md" style="height: 4rem;">
  </div>
</div>
  • af-gradient-accent
  • af-gradient-subtle
  • af-gradient-border

All gradient utilities support responsive variants using the @{bp} suffix. See Responsive Suffix for syntax and breakpoints.