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

Ability to nest styles #5

Open
seaneagan opened this issue Dec 18, 2014 · 1 comment
Open

Ability to nest styles #5

seaneagan opened this issue Dec 18, 2014 · 1 comment

Comments

@seaneagan
Copy link

Currently when you try to nest styles it doesn't work because when a pen is done writing it resets all styles, not just its own. Here's one take on an API to do this:

https://github.com/sindresorhus/chalk#api

@jtmcdole
Copy link
Member

I know I'm late on responding to these. I like the idea of storing a stack of "complete state" such that:

  1. down: bold + red + green background
  2. down: bold + blue background
  3. up

Would see only having the blue background removed and green background restored at step-3

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

No branches or pull requests

2 participants