Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: color utils #200

Merged
merged 2 commits into from
Jun 27, 2023
Merged

feat: color utils #200

merged 2 commits into from
Jun 27, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jun 27, 2023

Export color utils from consola/utils subpath:

  • colors[name]
  • getColor(name)
  • colorize(name, text)

Implementation is based on colorette which was already being used to make some small tweaks and generate types from the source. (Thanks @jorgebucaran and contribs for this amazing lib ❤️ )

Also thanks @antfu for original idea in #166

@codecov
Copy link

codecov bot commented Jun 27, 2023

Codecov Report

Merging #200 (475a679) into main (9e41614) will increase coverage by 1.23%.
The diff coverage is 70.62%.

@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   59.98%   61.22%   +1.23%     
==========================================
  Files          11       12       +1     
  Lines        1222     1359     +137     
  Branches       50       58       +8     
==========================================
+ Hits          733      832      +99     
- Misses        489      527      +38     
Impacted Files Coverage Δ
src/reporters/fancy.ts 33.10% <33.33%> (ø)
src/utils/box.ts 66.98% <50.00%> (+0.20%) ⬆️
src/utils/color.ts 71.73% <71.73%> (ø)

@pi0 pi0 merged commit 6ad2def into main Jun 27, 2023
@pi0 pi0 deleted the feat/color-utils branch June 27, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant