SF Link

A glowing link with a thin underline, meant for dark backgrounds. The target is set with the href property and the colour by --sf-color.

Examples

Orange link Cyan link Red alert

Properties

NameTypeDefaultDescription
hrefstring'#'Destination URL, passed to the inner anchor.

CSS variables

NameTypeDefaultDescription
--sf-color<color>#f90Tint for the text, line and glow. Set it on the element or any ancestor.

Usage

href defaults to # when omitted. The glow strengthens on hover and the underline disappears while pressed.

Implementation