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

Demo all built-in styles #210

Closed
borekb opened this issue Oct 7, 2017 · 12 comments
Closed

Demo all built-in styles #210

borekb opened this issue Oct 7, 2017 · 12 comments

Comments

@borekb
Copy link

borekb commented Oct 7, 2017

Something like chalk.demo() with output similar to the screenshot in README would be a great dynamic cheat sheet.

image

@khirayama
Copy link

@borekb Your screenshot url is dead link 😢
You might better to close this issue or update the link 👍

@borekb
Copy link
Author

borekb commented Apr 18, 2018

I've updated the link and also posted the screenshot directly to the OP, thanks for pointing that out.

@Qix-
Copy link
Member

Qix- commented Jun 11, 2018

@borekb Not seeing either of those edits you mention. I'm also not a fan of cruft like that - might be better as a separate script (see how we build up the screenshots in the readme).

Feel free to PR as I agree the old 16-colors-only screenshot is outdated.

@borekb
Copy link
Author

borekb commented Jun 12, 2018

@Qix- Thanks for pointing out that the screenshot is still missing – not sure how that happened but I've re-uploaded.

You mean this example as a way to generate all the possible combinations? Yes that's probably what I wanted, it was just not very convenient to run it :) I'm now thinking that maybe it would fit better into the chalk-cli project, e.g., chalk --demo. What do you think? cc @sindresorhus

@sindresorhus
Copy link
Member

sindresorhus commented Jun 12, 2018

Sure, we can add a demo flag there. Then we can just tell people to run npx chalk-cli --demo to see the demo.

@Qix-
Copy link
Member

Qix- commented Jun 12, 2018

Yeah that sounds great :)

@borekb
Copy link
Author

borekb commented Jun 12, 2018

Thanks, I'll try to submit a PR to chalk-cli later this week and then write back here.

@sindresorhus
Copy link
Member

@borekb Still interested in doing this? :)

@borekb
Copy link
Author

borekb commented Sep 18, 2018

Sorry, won't have time. Those promises.. :)

@wcastand
Copy link

wcastand commented Oct 6, 2018

hello, i can work on this if that's still something we want :)

Edit: Ok, maybe i was too confident. I don't see any cli in chalk to add the --demo option. Do i need to create one or it's not a usual cli like commander ? :) (i still want to help on this)

@Qix-
Copy link
Member

Qix- commented Oct 6, 2018

@wcastand
Copy link

wcastand commented Oct 6, 2018

Ahah I see, thanks. I feel dumb right now 🤣 I'll go make the demo there then thanks again :)

Edit: i just forked and yarn install on chalk-cli but the test and linting are not passing. last commit is from a year ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants