diff --git a/textarea/textarea.go b/textarea/textarea.go index 199502e..b5e3aa3 100644 --- a/textarea/textarea.go +++ b/textarea/textarea.go @@ -290,7 +290,7 @@ func New() Model { vp.KeyMap = viewport.KeyMap{} cur := cursor.New() - styles := DefaultStyles(true) + styles := DefaultDarkStyles() m := Model{ CharLimit: defaultCharLimit, @@ -348,6 +348,16 @@ func DefaultStyles(isDark bool) Styles { return s } +// DefaultLightStyles returns the default styles for a light background. +func DefaultLightStyles() Styles { + return DefaultStyles(false) +} + +// DefaultDarkStyles returns the default styles for a dark background. +func DefaultDarkStyles() Styles { + return DefaultStyles(true) +} + // SetValue sets the value of the text input. func (m *Model) SetValue(s string) { m.Reset()