SF Textfield

A text input reduced to a glowing underline. Takes a placeholder property and is tinted by --sf-color.

Examples

Properties

NameTypeDefaultDescription
placeholderstring''Placeholder text shown while the field is empty.

CSS variables

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

Usage

The value lives on the inner input element. The glow strengthens while the field has focus.

Implementation