-
Notifications
You must be signed in to change notification settings - Fork 107
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
[feature idea]: @clack/prompts support for many different themes, variants, and colors #36
Comments
I like this idea a lot and have similar thoughts. I haven't really sketched it out yet, but totally agree that theming would be a really powerful feature. If you have any API ideas I'm all ears! |
I think theming can go many ways like if you want the theme layer to be at the The only problem with injecting a theme within core is that you will have multiple prompts with the same config. So goes back to whats the best way to apply global settings that will look at the applied settings. You could possibly use |
@natemoo-re I think you could benefit from the NodeJS's import { run } from `@clack/prompts`
run(async () => {
// your cli code here...
}, { theme: someThemeConfig, onCancel: someCustomCancelHandling }) |
I just started experimenting (amazing) clack with unjs/consola (unjs/consola#170, unjs/consola#169). Currently had to make an inline copy/paste of |
a partial implementation of bombshell-dev#36
Hey folks, finally (oof) getting back to this project and am still interested in making this happen. I think having a lower-level rendering engine is a big missing piece here, but it's a concept I've been hacking on for the past few months. Once that's in place, I think we'll have much better primitives to expose for theming. That being said, there's definitely some improvements we could make in the interim. I don't want to block on a big project that hasn't totally taken shape yet. For some good news, there's now an |
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Since prompts is super nice it would be since to see a way to either change the
theme
of the prompts either containing theme within another repo that has those themes, but since prompts is one color and has default set oficons
. You could possibly create a way to customize the colors through config or maybe some type of system that can define these as a variant or theme. Sinceprompts
is more a granular term but could be perceived as an all in one alternative solution for CLI prompts.Describe alternatives you've considered
N/A
Additional context
I would like to discuss more here but it's an idea. Even though
@clack/prompts
is a wrapper forcore
I foresee it being bigger package that is built off of core that can include many handy utils, functions, and prompts. Maybe it's the wrong package for it. I am kinda thinking of variants likeastro-theme
,clack-theme
and these will drive icons, styles etc.The text was updated successfully, but these errors were encountered: