#770·huh

V2 Regression: Blurred styles no longer apply on input fields

Author: seanamosCreated Apr 10, 2026Updated Apr 10, 2026

Description

In V1, it used to be possible to apply styles to blurred input fields:

go
t := huh.ThemeCharm()
t.Blurred.TextInput.Text = lipgloss.NewStyle()....

In V2, these styles are no longer applied. I've traced this to down to this code here, where there seems to have been an incomplete port to V2 (only sets focused styles): https://github.com/charmbracelet/huh/blob/e3315ebeaf8ba7860f21f4d907c766e91d7b5f73/field_input.go#L389-L391

versus the original:

go
	i.textinput.PlaceholderStyle = styles.TextInput.Placeholder
	i.textinput.PromptStyle = styles.TextInput.Prompt
	i.textinput.Cursor.Style = styles.TextInput.Cursor
	i.textinput.Cursor.TextStyle = styles.TextInput.CursorText
	i.textinput.TextStyle = styles.TextInput.Text

Compared with field_text:

https://github.com/charmbracelet/huh/blob/e3315ebeaf8ba7860f21f4d907c766e91d7b5f73/field_text.go#L381-L391

Version

v2.0.3

Environment

all