Skip to content

Commit ca4dcd7

Browse files
committed
feat: update color scheme
1 parent 51f4fdc commit ca4dcd7

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ bndry ssh kmendell@webserver-01
2222
brew install ofkm/tap/bndry
2323
```
2424

25+
### Go Install
26+
27+
```bash
28+
go install github.com/ofkm/bndry/cmd/bndry@latest
29+
```
30+
2531
### From Source
2632

2733
```bash

internal/app/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func (a *App) NewRootCommand() *cobra.Command {
1212
rootCmd := &cobra.Command{
1313
Use: "bndry",
14-
Short: "Friendly Boundary CLI for SSH-first workflows",
14+
Short: "Simplified Boundary CLI",
1515
Long: "bndry wraps the HashiCorp Boundary CLI with simpler commands, interactive prompts, and friendlier output.",
1616
SilenceErrors: true,
1717
SilenceUsage: true,

internal/ui/styles.go

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,30 @@ import (
88
flag "github.com/spf13/pflag"
99
)
1010

11+
const (
12+
boundaryRed = "#D14B57"
13+
boundaryRedDark = "#A63A46"
14+
boundaryGray = "#A1A1AA"
15+
boundaryGrayDark = "#52525B"
16+
boundaryGrayLight = "#E4E4E7"
17+
)
18+
1119
var (
12-
titleStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("86"))
13-
sectionStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("69")).MarginBottom(1)
14-
selectedStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("212"))
15-
promptStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("81"))
16-
mutedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("245"))
17-
errorStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("203"))
18-
successStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("42"))
19-
warningStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("214"))
20-
codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("141"))
21-
valueStyle = lipgloss.NewStyle().Bold(true)
22-
helpContainerStyle = lipgloss.NewStyle().Padding(1, 2)
20+
titleStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRed))
21+
sectionStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRedDark)).MarginBottom(1)
22+
selectedStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRed))
23+
promptStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRed))
24+
mutedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(boundaryGray))
25+
errorStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRedDark))
26+
successStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryGrayLight))
27+
warningStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryRed))
28+
codeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(boundaryGrayLight))
29+
valueStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color(boundaryGrayLight))
30+
helpContainerStyle = lipgloss.NewStyle().Padding(1, 2).Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color(boundaryGrayDark))
2331
helpSectionBodyStyle = lipgloss.NewStyle().MarginLeft(2)
2432
helpCommandNameStyle = codeStyle.Bold(true)
2533
helpCommandDetailStyle = mutedStyle.MarginLeft(2)
26-
promptFrameStyle = lipgloss.NewStyle().Padding(1, 2)
34+
promptFrameStyle = lipgloss.NewStyle().Padding(1, 2).Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color(boundaryGrayDark))
2735
promptHintStyle = mutedStyle.MarginTop(1)
2836
optionDetailStyle = mutedStyle.MarginLeft(4)
2937
inputRowStyle = lipgloss.NewStyle().MarginLeft(1)

0 commit comments

Comments
 (0)