-
Notifications
You must be signed in to change notification settings - Fork 90
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 |
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: