Repository: algorandfoundation/nodekit (language: go)

Issue:
💄 use autostyle for bootstrap questions
# Overview

- configure the glamour renderer to use AutoStyle to detect light mode backgrounds

Location: [./ui/bootstrap/model.go](https://github.com/algorandfoundation/nodekit/blob/main/ui/bootstrap/model.go#L98)

Example:

```go
r, err:= glamour.NewTermRenderer(glamour.WithAutoStyle())
```


Discussion / hints:

Fix patch:
diff --git a/ui/bootstrap/model.go b/ui/bootstrap/model.go
index 11c9537f..c5577f94 100644
--- a/ui/bootstrap/model.go
+++ b/ui/bootstrap/model.go
@@ -95,6 +95,13 @@ func (m Model) View() string {
 	case CatchupQuestion:
 		str = CatchupQuestionMsg
 	}
-	msg, _ := glamour.Render(str, "dark")
+	var msg string
+	r, err := glamour.NewTermRenderer(glamour.WithAutoStyle())
+	if err != nil {
+		// Fallback to dark mode
+		msg, _ = glamour.Render(str, "dark")
+	} else {
+		msg, _ = r.Render(str)
+	}
 	return msg
 }


Test patch: