You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Omit<UseDarkOptions, 'initialValue'> allows to have only valueDark and valueLight, but it does not allow me to have other modes different than dark/light such as custom mode created by the developer giving further color customisation to the theme: light|dark|luxury|business and so on.
Describe the solution you'd like
i would like to have the possibility to use multiple modes in addition to dark/light. so that the appearance type becomes something like:
that would be fine if the component would not be a part of a vue components package i am building. yeah, i could still pass the storageKey as props and let the developer handle it if needed, but it might not be the best option.
Is your feature request related to a problem? Please describe.
right now the appearance has the following type:
the
Omit<UseDarkOptions, 'initialValue'>
allows to have only valueDark and valueLight, but it does not allow me to have other modes different than dark/light such as custom mode created by the developer giving further color customisation to the theme: light|dark|luxury|business and so on.Describe the solution you'd like
i would like to have the possibility to use multiple modes in addition to dark/light. so that the appearance type becomes something like:
where T is a union type of color modes like 'light'|'dark'|'luxury'|'business' that the developer will specify
Describe alternatives you've considered
No response
Additional context
if this is not possible please provide a solution in the case where:
my current workaround is to use the
vitepress-theme-appearance
asstorageKey
in my custom componentthat would be fine if the component would not be a part of a vue components package i am building. yeah, i could still pass the storageKey as props and let the developer handle it if needed, but it might not be the best option.
Validations
The text was updated successfully, but these errors were encountered: