Skip to content

Commit 2275c98

Browse files
committed
fix: readme svg
1 parent 29f5897 commit 2275c98

File tree

4 files changed

+97
-14
lines changed

4 files changed

+97
-14
lines changed

README.md

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<p style="width:100%;text-align:center;font-size:40px;margin-bottom:30px;letter-spacing:5px;font-family:consolas;">
2-
<span style="color:#ad7fa8;">\x1b</span><span style="color:#729fcf;">[</span><span style="color:#8ae234;">1;43</span><span style="color:#ef2929;">m</span><span style="font-weight:bold;background-color:#fce94f;color:#555753;">ANSI</span><span style="color:#ad7fa8;">\x1b</span><span style="color:#729fcf;">[</span><span style="color:#8ae234;">0</span><span style="color:#ef2929;">m</span>
3-
</p>
1+
<div style="width: 100%;">
2+
<img src="res/title.svg" style="width: 100%;" alt="Click to see the source">
3+
</div>
44

5-
<p style="width:100%;text-align:center;margin-bottom:30px;font-style:italic;">
6-
A simple, lightweight Golang package for working with ANSI escape codes.
5+
<p align="center">
6+
<i>A simple, lightweight Golang package for working with ANSI escape codes.</i>
77
</p>
8+
<br>
89

910
If you've ever worked on a CLI application before, you probably know the
1011
struggle of working with ANSI escape codes. Often, you just want to quickly
@@ -18,9 +19,7 @@ dependencies :package: It allows you to quickly apply styles to strings using
1819
need to call a function for each style, making it easy to apply/reset multiple
1920
styles to a single string.
2021

21-
With `ansi`, the mess at the top of this page becomes: <span style="font-size:20px;letter-spacing:2px;font-family:consolas;">
22-
<span style="color:#ad7fa8;">[</span><span style="color:#8ae234;">bold:bg-yellow</span><span style="color:#ad7fa8;">]</span><span style="font-weight:bold;background-color:#fce94f;color:#555753;">ANSI</span><span style="color:#ad7fa8;">[</span><span style="color:#ef2929;">/</span><span style="color:#ad7fa8;">]</span>
23-
</span>
22+
With `ansi`, the mess at the top of this page becomes: <img src="res/ansi.svg" alt="Click to see the source">
2423

2524
## Usage
2625

@@ -66,11 +65,11 @@ For more info, check out the [style reference](#style-reference) below or take a
6665

6766
### Formatting
6867

69-
| Code | ANSI Code | Example |
68+
| Code | ANSI Code | Description |
7069
| -------------- | --------: | ------------------------------------------------------------------------------------------------------------- |
71-
| `bold` | `1` | <span style="font-weight:bold;">Sets the font weight to bold</span> |
70+
| `bold` | `1` | **Sets the font weight to bold** |
7271
| `faint`, `dim` | `2` | <span style="color:#d3d7cf;">Sets the text brightness to its faint/dim variant</span> \* |
73-
| `italic` | `3` | <span style="font-style:italic;">Sets the font style to italic</span> |
72+
| `italic` | `3` | _Sets the font style to italic_ |
7473
| `underline` | `4` | <span style="text-decoration:underline;">Sets the text decoration to underline</span> |
7574
| `blink` | `5` | <span style="text-decoration:blink;">Sets the text to blink in and out</span> |
7675
| `invert` | `7` | <span style="backdrop-filter:invert(1);filter:invert(1);">Inverts the foreground and background colors</span> |
@@ -79,7 +78,7 @@ For more info, check out the [style reference](#style-reference) below or take a
7978

8079
> \* `faint` and `dim` do not work when using 8-bit (256) or 24-bit (RGB) color modes.
8180
82-
| Code | ANSI Code | Example |
81+
| Code | ANSI Code | Description |
8382
| ---------------- | --------: | --------------------------------------- |
8483
| `/bold` | `22` | Resets the font weight \*\* |
8584
| `/faint`, `/dim` | `22` | Resets the text brightness \*\* |
@@ -95,7 +94,7 @@ For more info, check out the [style reference](#style-reference) below or take a
9594
9695
### Foreground Colors
9796

98-
| Code | ANSI Code | Reset Code |
97+
| Code | ANSI Code | Description |
9998
| --------- | -----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
10099
| `black` | `30` | <span style="color:#555753;">Sets the text foreground to black</span> |
101100
| `red` | `31` | <span style="color:#ef2929;">Sets the text foreground to red</span> |
@@ -111,7 +110,7 @@ For more info, check out the [style reference](#style-reference) below or take a
111110

112111
### Background Colors
113112

114-
| Code | ANSI Code | Reset Code |
113+
| Code | ANSI Code | Description |
115114
| ------------ | -----------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
116115
| `bg-black` | `40` | <span style="background-color:#555753;">Sets the text background to black</span> |
117116
| `bg-red` | `41` | <span style="background-color:#ef2929;">Sets the text background to red</span> |

go.sum

Whitespace-only changes.

res/ansi.svg

+41
Loading

res/title.svg

+43
Loading

0 commit comments

Comments
 (0)