Skip to content

Commit

Permalink
update readme for 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiu committed Jun 22, 2020
1 parent 0a03a83 commit 8c00068
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- Auto downgrading to terminal supported color
- No extensions on `String`
- rgb & hsl & hsv & hex
- Built-in 100+ handpicked colors
- Built-in 100+ beautiful colors

## Usage

Expand Down Expand Up @@ -71,6 +71,8 @@ crossedOut // aka strikethrough, not widely supported.

### Colors

The powerful color system is built on [Rainbow](https://github.com/luoxiu/Rainbow).

#### Ansi16

```swift
Expand Down Expand Up @@ -106,21 +108,24 @@ ck.bg(.hex("#123456")
ck.bg(.hex("#abc")
```

#### 100+ handpicked colors
#### Built-in 100+ beautiful colors

```swift
ck.fg(.peachpuff)
ck.fg(.plum)
ck.bg(.coral)
ck.bg(.fuchsia)
let color = Color.Material.red50
let color = Color.Material.purple500
let color = Color.CSS.navy
let color = Color.CSS.tomato

ck.fg(color)
ck.bg(color)
//...
```

## Install

```swift
dependencies: [
.package(url: "https://github.com/luoxiu/Chalk", from: "0.0.1")
.package(url: "https://github.com/luoxiu/Chalk", from: "0.1.0")
]
```

Expand Down

0 comments on commit 8c00068

Please sign in to comment.