Skip to content

Commit

Permalink
fix(table): pokemon colors
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Oct 4, 2023
1 parent 160eb4f commit 5744805
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/table/pokemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ import (
func main() {
re := lipgloss.NewRenderer(os.Stdout)
baseStyle := re.NewStyle().Padding(0, 1)
headerStyle := baseStyle.Copy().Foreground(lipgloss.Color("#F8D030"))
selectedStyle := baseStyle.Copy().Foreground(lipgloss.Color("#F8D030")).Background(lipgloss.Color("#282828"))
headerStyle := baseStyle.Copy().Foreground(lipgloss.Color("#FCFF5F"))
selectedStyle := baseStyle.Copy().Foreground(lipgloss.Color("#FCFF5F")).Background(lipgloss.Color("#282828"))
typeColors := map[string]lipgloss.AdaptiveColor{
"Grass": {Light: "#78C850", Dark: "#78C850"},
"Bug": {Light: "#A8B820", Dark: "#A8B820"},
"Fire": {Light: "#F08030", Dark: "#F08030"},
"Water": {Light: "#6890F0", Dark: "#6890F0"},
"Normal": {Light: "#A8A878", Dark: "#A8A878"},
"Poison": {Light: "#A040A0", Dark: "#A040A0"},
"Flying": {Light: "#A890F0", Dark: "#A890F0"},
"Electric": {Light: "#F8D030", Dark: "#F8D030"},
"Ground": {Light: "#E0C068", Dark: "#E0C068"},
"Grass": {Light: "#00FF87", Dark: "#00FF87"},
"Bug": {Light: "#D7FF87", Dark: "#D7FF87"},
"Fire": {Light: "#FF7698", Dark: "#FF7698"},
"Water": {Light: "#00E2C7", Dark: "#00E2C7"},
"Normal": {Light: "#585858", Dark: "#585858"},
"Poison": {Light: "#7D56F3", Dark: "#7D56F3"},
"Flying": {Light: "#FF87D7", Dark: "#FF87D7"},
"Electric": {Light: "#FCFF5F", Dark: "#FCFF5F"},
"Ground": {Light: "#FF875F", Dark: "#FF875F"},
}

headers := []any{"#", "Name", "Type 1", "Type 2", "Japanese", "Official Rom."}
Expand Down

0 comments on commit 5744805

Please sign in to comment.