Skip to content

textarea setting the text colour #402

Answered by naglis
TomMann asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, there is support to modify textarea styles in both focused and blurred states and you can tweak how these different things should look in each state:

Base lipgloss.Style
CursorLine lipgloss.Style
CursorLineNumber lipgloss.Style
EndOfBuffer lipgloss.Style
LineNumber lipgloss.Style
Placeholder lipgloss.Style
Prompt lipgloss.Style
Text lipgloss.Style

Here is an snippet from the bubbletea examples on how to change the default styles:
https://github.com/charmbracelet/bubbletea/blob/91dd1200733714c4fb7bc7ffb24af2c35cc2f111/examples/split-editors/main.go#L55-L61

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TomMann
Comment options

Answer selected by TomMann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants