From 8c00068a7fbdbfe968246965f7719e04611b5731 Mon Sep 17 00:00:00 2001 From: luoxiu Date: Mon, 22 Jun 2020 19:20:45 +0800 Subject: [PATCH] update readme for 0.1.0 --- README.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ac922f7..c0212be 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -106,13 +108,16 @@ 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) //... ``` @@ -120,7 +125,7 @@ ck.bg(.fuchsia) ```swift dependencies: [ - .package(url: "https://github.com/luoxiu/Chalk", from: "0.0.1") + .package(url: "https://github.com/luoxiu/Chalk", from: "0.1.0") ] ```