Skip to content

Commit

Permalink
docs: update styles example
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Feb 28, 2023
1 parent 07a423f commit b6dcc9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ log.Error("Whoops!", "err", "kitchen on fire")
```

<picture>
<source media="(prefers-color-scheme: dark)" width="400" srcset="https://vhs.charm.sh/vhs-63lBglJXwK7NNcqoDEDneY.gif">
<source media="(prefers-color-scheme: light)" width="400" srcset="https://vhs.charm.sh/vhs-63lBglJXwK7NNcqoDEDneY.gif">
<source media="(prefers-color-scheme: dark)" width="400" srcset="https://vhs.charm.sh/vhs-4LXsGvzyH4RdjJaTF4a9MG.gif">
<source media="(prefers-color-scheme: light)" width="400" srcset="https://vhs.charm.sh/vhs-4LXsGvzyH4RdjJaTF4a9MG.gif">
<!-- <source media="(prefers-color-scheme: light)" width="400" srcset="https://vhs.charm.sh/vhs-4f6qLnIfudMMLDD9sxXUrv.gif"> -->
<img width="400" src="https://vhs.charm.sh/vhs-63lBglJXwK7NNcqoDEDneY.gif">
<img width="400" src="https://vhs.charm.sh/vhs-4LXsGvzyH4RdjJaTF4a9MG.gif">
</picture>

### Sub-logger
Expand Down
1 change: 1 addition & 0 deletions examples/styles/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func main() {
}).
Foreground(lipgloss.Color("0"))
log.KeyStyles["err"] = lipgloss.NewStyle().Foreground(lipgloss.Color("204"))
log.ValueStyles["err"] = lipgloss.NewStyle().Bold(true)
logger := log.New()
logger.Error("Whoops!", "err", "kitchen on fire")
time.Sleep(3 * time.Second)
Expand Down

0 comments on commit b6dcc9b

Please sign in to comment.